Changeset d5a89a3 in mainline for boot/generic/include/str.h
- Timestamp:
- 2019-02-11T22:31:04Z (6 years ago)
- Children:
- aaf9789c
- Parents:
- e3272101 (diff), 4805495 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/generic/include/str.h
re3272101 rd5a89a3 1 1 /* 2 * Copyright (c) 2010 Martin Decky 2 * Copyright (c) 2001-2004 Jakub Jermar 3 * Copyright (c) 2005 Martin Decky 4 * Copyright (c) 2011 Oleg Romanenko 3 5 * All rights reserved. 4 6 * … … 33 35 #define BOOT_STR_H_ 34 36 37 #include <errno.h> 35 38 #include <stdbool.h> 36 39 #include <stddef.h> 37 40 38 /* *<Common Unicode characters */39 #define U_SPECIAL '?'41 /* Common Unicode characters */ 42 #define U_SPECIAL '?' 40 43 41 /** <No size limit constant */44 /** No size limit constant */ 42 45 #define STR_NO_LIMIT ((size_t) -1) 43 46 44 extern wchar_t str_decode(const char * , size_t *, size_t);45 extern int chr_encode(wchar_t, char *, size_t *, size_t);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); 46 49 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 * );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); 50 53 51 extern bool ascii_check(wchar_t );52 extern bool chr_check(wchar_t );54 extern bool ascii_check(wchar_t ch); 55 extern bool chr_check(wchar_t ch); 53 56 54 extern int str_cmp(const char * , const char *);55 extern void str_cpy(char * , size_t, const char *);57 extern int str_cmp(const char *s1, const char *s2); 58 extern void str_cpy(char *dest, size_t size, const char *src); 56 59 57 60 #endif
Note:
See TracChangeset
for help on using the changeset viewer.