blob: 205ea0e4ec270f27858e4ffdbf435878f882706f [file] [log] [blame]
Alexander Afanasyev57e20ed2013-11-26 19:14:19 -08001.. _Name.Component:
2
3Name.Component Class
4====================
5
6A Name.Component is holds a read-only name component value
7
8:[C++]:
9
10 Namespace: ``ndn``
11
12Name.Component Constructor
13--------------------------
14
15Create 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
31Name.Component.toEscapedString Method
32-------------------------------------
33
34Convert 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.