Adaptive Framework
0.9.0
|
AFW UTF-8 string functions. More...
#include "afw_internal.h"
#include <unicode/utf8.h>
#include <unicode/utf.h>
#include <unicode/uchar.h>
#include <unicode/unorm2.h>
#include <unicode/ustring.h>
Go to the source code of this file.
Macros | |
#define | IMPL_WHITESPACE(c) ((c) == 0x20 || (c) == 0x09 || (c) == 0x0d || (c) == 0x0a) |
Functions | |
afw_utf8_next_code_point (const afw_utf8_octet_t *s, afw_size_t *offset, afw_size_t len, afw_xctx_t *xctx) | |
Get next codepoint in utf-8. More... | |
afw_utf8_from_code_point (afw_utf8_octet_t utf8_z[5], afw_code_point_t cp, afw_xctx_t *xctx) | |
Convert a code point to utf8. More... | |
afw_utf8_nfc (const afw_utf8_octet_t *s, afw_size_t len, afw_utf8_nfc_option_t option, const afw_pool_t *p, afw_xctx_t *xctx) | |
UTF-8 NFC support function. More... | |
afw_utf8_z_create (const afw_utf8_octet_t *s, afw_size_t len, const afw_pool_t *p, afw_xctx_t *xctx) | |
Create a NFC Normalized zero terminated UTF-8 string in specified pool. More... | |
const afw_utf8_t * | afw_utf8_from_encoding (const afw_utf8_t *from_encoding, const char **from, afw_size_t *from_size, const afw_pool_t *p, afw_xctx_t *xctx) |
Convert character encoding to a utf-8 in specified pool. More... | |
AFW_DEFINE_ELLIPSIS (const afw_utf8_t *) | |
AFW_DEFINE (const afw_utf8_t *) | |
afw_utf8_printf (const afw_pool_t *p, afw_xctx_t *xctx, const afw_utf8_z_t *format,...) | |
Create a utf-8 string using a c format string in specified pool. More... | |
afw_utf8_printf_v (const afw_utf8_z_t *format, va_list arg, const afw_pool_t *p, afw_xctx_t *xctx) | |
Create a utf-8 string using a c format string in specified pool. More... | |
AFW_DEFINE (afw_boolean_t) | |
afw_utf8_ends_with (const afw_utf8_t *string, const afw_utf8_t *ends_with) | |
Check to see if a string ends with another string. More... | |
afw_utf8_ends_with_z (const afw_utf8_t *string, const afw_utf8_z_t *ends_with_z) | |
Check to see if a string ends with a utf8_z string. More... | |
afw_utf8_contains (const afw_utf8_t *s1, const afw_utf8_t *s2) | |
Check to see if a string contains another string. More... | |
AFW_DEFINE (int) | |
AFW_DEFINE_ELLIPSIS (const afw_utf8_z_t *) | |
afw_utf8_z_printf_v (const afw_utf8_z_t *format_z, va_list ap, const afw_pool_t *p, afw_xctx_t *xctx) | |
afw_utf8_clone_pointer_array (afw_size_t count, const afw_utf8_t *const *pointers, afw_boolean_t NULL_terminate, const afw_pool_t *p, afw_xctx_t *xctx) | |
Clone a pointer array of utf-8 to specified pool. More... | |
afw_utf8_array_to_utf8_with_separator (const afw_utf8_t *const *strings, const afw_utf8_t *separator, const afw_pool_t *p, afw_xctx_t *xctx) | |
Concat array of utf-8 with optional separator to specified pool. More... | |
afw_utf8_array_to_utf8_z_with_separator (const afw_utf8_t *const *strings, const afw_utf8_t *separator, const afw_pool_t *p, afw_xctx_t *xctx) | |
Concat array of utf-8 with optional separator to specified pool. More... | |
afw_utf8_z_array_to_utf8_z_with_separator (const afw_utf8_z_t *const *strings_z, const afw_utf8_t *separator, const afw_pool_t *p, afw_xctx_t *xctx) | |
Concat array of utf-8 with optional separator to specified pool. More... | |
afw_utf8_z_source_file (const afw_utf8_z_t *source_z) | |
Returns value of source_z after last '/ 'or '\'. More... | |
afw_utf8_line_column_of_offset (afw_size_t *line_number, afw_size_t *column_number, const afw_utf8_t *s, afw_size_t offset, int tab_size, afw_xctx_t *xctx) | |
Determine the line and column of an offset in a string. More... | |
afw_utf8_line_count_and_max_column (afw_size_t *number_of_lines, afw_size_t *max_column_number, const afw_utf8_t *s, int tab_size, afw_xctx_t *xctx) | |
Determine the line count and maximum column in a string. More... | |
afw_utf8_parse_csv (const afw_utf8_t *s, const afw_pool_t *p, afw_xctx_t *xctx) | |
Check to see if a string equals a utf8_z string. More... | |
AFW UTF-8 string functions.
Definition in file afw_utf8.c.