Changeset 95c675b in mainline for uspace/lib/c/generic/str.c
- Timestamp:
- 2017-10-17T13:11:35Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 60af4cdb
- Parents:
- dbf32b1 (diff), a416d070 (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
-
uspace/lib/c/generic/str.c
rdbf32b1 r95c675b 995 995 dest[idx] = '\0'; 996 996 return rc; 997 } 998 999 /** Get size of UTF-16 string. 1000 * 1001 * Get the number of words which are used by the UTF-16 string @a ustr 1002 * (excluding the NULL-terminator). 1003 * 1004 * @param ustr UTF-16 string to consider. 1005 * 1006 * @return Number of words used by the UTF-16 string 1007 * 1008 */ 1009 size_t utf16_wsize(const uint16_t *ustr) 1010 { 1011 size_t wsize = 0; 1012 1013 while (*ustr++ != 0) 1014 wsize++; 1015 1016 return wsize; 997 1017 } 998 1018
Note:
See TracChangeset
for help on using the changeset viewer.