00001
00002
00003
00004
00005
00006
00007
00023 #ifndef OSCL_STRING_UTF8_H
00024 #define OSCL_STRING_UTF8_H
00025
00026
00027 #ifndef OSCL_BASE_H_INCLUDED
00028 #include "oscl_base.h"
00029 #endif
00030
00031
00032
00049 OSCL_IMPORT_REF bool oscl_str_is_valid_utf8(const uint8 *str_buf, uint32& num_valid_characters, uint32 max_bytes = 0,
00050 uint32 max_char_2_valid = 0, uint32 * num_byte_4_char = NULL);
00065 OSCL_IMPORT_REF int32 oscl_str_truncate_utf8(uint8 *str_buf, uint32 max_char, uint32 max_bytes = 0);
00066
00067 #endif
00068