Grouping same methods under one subsection
Change-Id: I8915435632d5a92cabe6cf5335146729507ab6e5
diff --git a/name.rst b/name.rst
index fb217b2..6ca5af3 100644
--- a/name.rst
+++ b/name.rst
@@ -19,7 +19,7 @@
.. code-block:: c++
- ndn::Name::Component(
+ Name::Component(
[const std::vector<uint8_t>& value]
);
@@ -56,8 +56,11 @@
:[Python]:
Module: ``pyndn``
+Name Constructors
+-----------------
+
Name Constructor (array of components)
---------------------------------------
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Create a new Name with the optional components.
@@ -88,10 +91,10 @@
:Parameters:
- ``components``
- (optional) The array of name components.
+ (optional) The array of :ref:`name components <Name.Component>`.
Name Constructor (from URI)
----------------------------
+^^^^^^^^^^^^^^^^^^^^^^^^^^^
Parse the uri according to the NDN URI Scheme and create the Name with the components.
@@ -266,8 +269,11 @@
true if this matches the given name, otherwise false. This always returns true if this name is empty.
+Name.append Methods
+-------------------
+
Name.append Method (copy byte array)
-------------------------------------
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Append a new component, copying from byte array.
@@ -298,7 +304,7 @@
This name so that you can chain calls to append.
Name.append Method (from Blob)
-------------------------------
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Append a new component, taking another pointer to the byte array in the Blob.
@@ -320,7 +326,7 @@
This name so that you can chain calls to append.
Name.append Method (from Component)
------------------------------------
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Append the component to this name.
@@ -342,7 +348,7 @@
This name so that you can chain calls to append.
Name.append Method (from Name)
-------------------------------
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Append the components of the given name to this name.