38 #define STB_UTF16_LEN_TO_BYTES_IN_STRING(x) (((x) *2) + 3) 39 #define INVALID_UNICODE_CHAR 0xFFFF // 0xFFFF is an invalid unicode char value 60 BOOLEAN strip_DVB_cntrl_char, U32BIT lang_code);
88 U8BIT*
STB_FormatUnicodeString( BOOLEAN strip_DVB_cntrl_char, BOOLEAN *reverse_dir,
const U8BIT *
const format_ptr, ... );
U8BIT * STB_ConvertStringToUnicode(U8BIT *string, BOOLEAN *reverse_dir, U16BIT *nchar, BOOLEAN strip_DVB_cntrl_char, U32BIT lang_code)
Converts the specified DVB coded string into a unicode string, counting the number of characters and ...
Definition: stbuni.c:1069
U8BIT * STB_SetUnicodeStringChar(U8BIT *string_ptr, U16BIT char_id, U16BIT code)
Takes a string and changes the requested location to a new value. This request may involve appending ...
Definition: stbuni.c:412
U8BIT * STB_UnicodeStrStr(U8BIT *str1, U8BIT *str2, BOOLEAN ignore_case)
Finds the first occurence of str2 in str1 and returns a pointer to the substring (as per strstr) ...
Definition: stbuni.c:788
BOOLEAN STB_IsUnicodeString(U8BIT *string_ptr)
Tests for unicode string.
Definition: stbuni.c:248
U8BIT * STB_UnicodeStringTokenise(U8BIT *str, U8BIT **save_ptr)
Divides the (space separated) string up into individual words and returns them one per call...
Definition: stbuni.c:723
U8BIT * STB_ConvertUTF16toUTF8(U8BIT *src, U32BIT *outlen)
Creates the given string from UTF-16 to UTF-8 and returns a new string. The returned string should be...
Definition: stbuni.c:1973
U32BIT STB_UnicodeStringLen(U8BIT *string_ptr)
Determines the length, in characters, of the given unicode string by searching for NULL...
Definition: stbuni.c:141
BOOLEAN STB_IsNormalString(U8BIT *string_ptr)
Tests for normal ascii string.
Definition: stbuni.c:281
U8BIT * STB_ConvertStringToUTF8(U8BIT *string, U16BIT *nchar, BOOLEAN strip_DVB_cntrl_char, U32BIT lang_code)
Converts the given DVB coded string into a UTF-8 unicode string. The returned string will be preceded...
Definition: stbuni.c:1508
BOOLEAN STB_IsStringEmpty(U8BIT *string_ptr)
Checks for a string of only spaces.
Definition: stbuni.c:2123
U8BIT * STB_UnicodeStripControlChars(U8BIT *string_ptr)
Strips the DVB control characters from a string that's already in UTF-8 or UTF-16 format...
Definition: stbuni.c:2798
S8BIT STB_CompareUnicodeStrings(U8BIT *string1_ptr, U8BIT *string2_ptr, BOOLEAN exact_match, BOOLEAN ignore_case)
Compares the contents of the two given unicode strings and returns the status (as per strcmp) ...
Definition: stbuni.c:910
void STB_ReleaseUnicodeString(U8BIT *string)
Releases the specified unicode string, freeing associated heap resources.
Definition: stbuni.c:1954
U8BIT * STB_DeleteUnicodeStringChar(U8BIT *string_ptr, U16BIT char_id)
Takes a string and removes the requested location, shuffling any following data down (thus removing g...
Definition: stbuni.c:477
U8BIT * STB_ConcatUnicodeStrings(U8BIT *string1_ptr, U8BIT *string2_ptr)
Appends the contents of string2_ptr to string1_ptr and returns a pointer to the newly created string...
Definition: stbuni.c:618
U32BIT STB_GetNumBytesInString(U8BIT *string_ptr)
Determines the no of bytes of the given string.
Definition: stbuni.c:311
BOOLEAN STB_IsUnicodeStringReversed(U8BIT *string_ptr)
Checks to see if the supplied string is unicode and if it is reversed (arabic)
Definition: stbuni.c:204
System Wide Global Technical Data Type Definitions.
S8BIT STB_CompareStringsIgnoreCase(U8BIT *string1_ptr, U8BIT *string2_ptr)
Compares the contents of the two given ASCII strings and returns the status (as per strcmp) but ignor...
Definition: stbuni.c:2193
U8BIT * STB_UnicodeInsertString(U8BIT *src_str, U16BIT insert_pos, U8BIT *insert_str, BOOLEAN replace_char)
Creates a new string by inserting one string into another at a given position, with the option of rep...
Definition: stbuni.c:2702
U32BIT STB_GetUnicodeStringChar(U8BIT *string_ptr, U16BIT char_id)
Retrieves the unicode value pointed to by char_id within the given string. If an invalid request occu...
Definition: stbuni.c:526
void STB_SetDefaultAsciiTable(U8BIT table)
Sets default ascii table to be used, if not overridden by the table index at the start of a string...
Definition: stbuni.c:2167
U8BIT * STB_FormatUnicodeString(BOOLEAN strip_DVB_cntrl_char, BOOLEAN *reverse_dir, const U8BIT *const format_ptr,...)
Unicode version of sprintf.
Definition: stbuni.c:2302