|
ANTLR3C 3.3.1
|
Implementation of the ANTLR3 string and string factory classes. More...
#include <antlr3string.h>
Implementation of the ANTLR3 string and string factory classes.
|
static |
References addc8(), ANTLR3_STRING_struct::chars, ANTLR3_STRING_struct::len, and ANTLR3_STRING_struct::size.
Referenced by addc8(), and stringInit8().


|
static |
References addcUTF16(), ANTLR3_STRING_struct::chars, ANTLR3_STRING_struct::len, and ANTLR3_STRING_struct::size.
Referenced by addcUTF16(), and stringInitUTF16().


|
static |
References addi8().
Referenced by addi8(), and stringInit8().


|
static |
References addiUTF16().
Referenced by addiUTF16(), and stringInitUTF16().


| ANTLR3_API pANTLR3_STRING_FACTORY antlr3StringFactoryNew | ( | ANTLR3_UINT32 | encoding | ) |
References ANTLR3_ENC_8BIT, ANTLR3_ENC_EBCDIC, ANTLR3_ENC_UTF16, ANTLR3_ENC_UTF16BE, ANTLR3_ENC_UTF16LE, ANTLR3_ENC_UTF32, ANTLR3_ENC_UTF32BE, ANTLR3_ENC_UTF32LE, ANTLR3_ENC_UTF8, antlr3StringFactoryNew(), antlr3VectorNew(), ANTLR3_STRING_FACTORY_struct::close, closeFactory(), ANTLR3_STRING_FACTORY_struct::destroy, destroy(), ANTLR3_STRING_FACTORY_struct::index, ANTLR3_STRING_FACTORY_struct::newPtr, ANTLR3_STRING_FACTORY_struct::newPtr8, newPtr8(), newPtrUTF16_8(), newPtrUTF16_UTF16(), ANTLR3_STRING_FACTORY_struct::newRaw, newRaw8(), newRawUTF16(), ANTLR3_STRING_FACTORY_struct::newSize, newSize8(), newSizeUTF16(), ANTLR3_STRING_FACTORY_struct::newStr, ANTLR3_STRING_FACTORY_struct::newStr8, newStr8(), newStrUTF16_8(), newStrUTF16_UTF16(), ANTLR3_STRING_FACTORY_struct::printable, printable8(), printableUTF16(), and ANTLR3_STRING_FACTORY_struct::strings.
Referenced by antlr38BitSetupStream(), antlr3EBCDICSetupStream(), antlr3StringFactoryNew(), antlr3UTF16SetupStream(), antlr3UTF32SetupStream(), and antlr3UTF8SetupStream().


|
static |
References append8(), ANTLR3_STRING_struct::chars, ANTLR3_STRING_struct::len, and ANTLR3_STRING_struct::size.
Referenced by append8(), and stringInit8().


|
static |
References appendS(), ANTLR3_STRING_struct::chars, ANTLR3_STRING_struct::len, and ANTLR3_STRING_struct::size.
Referenced by appendS(), stringInit8(), and stringInitUTF16().


|
static |
References appendUTF16_8(), ANTLR3_STRING_struct::chars, ANTLR3_STRING_struct::len, and ANTLR3_STRING_struct::size.
Referenced by appendUTF16_8(), and stringInitUTF16().


|
static |
First, determine the length of the input string
References appendUTF16_UTF16(), ANTLR3_STRING_struct::chars, ANTLR3_STRING_struct::len, and ANTLR3_STRING_struct::size.
Referenced by appendUTF16_UTF16(), and stringInitUTF16().


|
static |
References charAt8(), and ANTLR3_STRING_struct::len.
Referenced by charAt8(), and stringInit8().


|
static |
References charAtUTF16(), and ANTLR3_STRING_struct::len.
Referenced by charAtUTF16(), and stringInitUTF16().


|
static |
Fascist Capitalist Pig function created to oppress the workers comrade.
References closeFactory(), and ANTLR3_STRING_FACTORY_struct::strings.
Referenced by antlr3StringFactoryNew(), and closeFactory().


|
static |
References ANTLR3_STRING_struct::chars, and compare8().
Referenced by compare8(), and stringInit8().


|
static |
References ANTLR3_STRING_struct::chars, and compareS().
Referenced by compareS(), stringInit8(), and stringInitUTF16().


|
static |
References ANTLR3_STRING_struct::chars, and compareUTF16_8().
Referenced by compareUTF16_8(), and stringInitUTF16().


|
static |
References ANTLR3_STRING_struct::chars, and compareUTF16_UTF16().
Referenced by compareUTF16_UTF16(), and stringInitUTF16().


|
static |
References ANTLR3_VECTOR_struct::del, destroy(), ANTLR3_VECTOR_ELEMENT_struct::element, ANTLR3_VECTOR_struct::elements, ANTLR3_STRING_FACTORY_struct::index, and ANTLR3_STRING_FACTORY_struct::strings.
Referenced by antlr3StringFactoryNew(), and destroy().


|
static |
References ANTLR3_STRING_struct::chars, insert8(), ANTLR3_STRING_struct::len, and ANTLR3_STRING_struct::size.
Referenced by insert8(), and stringInit8().


