rtxUnicode.h File Reference
This is an open source header file derived from the libxml2 project. More...
#include <stdio.h>
#include "rtxsrc/rtxContext.h"
Go to the source code of this file.
Defines | |
| #define | OS_IS_CHAR(c) |
| #define | OS_IS_BLANK(c) (((c) == 0x20) || ((c) == 0x09) || ((c) == 0xA) || ((c) == 0x0D)) |
| #define | OS_IS_BASECHAR(c) rtxUCSIsBaseChar(c) |
| #define | OS_IS_DIGIT(c) rtxUCSIsDigit(c) |
| #define | OS_IS_COMBINING(c) rtxUCSIsCombining(c) |
| #define | OS_IS_EXTENDER(c) rtxUCSIsExtender(c) |
| #define | OS_IS_IDEOGRAPHIC(c) rtxUCSIsIdeographic(c) |
| #define | OS_IS_LETTER(c) (IS_BASECHAR(c) || IS_IDEOGRAPHIC(c)) |
| #define | OS_IS_PUBIDCHAR(c) xmlIsPubidChar(c) |
Functions | |
| const OSUTF8CHAR * | rtxUCSToDynUTF8 (OSCTXT *pctxt, const OSUNICHAR *inbuf) |
| This function converts a null-terminated Unicode string into a UTF-8 string. | |
| OSBOOL | rtxUCSIsChar (OS32BITCHAR c) |
| rtxUCSIsChar: | |
| OSBOOL | rtxUCSIsBlank (OS32BITCHAR c) |
| rtxUCSIsBlank: | |
| OSBOOL | rtxUCSIsBaseChar (OS32BITCHAR c) |
| rtxUCSIsBaseChar: | |
| OSBOOL | rtxUCSIsDigit (OS32BITCHAR c) |
| rtxUCSIsDigit: | |
| OSBOOL | rtxUCSIsCombining (OS32BITCHAR c) |
| rtxUCSIsCombining: | |
| OSBOOL | rtxUCSIsExtender (OS32BITCHAR c) |
| rtxUCSIsExtender: | |
| OSBOOL | rtxUCSIsIdeographic (OS32BITCHAR c) |
| rtxUCSIsIdeographic: | |
| OSBOOL | rtxUCSIsLetter (OS32BITCHAR c) |
| rtxUCSIsLetter: | |
| OSBOOL | rtxUCSIsPubidChar (OS32BITCHAR c) |
| rtxUCSIsPubidChar: | |
Detailed Description
This is an open source header file derived from the libxml2 project.It defines UNICODE data types and macros. See the header file for further details.
Definition in file rtxUnicode.h.
Function Documentation
| OSBOOL rtxUCSIsBaseChar | ( | OS32BITCHAR | c | ) |
rtxUCSIsBaseChar:
- Parameters:
-
c,: an unicode character (int)
Returns 0 if not, non-zero otherwise
| OSBOOL rtxUCSIsBlank | ( | OS32BITCHAR | c | ) |
rtxUCSIsBlank:
- Parameters:
-
c,: a UNICODE character (int)
Returns 0 if not, non-zero otherwise
| OSBOOL rtxUCSIsChar | ( | OS32BITCHAR | c | ) |
rtxUCSIsChar:
- Parameters:
-
c,: an unicode character (int)
Returns 0 if not, non-zero otherwise
| OSBOOL rtxUCSIsCombining | ( | OS32BITCHAR | c | ) |
rtxUCSIsCombining:
- Parameters:
-
c,: an unicode character (int)
Returns 0 if not, non-zero otherwise
| OSBOOL rtxUCSIsDigit | ( | OS32BITCHAR | c | ) |
rtxUCSIsDigit:
- Parameters:
-
c,: an unicode character (int)
Returns 0 if not, non-zero otherwise
| OSBOOL rtxUCSIsExtender | ( | OS32BITCHAR | c | ) |
rtxUCSIsExtender:
- Parameters:
-
c,: an unicode character (int)
Returns 0 if not, non-zero otherwise
| OSBOOL rtxUCSIsIdeographic | ( | OS32BITCHAR | c | ) |
rtxUCSIsIdeographic:
- Parameters:
-
c,: an unicode character (int)
Returns 0 if not, non-zero otherwise
| OSBOOL rtxUCSIsLetter | ( | OS32BITCHAR | c | ) |
rtxUCSIsLetter:
- Parameters:
-
c,: an unicode character (int)
Returns 0 if not, non-zero otherwise
| OSBOOL rtxUCSIsPubidChar | ( | OS32BITCHAR | c | ) |
rtxUCSIsPubidChar:
- Parameters:
-
c,: an unicode character (int)
Returns 0 if not, non-zero otherwise
| const OSUTF8CHAR* rtxUCSToDynUTF8 | ( | OSCTXT * | pctxt, | |
| const OSUNICHAR * | inbuf | |||
| ) |
This function converts a null-terminated Unicode string into a UTF-8 string.
Memory is allocated for the output string using the built-in memory management functions.
- Parameters:
-
pctxt Pointer to context structure. inbuf Null-terminated Unicode string to convert.
- Returns:
- Converted UTF-8 character string.
