Alexander Afanasyev | 57e20ed | 2013-11-26 19:14:19 -0800 | [diff] [blame] | 1 | .. _Name.Component: |
| 2 | |
| 3 | Name.Component Class |
| 4 | ==================== |
| 5 | |
| 6 | A Name.Component is holds a read-only name component value |
| 7 | |
| 8 | :[C++]: |
| 9 | |
| 10 | Namespace: ``ndn`` |
| 11 | |
| 12 | Name.Component Constructor |
| 13 | -------------------------- |
| 14 | |
| 15 | Create a new Name.Component, copying the optional value. |
| 16 | |
| 17 | |
| 18 | :[C++]: |
| 19 | |
| 20 | .. code-block:: c++ |
| 21 | |
| 22 | Name::Component( |
| 23 | [const std::vector<uint8_t>& value] |
| 24 | ); |
| 25 | |
| 26 | :Parameters: |
| 27 | |
| 28 | - ``value`` |
| 29 | (optional) The content byte array to copy. |
| 30 | |
| 31 | Name.Component.toEscapedString Method |
| 32 | ------------------------------------- |
| 33 | |
| 34 | Convert this component value by escaping characters according to the NDN URI Scheme. |
| 35 | |
| 36 | :[C++]: |
| 37 | |
| 38 | .. code-block:: c++ |
| 39 | |
| 40 | std::string toEscapedString() const (); |
| 41 | |
| 42 | :Returns: |
| 43 | |
| 44 | The escaped string. |