> The XQuery Processor
#include <zorba/zorbastring.h>
Public Member Functions | |
| const String & | append (const char *suffix) |
| Append characters onto "this". | |
| bool | byteEqual (const char *aString, unsigned int aBytes) const |
| Byte by byte comparison of two strings. | |
| size_t | bytes () const |
| Returns the number of bytes in the string, not including any null-termination. | |
| const char * | c_str () const |
| Returns a non-modifiable standard C character array version of the string. | |
| int | compare (const String &aString) const |
| Compares two strings. | |
| bool | empty () const |
| True if the string has no characters. | |
| const String & | encodeForUri () |
| Encodes reserved characters in an String that is intended to be used in the path segment of a URI. | |
| bool | endsWith (const char *pattern) const |
| Determine if "pattern" is a suffix of "this". | |
| bool | equals (const String &aString) const |
| Compares two strings. | |
| const String & | escapeHtmlUri () |
| Escape all characters except printable characters of the US-ASCII coded character set, specifically the octets ranging from 32 to 126 (decimal). | |
| const String & | formatAsXML () |
| Escape all characters except US-ASCII coded character set. | |
| int | indexOf (const char *pattern) const |
| Locate in "this" the first occurrence of the "pattern" substring. | |
| const String & | iriToUri () |
| Converts an String containing an IRI into a URI. | |
| int | lastIndexOf (const char *pattern) const |
| Locate in "this" the last occurrence of the "pattern" substring. | |
| size_t | length () const |
| Returns the number of characters in the string, not including any null-termination. | |
| const String & | lowercase () |
| Convert to lowercase. | |
| const String & | normalizeSpace () |
| Returns the value of "this" with whitespace normalized by stripping leading and trailing whitespace and replacing sequences of one or more than one whitespace character with a single space, #x20. | |
| bool | operator!= (const String &str) const |
| const String & | operator= (xqpStringStore *other) |
| Assingment operator that is used in the Zorba engine itself. | |
| const String & | operator= (const String &other) |
| Assignment operator. | |
| bool | operator== (const String &str) const |
| String (const std::string &aString) | |
| Constructor to construct a String from a std::string. | |
| String (const char *aString) | |
| Constructor to construct a String from a const char*. | |
| String (xqpStringStore *aString) | |
| Constructor that is used to construct Items in the Zorba engine itself. | |
| String (const String &other) | |
| Copy constructor. | |
| const String & | trim () |
| Removes leading and trailing whitespace. | |
| const String & | trim (const char *start, int len) |
| Removes leading and trailing whitespace. | |
| const String & | uppercase () |
| Convert to uppercase. | |
| ~String () | |
| Destructor. | |
Friends | |
| class | Unmarshaller |
The interface of this class is similar to that of std::string. However, it contains Unicode characters encoded as UTF-8. UTF-8 FAQ
Definition at line 33 of file zorbastring.h.
| zorba::String::String | ( | const String & | other | ) |
Copy constructor.
| zorba::String::String | ( | xqpStringStore * | aString | ) |
Constructor that is used to construct Items in the Zorba engine itself.
This constructor is for internal use only.
| zorba::String::String | ( | const char * | aString | ) |
| zorba::String::String | ( | const std::string & | aString | ) |
| zorba::String::~String | ( | ) |
Destructor.
| const String& zorba::String::append | ( | const char * | suffix | ) |
Append characters onto "this".
| bool zorba::String::byteEqual | ( | const char * | aString, | |
| unsigned int | aBytes | |||
| ) | const |
Byte by byte comparison of two strings.
| size_t zorba::String::bytes | ( | ) | const |
| const char* zorba::String::c_str | ( | ) | const |
Returns a non-modifiable standard C character array version of the string.
| int zorba::String::compare | ( | const String & | aString | ) | const |
Compares two strings.
| bool zorba::String::empty | ( | ) | const |
| const String& zorba::String::encodeForUri | ( | ) |
Encodes reserved characters in an String that is intended to be used in the path segment of a URI.
see Section 2 [http://www.ietf.org/rfc/rfc3986.txt]
| bool zorba::String::endsWith | ( | const char * | pattern | ) | const |
Determine if "pattern" is a suffix of "this".
| bool zorba::String::equals | ( | const String & | aString | ) | const |
| const String& zorba::String::escapeHtmlUri | ( | ) |
Escape all characters except printable characters of the US-ASCII coded character set, specifically the octets ranging from 32 to 126 (decimal).
| const String& zorba::String::formatAsXML | ( | ) |
Escape all characters except US-ASCII coded character set.
| int zorba::String::indexOf | ( | const char * | pattern | ) | const |
Locate in "this" the first occurrence of the "pattern" substring.
| const String& zorba::String::iriToUri | ( | ) |
Converts an String containing an IRI into a URI.
see Section 3.1 [http://www.ietf.org/rfc/rfc3987.txt]
| int zorba::String::lastIndexOf | ( | const char * | pattern | ) | const |
Locate in "this" the last occurrence of the "pattern" substring.
| size_t zorba::String::length | ( | ) | const |
| const String& zorba::String::lowercase | ( | ) |
| const String& zorba::String::normalizeSpace | ( | ) |
Returns the value of "this" with whitespace normalized by stripping leading and trailing whitespace and replacing sequences of one or more than one whitespace character with a single space, #x20.
| bool zorba::String::operator!= | ( | const String & | str | ) | const |
| const String& zorba::String::operator= | ( | xqpStringStore * | other | ) |
Assingment operator that is used in the Zorba engine itself.
This operator is for internal use only.
| bool zorba::String::operator== | ( | const String & | str | ) | const |
| const String& zorba::String::trim | ( | ) |
Removes leading and trailing whitespace.
| const String& zorba::String::trim | ( | const char * | start, | |
| int | len | |||
| ) |
Removes leading and trailing whitespace.
| const String& zorba::String::uppercase | ( | ) |
friend class Unmarshaller [friend] |
Definition at line 228 of file zorbastring.h.