From: Jaeun Choi Date: Thu, 19 May 2016 08:45:19 +0000 (+0900) Subject: [3.0][online-doc] fixed typo (mybuffer -> buf) X-Git-Tag: tizen_3.0/TD_SYNC/20161201~113^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eaac954c85d1ed78298054775e6d085afe41d8fd;p=sdk%2Fonline-doc.git [3.0][online-doc] fixed typo (mybuffer -> buf) Change-Id: Id784ae5156ca71db4013b51543fa90bbb8a36066 --- diff --git a/org.tizen.ui.practices/html/native/efl/data_types_n.htm b/org.tizen.ui.practices/html/native/efl/data_types_n.htm index 147b148..341eba0 100644 --- a/org.tizen.ui.practices/html/native/efl/data_types_n.htm +++ b/org.tizen.ui.practices/html/native/efl/data_types_n.htm @@ -129,7 +129,7 @@ eina_stringshare_del(mystr);
  • Initialize the Eina_Strbuf instance and create the buffer:
     Eina_Strbuf *buf;
    -mybuffer = eina_strbuf_new();
    +buf = eina_strbuf_new();
     
  • Manage the buffer content: @@ -139,13 +139,13 @@ mybuffer = eina_strbuf_new();
  • For basic strings, use the eina_strbuf_append() function:

    -eina_strbuf_append(mybuffer, "This is my string.");
    +eina_strbuf_append(buf, "This is my string.");
     
  • To append 1 character to your buffer, use the eina_strbuf_append_char() function. You can also append a sized string to the buffer using the eina_strbuf_append_length() function.
    -eina_strbuf_append_length(mybuffer, "Buffe", 5);
    -eina_strbuf_append_char(mybuffer, 'r');
    +eina_strbuf_append_length(buf, "Buffe", 5);
    +eina_strbuf_append_char(buf, 'r');
     
  • To handle "printf" format strings, use the eina_strbuf_append_printf() function to add formatted strings to the buffer: @@ -172,21 +172,21 @@ eina_strbuf_remove(buf, 0, 18);
  • -eina_strbuf_append(mybuffer, "buffer buffer buffer");
    +eina_strbuf_append(buf, "buffer buffer buffer");
     
     // Replacing one occurrence of "buffer" by "B-U-F-F-E-R"
    -eina_strbuf_replace(mybuffer, "buffer", "B-U-F-F-E-R", 1);
    +eina_strbuf_replace(buf, "buffer", "B-U-F-F-E-R", 1);
     
     // Replacing all the occurrences of "buffer" by "B-U-F-F-E-R"
    -eina_strbuf_replace_all(mybuffer, "buffer", "B-U-F-F-E-R");
    +eina_strbuf_replace_all(buf, "buffer", "B-U-F-F-E-R");
     
     // Replacing all the occurrences of "B-U-F-F-E-R" by "Buffer"
    -eina_strbuf_replace_all(mybuffer, "B-U-F-F-E-R", "Buffer");
    +eina_strbuf_replace_all(buf, "B-U-F-F-E-R", "Buffer");
     
  • To insert a string at the specified position, use the eina_strbuf_insert() function. Use the eina_strbuf_insert_printf() function with formatted strings.
    -eina_strbuf_insert(mybuffer, "More buffer", 10);
    +eina_strbuf_insert(buf, "More buffer", 10);
     
     // Using eina_strbuf_length_get to get the buffer length
     eina_strbuf_insert_printf(buf, " %s: %d", 6, "length", eina_strbuf_length_get(buf));
    @@ -195,7 +195,7 @@ eina_strbuf_insert_printf(buf, " %s: %d", 6, "length", eina_
     
     
  • To get the complete length of the string and the buffer, use the eina_strbuf_string_get() and eina_strbuf_length_get() functions:
    -printf("%s : %d\n", eina_strbuf_string_get(mybuffer), eina_strbuf_length_get(buf));
    +printf("%s : %d\n", eina_strbuf_string_get(buf), eina_strbuf_length_get(buf));
     
  • @@ -203,7 +203,7 @@ printf("%s : %d\n", eina_strbuf_string_get(mybuffer), eina_strbuf_leng
  • When no longer needed, free the buffer with the eina_strbuf_free() function. You can also free the content of Eina_Strbuf without freeing the buffer itself using the eina_strbuf_string_free() function.
    -eina_strbuf_free(mybuffer);
    +eina_strbuf_free(buf);
     
  • @@ -1692,4 +1692,4 @@ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga - \ No newline at end of file +