26 #ifndef _HBBTV_STRING_H 28 #define _HHBTV_STRING_H 36 extern void *JS_HBBTV_STRING_CLASS;
44 STRING_FORMAT_UNKNOWN,
48 STRING_FORMAT_UTF8_LATIN1
158 U8BIT* HBBTV_JSStringGetStringLatin1(
void *obj, U32BIT *length);
void * HBBTV_JSStringCreateFromUtf8(U8BIT *utf_string)
Create a string from a UTF-8 string.
Definition: hbbtv_string.c:1193
void HBBTV_JSStringSetFormat(E_HBBTV_STRING_FORMAT string_format)
Saves the string format supported by the DVB stack.
Definition: hbbtv_string.c:1839
S8BIT HBBTV_JSStringCompare(void *obj, S_HBBTV_STRING *str2, BOOLEAN ignore_case)
Compares the two strings and returns -1 if str2 < string object, 0 if the strings are equal...
Definition: hbbtv_string.c:1370
HBBTV engine function definitions.
Definition of general purpose types.
void * HBBTV_JSStringCreateFromAscii(U8BIT *ascii_string)
Create a string from an ASCII string.
Definition: hbbtv_string.c:1166
BOOLEAN HBBTV_JSStringContains(void *obj, S_HBBTV_STRING *str2, BOOLEAN ignore_case)
Checks whether the string object is a substring of str2.
Definition: hbbtv_string.c:1482
S_HBBTV_STRING HBBTV_StrGetUrlOrigin(S_HBBTV_STRING *url)
Returns a string containing the origin of the given URL as defined by RFC6454 <scheme>://<domain>:<po...
Definition: hbbtv_string.c:1927
S_HBBTV_STRING HBBTV_StrCreate(U32BIT strlen, U8BIT *data)
Creates an S_HBBTV_STRING with the given strlen containing a copy of the given data.
Definition: hbbtv_string.c:1850
System Interface, Configuration.
void * HBBTV_JSStringCreateFromUtf16(U16BIT *utf_string)
Create a string from a UTF-16 string.
Definition: hbbtv_string.c:1219
BOOLEAN HBBTV_JSStringEqual(void *obj, S_HBBTV_STRING *string, BOOLEAN ignore_case)
Check if two strings are the same.
Definition: hbbtv_string.c:1278
void * HBBTV_JSStringCreate(S_HBBTV_STRING *value, E_STRING_FORMAT format)
Create a string from a given S_HBBTV_STRING which is of the specified format.
Definition: hbbtv_string.c:1134
Definition: hbbtv_types.h:167
void HBBTV_StrFree(S_HBBTV_STRING *string)
Frees the memory allocated for the specified S_HBBTV_STRING.
Definition: hbbtv_string.c:1881
void HBBTV_JSStringReplace(void *string, S_HBBTV_STRING *value)
Replace string data with given data.
Definition: hbbtv_string.c:1246