Inherits std::basic_string< C >.
Constructors | |
| uri (const C *s) | |
| Initialize an instance with a copy of a C string. | |
| uri (const C *s, std::size_t n) | |
| Initialize an instance with a character array. | |
| uri (std::size_t n, C c) | |
| Initialize an instance with multiple copies of the same character. | |
| uri (const std::basic_string< C > &s) | |
| Initialize an instance with a copy of a standard string. | |
| uri (const std::basic_string< C > &s, std::size_t pos, std::size_t n=std::basic_string< C >::npos) | |
| Initialize an instance with a copy of a substring. | |
| uri (const uri &x, flags f=0, container *c=0) | |
| Copy constructor. | |
| virtual uri * | _clone (flags f=0, container *c=0) const |
| Copy the instance polymorphically. | |
| template<typename S> | |
| uri (istream< S > &s, flags f=0, container *c=0) | |
| Create an instance from a data representation stream. | |
| uri (const xercesc::DOMElement &e, flags f=0, container *c=0) | |
| Create an instance from a DOM element. | |
| uri (const xercesc::DOMAttr &a, flags f=0, container *c=0) | |
| Create an instance from a DOM Attribute. | |
| uri (const std::basic_string< C > &s, const xercesc::DOMElement *e, flags f=0, container *c=0) | |
| Create an instance from a string fragment. | |
Public Member Functions | |
| uri & | operator= (C c) |
| Assign a character to the instance. | |
| uri & | operator= (const C *s) |
| Assign a C string to the instance. | |
| uri & | operator= (const std::basic_string< C > &s) |
| Assign a standard string to the instance. | |
| uri & | operator= (const uri &x) |
| Copy assignment operator. | |
Friends | |
| class | qname |
The uri class publicly inherits from and has the same set of constructors as std::basic_string. It therefore can be used as std::string (or std::wstring if you are using wchar_t as the character type).
| uri | ( | const C * | s | ) | [inline] |
Initialize an instance with a copy of a C string.
| s | A C string to copy. |
| uri | ( | const C * | s, | |
| std::size_t | n | |||
| ) | [inline] |
Initialize an instance with a character array.
| s | A character array to copy. | |
| n | A number of character to copy. |
| uri | ( | std::size_t | n, | |
| C | c | |||
| ) | [inline] |
Initialize an instance with multiple copies of the same character.
| n | A number of copies to create. | |
| c | A character to copy. |
| uri | ( | const std::basic_string< C > & | s | ) | [inline] |
Initialize an instance with a copy of a standard string.
| s | A standard string to copy. |
| uri | ( | const std::basic_string< C > & | s, | |
| std::size_t | pos, | |||
| std::size_t | n = std::basic_string<C>::npos | |||
| ) | [inline] |
Initialize an instance with a copy of a substring.
| s | A standard string to copy the substring from. | |
| pos | An index of the first character to copy from. | |
| n | A number of characters to copy. |
Copy constructor.
| x | An instance to make a copy of. | |
| f | Flags to create the copy with. | |
| c | A pointer to the object that will contain the copy. |
_clone function instead.
Create an instance from a data representation stream.
| s | A stream to extract the data from. | |
| f | Flags to create the new instance with. | |
| c | A pointer to the object that will contain the new instance. |
Create an instance from a DOM element.
| e | A DOM element to extract the data from. | |
| f | Flags to create the new instance with. | |
| c | A pointer to the object that will contain the new instance. |
Create an instance from a DOM Attribute.
| a | A DOM attribute to extract the data from. | |
| f | Flags to create the new instance with. | |
| c | A pointer to the object that will contain the new instance. |
| uri | ( | const std::basic_string< C > & | s, | |
| const xercesc::DOMElement * | e, | |||
| flags | f = 0, |
|||
| container * | c = 0 | |||
| ) |
Create an instance from a string fragment.
| s | A string fragment to extract the data from. | |
| e | A pointer to DOM element containing the string fragment. | |
| f | Flags to create the new instance with. | |
| c | A pointer to the object that will contain the new instance. |
Copy the instance polymorphically.
| f | Flags to create the copy with. | |
| c | A pointer to the object that will contain the copy. |
| uri& operator= | ( | C | c | ) | [inline] |
Assign a character to the instance.
The resulting uri has only one character.
| c | A character to assign. |
| uri& operator= | ( | const C * | s | ) | [inline] |
Assign a C string to the instance.
The resulting uri contains a copy of the C string.
| s | A C string to assign. |
| uri& operator= | ( | const std::basic_string< C > & | s | ) | [inline] |
Assign a standard string to the instance.
The resulting uri contains a copy of the standard string.
| s | A standard string to assign. |
Copy assignment operator.
| x | An instance to assign. |