Changes in kernel/generic/include/str.h [d066259:174156fd] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/include/str.h
rd066259 r174156fd 1 1 /* 2 2 * Copyright (c) 2001-2004 Jakub Jermar 3 * Copyright (c) 2005 Martin Decky4 * Copyright (c) 2011 Oleg Romanenko5 3 * All rights reserved. 6 4 * … … 38 36 #define KERN_STR_H_ 39 37 40 #include <errno.h>41 38 #include <stdbool.h> 42 39 #include <stddef.h> 43 40 #include <stdint.h> 41 #include <errno.h> 44 42 45 /* Common Unicode characters */43 /**< Common Unicode characters */ 46 44 #define U_SPECIAL '?' 47 45 … … 63 61 #define U_CURSOR 0x2588 64 62 65 /** No size limit constant */63 /**< No size limit constant */ 66 64 #define STR_NO_LIMIT ((size_t) -1) 67 65 68 /** Maximum size of a string containing @c lengthcharacters */69 #define STR_BOUNDS( length) ((length) << 2)66 /**< Maximum size of a string containing cnt characters */ 67 #define STR_BOUNDS(cnt) ((cnt) << 2) 70 68 71 69 extern wchar_t str_decode(const char *str, size_t *offset, size_t sz); … … 94 92 extern void wstr_to_str(char *dest, size_t size, const wchar_t *src); 95 93 94 extern char *str_dup(const char *src); 95 extern char *str_ndup(const char *src, size_t n); 96 96 97 extern char *str_chr(const char *str, wchar_t ch); 97 98 … … 99 100 extern bool wstr_remove(wchar_t *str, size_t pos); 100 101 101 extern char *str_dup(const char *src); 102 extern char *str_ndup(const char *src, size_t n); 103 104 extern errno_t str_uint64_t(const char *, char **, unsigned int, bool, 105 uint64_t *); 102 extern errno_t str_uint64_t(const char *, char **, unsigned int, bool, uint64_t *); 106 103 107 104 extern void order_suffix(const uint64_t, uint64_t *, char *);
Note:
See TracChangeset
for help on using the changeset viewer.