Changes in boot/generic/include/str.h [d066259:d735e2e] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/generic/include/str.h
rd066259 rd735e2e 1 1 /* 2 * Copyright (c) 2001-2004 Jakub Jermar 3 * Copyright (c) 2005 Martin Decky 4 * Copyright (c) 2011 Oleg Romanenko 2 * Copyright (c) 2010 Martin Decky 5 3 * All rights reserved. 6 4 * … … 35 33 #define BOOT_STR_H_ 36 34 37 #include <errno.h>38 35 #include <stdbool.h> 39 36 #include <stddef.h> 40 37 41 /* Common Unicode characters */42 #define U_SPECIAL 38 /**< Common Unicode characters */ 39 #define U_SPECIAL '?' 43 40 44 /** No size limit constant */41 /**< No size limit constant */ 45 42 #define STR_NO_LIMIT ((size_t) -1) 46 43 47 extern wchar_t str_decode(const char * str, size_t *offset, size_t sz);48 extern errno_t chr_encode(wchar_t ch, char *str, size_t *offset, size_t sz);44 extern wchar_t str_decode(const char *, size_t *, size_t); 45 extern int chr_encode(wchar_t, char *, size_t *, size_t); 49 46 50 extern size_t str_size(const char * str);51 extern size_t str_lsize(const char * str, size_t max_len);52 extern size_t str_length(const char * str);47 extern size_t str_size(const char *); 48 extern size_t str_lsize(const char *, size_t); 49 extern size_t str_length(const char *); 53 50 54 extern bool ascii_check(wchar_t ch);55 extern bool chr_check(wchar_t ch);51 extern bool ascii_check(wchar_t); 52 extern bool chr_check(wchar_t); 56 53 57 extern int str_cmp(const char * s1, const char *s2);58 extern void str_cpy(char * dest, size_t size, const char *src);54 extern int str_cmp(const char *, const char *); 55 extern void str_cpy(char *, size_t, const char *); 59 56 60 57 #endif
Note:
See TracChangeset
for help on using the changeset viewer.