|
static |
References inserti8().
Referenced by inserti8(), and stringInit8().


|
static |
References insertiUTF16().
Referenced by insertiUTF16(), and stringInitUTF16().


|
static |
References ANTLR3_STRING_struct::chars, and insertS().
Referenced by insertS(), stringInit8(), and stringInitUTF16().


|
static |
References ANTLR3_STRING_struct::chars, insertUTF16_8(), ANTLR3_STRING_struct::len, and ANTLR3_STRING_struct::size.
Referenced by insertUTF16_8(), and stringInitUTF16().


|
static |
First, determine the length of the input string
References ANTLR3_STRING_struct::chars, insertUTF16_UTF16(), ANTLR3_STRING_struct::len, and ANTLR3_STRING_struct::size.
Referenced by insertUTF16_UTF16(), and stringInitUTF16().


|
static |
Creates a new 8 bit string initialized with the 8 bit characters at the supplied ptr, of pre-determined size.
| [in] | factory | - Pointer to the string factory that owns the strings |
| [in] | ptr | - Pointer to 8 bit encoded characters |
References ANTLR3_STRING_struct::chars, newPtr8(), and ANTLR3_STRING_FACTORY_struct::newSize.
Referenced by antlr3StringFactoryNew(), and newPtr8().


|
static |
Creates a new UTF16 string initialized with the 8 bit characters at the supplied 8 bit character ptr, of pre-determined size.
| [in] | factory | - Pointer to the string factory that owns the strings |
| [in] | ptr | - Pointer to 8 bit encoded characters |
References ANTLR3_STRING_struct::chars, newPtrUTF16_8(), and ANTLR3_STRING_FACTORY_struct::newSize.
Referenced by antlr3StringFactoryNew(), and newPtrUTF16_8().


|
static |
Creates a new UTF16 string initialized with the UTF16 characters at the supplied ptr, of pre-determined size.
| [in] | factory | - Pointer to the string factory that owns the strings |
| [in] | ptr | - Pointer to UTF16 encoded characters |
References ANTLR3_STRING_struct::chars, newPtrUTF16_UTF16(), and ANTLR3_STRING_FACTORY_struct::newSize.
Referenced by antlr3StringFactoryNew(), and newPtrUTF16_UTF16().


|
static |
| factory |
References ANTLR3_CDECL, ANTLR3_TRUE, ANTLR3_STRING_FACTORY_struct::index, newRaw8(), ANTLR3_VECTOR_struct::set, stringFree(), stringInit8(), and ANTLR3_STRING_FACTORY_struct::strings.
Referenced by antlr3StringFactoryNew(), newRaw8(), and to8_UTF16().


|
static |
| factory |
References ANTLR3_CDECL, ANTLR3_TRUE, ANTLR3_STRING_FACTORY_struct::index, newRawUTF16(), ANTLR3_VECTOR_struct::set, stringFree(), stringInitUTF16(), and ANTLR3_STRING_FACTORY_struct::strings.
Referenced by antlr3StringFactoryNew(), and newRawUTF16().


|
static |
Creates a new string with enough capacity for size 8 bit characters plus a terminator.
| [in] | factory | - Pointer to the string factory that owns strings |
| [in] | size | - In characters |
References ANTLR3_STRING_struct::chars, ANTLR3_STRING_FACTORY_struct::newRaw, and newSize8().
Referenced by antlr3StringFactoryNew(), and newSize8().


|
static |
Creates a new string with enough capacity for size UTF16 characters plus a terminator.
| [in] | factory | - Pointer to the string factory that owns strings |
| [in] | size | - In characters (count double for surrogate pairs!!!) |
References ANTLR3_STRING_struct::chars, ANTLR3_STRING_FACTORY_struct::newRaw, and newSizeUTF16().
Referenced by antlr3StringFactoryNew(), and newSizeUTF16().


|
static |
Create a new 8 bit string from the supplied, null terminated, 8 bit string pointer.
| [in] | factory | - Pointer to the string factory that owns strings. |
| [in] | ptr | - Pointer to the 8 bit encoded string |
References ANTLR3_STRING_FACTORY_struct::newPtr8, and newStr8().
Referenced by antlr3StringFactoryNew(), and newStr8().


|
static |
Create a new UTF16 string from the supplied, null terminated, 8 bit string pointer.
| [in] | factory | - Pointer to the string factory that owns strings. |
| [in] | ptr | - Pointer to the 8 bit encoded string |
References ANTLR3_STRING_FACTORY_struct::newPtr8, and newStrUTF16_8().
Referenced by antlr3StringFactoryNew(), and newStrUTF16_8().


|
static |
Create a new UTF16 string from the supplied, null terminated, UTF16 string pointer.
| [in] | factory | - Pointer to the string factory that owns strings. |
| [in] | ptr | - Pointer to the UTF16 encoded string |
First, determine the length of the input string
References ANTLR3_STRING_FACTORY_struct::newPtr, and newStrUTF16_UTF16().
Referenced by antlr3StringFactoryNew(), and newStrUTF16_UTF16().


