|
OSAPI
0.29
Open System API
|
The String module. More...

Macros | |
| #define | OSAPI_STRING_NULL_POINTER (( t_string *) 0) |
| Define a null OSAPI string. | |
| #define | OSAPI_WIDE_STRING_NULL_POINTER (( t_wString *) 0) |
| Define a null OSAPI wide string. | |
| #define | OSAPI_WIDE_CHAR_NULL_POINTER (( wchar_t *) 0) |
| Define a null pointer for an array of wide characters. | |
Typedefs | |
| typedef struct osapi_basic_string | t_string |
| The OSAPI C String type. | |
| typedef struct osapi_wide_string | t_wString |
| The OSAPI C String type for wide characters. | |
Functions | |
| t_status | string_module_supported (void) |
| Is the string module supported in the platform. More... | |
| t_status | string_basic_new (t_size size, t_string *string) |
| Create a new OSAPI string. More... | |
| t_status | string_basic_create (const char *cstring, t_string *string) |
| Create a new OSAPI string based on a C string. More... | |
| t_status | string_basic_delete (t_string *string) |
| Delete an OSAPI string. More... | |
| t_status | string_basic_put (const char *cstring, t_string *string) |
| Set the OSAPI string with the contents of C string. More... | |
| t_status | string_basic_copy (const char *cstring, t_string *string) |
| Copy from a C string into an OSAPI string. More... | |
| t_status | string_basic_size (t_string *string, t_size *size) |
| Get the size of the OSAPI string. More... | |
| t_status | string_basic_clone (t_string *string1, t_string *string2) |
| Clone an OSAPI string. More... | |
| t_status | string_basic_print (t_string *string) |
| Print to standard output the contents of the OSAPI string. More... | |
| t_status | string_basic_get (t_string *string, t_size size, char *cstring) |
| Get a C string from an OSAPI string. More... | |
| t_status | string_basic_equal (t_string *string1, t_string *string2, bool *result) |
| Check if two OSAPI strings are the same. More... | |
| t_status | string_basic_compare (t_string *string1, t_string *string2, Byte *result) |
| Case compare two OSAPI strings. More... | |
| t_status | string_basic_compareIcase (t_string *string1, t_string *string2, Byte *result) |
| Case insensitive comparison of two OSAPI strings. More... | |
| t_status | string_basic_concat (t_string *string1, t_string *string2, t_string *string3) |
| Concatenation of two OSAPI strings. More... | |
The String module.
Clone an OSAPI string.
| [in] | string1 | - Source string |
| [out] | string2 | - Resulting string |

Case compare two OSAPI strings.
| [in] | string1 | - First string |
| [in] | string2 | - Second string |
| [out] | result | - True if the strings are identical. False otherwise. |
Case insensitive comparison of two OSAPI strings.
| [in] | string1 | - First string |
| [in] | string2 | - Second string |
| [out] | result | - True if the strings are identical. False otherwise. |
Concatenation of two OSAPI strings.
| [in] | string1 | - First string |
| [in] | string2 | - Second string |
| [out] | string3 | - Concatenated string |

Copy from a C string into an OSAPI string.
| [in] | cstring | - The source C string |
| [out] | string | - The resulting OSAPI string |
Create a new OSAPI string based on a C string.
| [in] | cstring | - The C string |
| [out] | string | - The resulting OSAPI string |


Delete an OSAPI string.
| [in] | string | - The string to delete |

Check if two OSAPI strings are the same.
| [in] | string1 | - First string |
| [in] | string2 | - Second string |
| [out] | result | - True if the strings are equal. False otherwise. |
Get a C string from an OSAPI string.
| [in] | string | - OSAPI string |
| [in] | size | - Size of the C string |
| [out] | cstring | - Resulting C string |
Create a new OSAPI string.
| [in] | size | - The memory allocate to the new string |
| [out] | string | - Address of the new string |
Print to standard output the contents of the OSAPI string.
| [in] | string | - OSAPI string |
Set the OSAPI string with the contents of C string.
| [in] | cstring | - The source C string |
| [out] | string | - The resulting OSAPI string |
Get the size of the OSAPI string.
| [in] | string | - The OSAPI string |
| [out] | size | - The size of the OSAPI string |
| t_status string_module_supported | ( | void | ) |
Is the string module supported in the platform.