[3.0][online-doc] fixed typo (mybuffer -> buf)
authorJaeun Choi <jaeun12.choi@samsung.com>
Thu, 19 May 2016 08:45:19 +0000 (17:45 +0900)
committerJaeun Choi <jaeun12.choi@samsung.com>
Thu, 19 May 2016 08:45:19 +0000 (17:45 +0900)
Change-Id: Id784ae5156ca71db4013b51543fa90bbb8a36066

org.tizen.ui.practices/html/native/efl/data_types_n.htm

index 147b148..341eba0 100644 (file)
@@ -129,7 +129,7 @@ eina_stringshare_del(mystr);
 <li>Initialize the <span style="font-family: Courier New,Courier,monospace">Eina_Strbuf</span> instance and create the buffer:
 <pre class="prettyprint">
 Eina_Strbuf *buf;
-mybuffer = eina_strbuf_new();
+buf = eina_strbuf_new();
 </pre>
 </li>
 <li>Manage the buffer content:
@@ -139,13 +139,13 @@ mybuffer = eina_strbuf_new();
 <li>
 <p>For basic strings, use the <span style="font-family: Courier New,Courier,monospace">eina_strbuf_append()</span> function:</p>
 <pre class="prettyprint">
-eina_strbuf_append(mybuffer, &quot;This is my string.&quot;);
+eina_strbuf_append(buf, &quot;This is my string.&quot;);
 </pre>
 </li>
 <li>To append 1 character to your buffer, use the <span style="font-family: Courier New,Courier,monospace">eina_strbuf_append_char()</span> function. You can also append a sized string to the buffer using the <span style="font-family: Courier New,Courier,monospace">eina_strbuf_append_length()</span> function.
 <pre class="prettyprint">
-eina_strbuf_append_length(mybuffer, &quot;Buffe&quot;, 5);
-eina_strbuf_append_char(mybuffer, &#39;r&#39;);
+eina_strbuf_append_length(buf, &quot;Buffe&quot;, 5);
+eina_strbuf_append_char(buf, &#39;r&#39;);
 </pre>
 </li>
 <li>To handle &quot;printf&quot; format strings, use the <span style="font-family: Courier New,Courier,monospace">eina_strbuf_append_printf()</span> function to add formatted strings to the buffer:
@@ -172,21 +172,21 @@ eina_strbuf_remove(buf, 0, 18);
 </li>
 </ul>
 <pre class="prettyprint">
-eina_strbuf_append(mybuffer, &quot;buffer buffer buffer&quot;);
+eina_strbuf_append(buf, &quot;buffer buffer buffer&quot;);
 
 // Replacing one occurrence of &quot;buffer&quot; by &quot;B-U-F-F-E-R&quot;
-eina_strbuf_replace(mybuffer, &quot;buffer&quot;, &quot;B-U-F-F-E-R&quot;, 1);
+eina_strbuf_replace(buf, &quot;buffer&quot;, &quot;B-U-F-F-E-R&quot;, 1);
 
 // Replacing all the occurrences of &quot;buffer&quot; by &quot;B-U-F-F-E-R&quot;
-eina_strbuf_replace_all(mybuffer, &quot;buffer&quot;, &quot;B-U-F-F-E-R&quot;);
+eina_strbuf_replace_all(buf, &quot;buffer&quot;, &quot;B-U-F-F-E-R&quot;);
 
 // Replacing all the occurrences of &quot;B-U-F-F-E-R&quot; by &quot;Buffer&quot;
-eina_strbuf_replace_all(mybuffer, &quot;B-U-F-F-E-R&quot;, &quot;Buffer&quot;);
+eina_strbuf_replace_all(buf, &quot;B-U-F-F-E-R&quot;, &quot;Buffer&quot;);
 </pre>
 </li>
 <li>To insert a string at the specified position, use the <span style="font-family: Courier New,Courier,monospace">eina_strbuf_insert()</span> function. Use the <span style="font-family: Courier New,Courier,monospace">eina_strbuf_insert_printf()</span> function with formatted strings.
 <pre class="prettyprint">
-eina_strbuf_insert(mybuffer, &quot;More buffer&quot;, 10);
+eina_strbuf_insert(buf, &quot;More buffer&quot;, 10);
 
 // Using eina_strbuf_length_get to get the buffer length
 eina_strbuf_insert_printf(buf, &quot; %s: %d&quot;, 6, &quot;length&quot;, eina_strbuf_length_get(buf));
@@ -195,7 +195,7 @@ eina_strbuf_insert_printf(buf, &quot; %s: %d&quot;, 6, &quot;length&quot;, eina_
 
 <li>To get the complete length of the string and the buffer, use the <span style="font-family: Courier New,Courier,monospace">eina_strbuf_string_get()</span> and <span style="font-family: Courier New,Courier,monospace">eina_strbuf_length_get()</span> functions:
 <pre class="prettyprint">
-printf(&quot;%s : %d\n&quot;, eina_strbuf_string_get(mybuffer), eina_strbuf_length_get(buf));
+printf(&quot;%s : %d\n&quot;, eina_strbuf_string_get(buf), eina_strbuf_length_get(buf));
 </pre>
 </li>
 </ul>
@@ -203,7 +203,7 @@ printf(&quot;%s : %d\n&quot;, eina_strbuf_string_get(mybuffer), eina_strbuf_leng
 
 <li>When no longer needed, free the buffer with the <span style="font-family: Courier New,Courier,monospace">eina_strbuf_free()</span> function. You can also free the content of <span style="font-family: Courier New,Courier,monospace">Eina_Strbuf</span> without freeing the buffer itself using the <span style="font-family: Courier New,Courier,monospace">eina_strbuf_string_free()</span> function.
 <pre class="prettyprint">
-eina_strbuf_free(mybuffer);
+eina_strbuf_free(buf);
 </pre>
 </li>
 </ol>
@@ -1692,4 +1692,4 @@ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga
 </script>
 
 </body>
-</html>
\ No newline at end of file
+</html>