xml/ | |
License | Copyright © 2007-2012, FreeBASIC Extended Library Development Group |
Macros | |
FBEXT_XML_IS_WHITESPACE | returns true if character is a whitespace character. |
Enumerations | |
char | Contains the ASCII characters that are special or must be escaped in XML. |
Functions | |
encode_entities | Encodes special characters in a string to their proper form. |
decode_entities | Decodes special characters in a string to their standard form. |
encode_utf8 | Encodes a UTF-8 character to its string representation. |
decode_utf8 | Decodes a UTF-8 character from its string representation. |
Copyright © 2007-2012, FreeBASIC Extended Library Development Group
Distributed under the FreeBASIC Extended Library Group license. See accompanying file LICENSE.txt or copy at http://code.google.com
declare function decode_utf8( byval src as zstring ptr, byref u as integer ) as integer
Decodes a UTF-8 character from its string representation.
src | zstring ptr containing the encoded UTF-8 character. |
u | integer representation of the encoded UTF-8 character is returned via this parameter. |
integer, the number of characters the UTF-8 character occupied while encoded.
returns true if character is a whitespace character.
#define FBEXT_XML_IS_WHITESPACE( c ) ((c) = &h09 or (c) = &h0a or (c) = &h0d or (c) = &h20)
Encodes special characters in a string to their proper form.
declare function encode_entities( byref text as const string ) as string
Decodes special characters in a string to their standard form.
declare function decode_entities( byref text as const string ) as string
Encodes a UTF-8 character to its string representation.
declare function encode_utf8( byval u as integer ) as zstring ptr
Decodes a UTF-8 character from its string representation.
declare function decode_utf8( byval src as zstring ptr, byref u as integer ) as integer