Changeset 74c8da2c in mainline for kernel/generic/include/string.h


Ignore:
Timestamp:
2009-03-24T14:41:31Z (16 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
eec616b
Parents:
4ccdcf6
Message:

more Unicode functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/include/string.h

    r4ccdcf6 r74c8da2c  
    3838#include <typedefs.h>
    3939
    40 extern wchar_t utf8_decode(const char *str, index_t *index);
     40#define UTF8_NO_LIMIT  ((index_t) -1)
     41
     42extern char invalch;
     43
     44extern wchar_t utf8_decode(const char *str, index_t *index, index_t limit);
     45extern bool utf8_encode(const wchar_t ch, char *str, index_t *index, index_t limit);
     46extern size_t utf8_count_bytes(const char *str, count_t count);
     47extern bool ascii_check(const wchar_t ch);
     48extern bool unicode_check(const wchar_t ch);
     49
    4150extern size_t strlen(const char *str);
     51extern size_t strlen_utf8(const char *str);
     52extern size_t strlen_utf32(const wchar_t *str);
     53
    4254extern int strcmp(const char *src, const char *dst);
    4355extern int strncmp(const char *src, const char *dst, size_t len);
Note: See TracChangeset for help on using the changeset viewer.