Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

unicode.h File Reference


Detailed Description

Public include file for the UNICODE utilities module.

#include <stdbool.h>
#include <stddef.h>

Include dependency graph for unicode.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Defines

#define SOBJ_UC_ASCII_ESC   ((char)0x1b)
 The ASCII ESC character.
#define SOBJ_UC_ASCII_STX   ((char)0x2)
 The ASCII STX character.
#define SOBJ_UC_ASCII_ETX   ((char)0x3)
 The ASCII ETX character.
#define SOBJ_UC_NEXT(P)
 Advance P to the next UTF-8 character.
#define SOBJ_UC_PREV(P)
 Rewind P to the previous UTF-8 character.

Enumerations

enum  sobj_uc_sig {
  SOBJ_UC_NONE = 0, SOBJ_UC_UTF8, SOBJ_UC_UTF16BE, SOBJ_UC_UTF16LE,
  SOBJ_UC_UTF32BE, SOBJ_UC_UTF32LE, SOBJ_UC_SCSU
}
 Enumeration of UNICODE signatures. More...

Functions

size_t sobj_uc_strlen (const char *)
 Compute the length of a UNICODE string.
size_t sobj_uc_strnlen (const char *, ptrdiff_t)
 Compute the length of a UNICODE string.
enum sobj_uc_sig sobj_uc_string_sig (const char *)
 Check if a string starts with a UNICODE encoding signature.
const char * sobj_uc_string_skip_sig (const char *)
 Skip the UNICODE UTF-8 signature.
const char * sobj_uc_string_index (const char *, size_t)
 Find the character at the specified index.
unsigned sobj_uc_code (const char *)
 Return the UNICODE code point of a UTF-8 character sequence.
const char * sobj_ucx_next (const char *)
 Skip to the next UTF-8 character or variable referece in an UCX.
const char * sobj_ucx_next_strict (const char *)
 Skip to the next UTF-8 character or variable referece in an UCX.
const char * sobj_ucx_next_bounded (const char *, const char *)
 Skip to the next UTF-8 character or variable referece in an UCX.
size_t sobj_ucx_strlen (const char *)
 Compute the length of an extended UNICODE string.
size_t sobj_ucx_strnlen (const char *, ptrdiff_t)
 Compute the length of an extended UNICODE string.
const char * sobj_ucx_string_index (const char *, size_t)
 Find the character or variable referece at the specified index.
size_t sobj_ucx_string_replace (const char *, ptrdiff_t, ptrdiff_t, const char *, char *)
 Replace a substring of an extended UNICODE string.
bool sobj_ucx_string_ok (const char *, ptrdiff_t)
 Check if a UCX string is valid.
size_t sobj_uc_to_ucx (const char *, ptrdiff_t, char *)
 Convert an UTF-8 encoded UNICODE string to an UCX string.
size_t sobj_ucx_string_quote (const char *, char *, ptrdiff_t)
 Create a quoted string representation of an extended UNICODE string.
size_t sobj_ucx_string_resolve (const char *, struct sobj_env *, struct sobj_buffer *)
 Resolve all variable refereces in an extended UNICODE string.


Generated on Sat Jul 23 16:06:11 2005 for sobject by  doxygen 1.3.9.1