|
static |
References ANTLR3_STRING_struct::chars, ANTLR3_STRING_struct::len, ANTLR3_STRING_FACTORY_struct::newSize, and printable8().
Referenced by antlr3StringFactoryNew(), and printable8().


|
static |
References ANTLR3_STRING_struct::chars, ANTLR3_STRING_struct::len, ANTLR3_STRING_FACTORY_struct::newSize, and printableUTF16().
Referenced by antlr3StringFactoryNew(), and printableUTF16().


|
static |
References ANTLR3_STRING_struct::chars, set8(), and ANTLR3_STRING_struct::size.
Referenced by set8(), and stringInit8().


|
static |
References ANTLR3_STRING_struct::chars, and setS().
Referenced by setS(), stringInit8(), and stringInitUTF16().


|
static |
References ANTLR3_STRING_struct::chars, setUTF16_8(), and ANTLR3_STRING_struct::size.
Referenced by setUTF16_8(), and stringInitUTF16().


|
static |
First, determine the length of the input string
References ANTLR3_STRING_struct::chars, setUTF16_UTF16(), and ANTLR3_STRING_struct::size.
Referenced by setUTF16_UTF16(), and stringInitUTF16().


|
static |
References ANTLR3_CDECL, ANTLR3_STRING_struct::chars, and stringFree().
Referenced by newRaw8(), newRawUTF16(), stringFree(), and toInt32_UTF16().


|
static |
| string |
References addc8(), addi8(), ANTLR3_ENC_8BIT, append8(), appendS(), charAt8(), compare8(), ANTLR3_STRING_struct::compareS, compareS(), insert8(), inserti8(), insertS(), set8(), setS(), stringInit8(), subString8(), to8_8(), ANTLR3_STRING_struct::toInt32, toInt32_8(), ANTLR3_STRING_struct::toUTF8, and toUTF8_8().
Referenced by newRaw8(), stringInit8(), and toInt32_UTF16().


|
static |
| string |
References addcUTF16(), addiUTF16(), ANTLR3_ENC_8BIT, appendS(), appendUTF16_8(), appendUTF16_UTF16(), charAtUTF16(), ANTLR3_STRING_struct::compareS, compareS(), compareUTF16_8(), compareUTF16_UTF16(), insertiUTF16(), insertS(), insertUTF16_8(), insertUTF16_UTF16(), setS(), setUTF16_8(), setUTF16_UTF16(), stringInitUTF16(), subStringUTF16(), to8_UTF16(), ANTLR3_STRING_struct::toInt32, toInt32_UTF16(), ANTLR3_STRING_struct::toUTF8, and toUTF8_UTF16().
Referenced by newRawUTF16(), stringInitUTF16(), and toInt32_UTF16().


|
static |
| string |
References stringInitUTF8().
Referenced by stringInitUTF8().


|
static |
References ANTLR3_STRING_struct::chars, ANTLR3_STRING_struct::factory, ANTLR3_STRING_struct::len, ANTLR3_STRING_FACTORY_struct::newPtr, and subString8().
Referenced by stringInit8(), and subString8().


|
static |
References ANTLR3_STRING_struct::chars, ANTLR3_STRING_struct::factory, ANTLR3_STRING_struct::len, ANTLR3_STRING_FACTORY_struct::newPtr, and subStringUTF16().
Referenced by stringInitUTF16(), and subStringUTF16().


|
static |
References to8_8().
Referenced by stringInit8(), to8_8(), and toInt32_UTF16().


|
static |
References ANTLR3_STRING_struct::chars, ANTLR3_STRING_struct::factory, ANTLR3_STRING_struct::len, newRaw8(), ANTLR3_STRING_struct::size, and to8_UTF16().
Referenced by stringInitUTF16(), to8_UTF16(), and toInt32_UTF16().


|
static |
References toInt32_8().
Referenced by stringInit8(), toInt32_8(), and toInt32_8().


|
static |
|
static |
References ANTLR3_API, ANTLR3_CDECL, stringFree(), stringInit8(), stringInitUTF16(), to8_8(), to8_UTF16(), toInt32_UTF16(), toUTF8_8(), and toUTF8_UTF16().
Referenced by stringInitUTF16(), toInt32_UTF16(), and toInt32_UTF16().


|
static |
References ANTLR3_FALSE, ANTLR3_TRUE, ANTLR3_STRING_struct::chars, and toInt32_UTF16().

|
static |
References ANTLR3_STRING_struct::chars, ANTLR3_STRING_struct::factory, ANTLR3_STRING_struct::len, ANTLR3_STRING_FACTORY_struct::newPtr, and toUTF8_8().
Referenced by stringInit8(), toInt32_UTF16(), and toUTF8_8().


|
static |
References ANTLR3_UINT32_CAST, ANTLR3_STRING_struct::chars, ConvertUTF16toUTF8(), ANTLR3_STRING_struct::factory, ANTLR3_STRING_struct::len, lenientConversion, ANTLR3_STRING_FACTORY_struct::newStr8, ANTLR3_STRING_struct::size, and toUTF8_UTF16().
Referenced by stringInitUTF16(), toInt32_UTF16(), and toUTF8_UTF16().

