Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/evas

Dir     : e17/libs/evas/src/lib/canvas


Modified Files:
        evas_object_text.c 


Log Message:


new calls to help string processing for programs - these walk up and down 1
utf8 character (sicne thats evas's standard string format). this lets apps do
character processing AND still be utf8-safe.

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/evas/src/lib/canvas/evas_object_text.c,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -3 -r1.10 -r1.11
--- evas_object_text.c  20 Apr 2003 08:26:32 -0000      1.10
+++ evas_object_text.c  5 Jun 2003 06:08:40 -0000       1.11
@@ -848,6 +848,46 @@
    return e->engine.func->font_cache_get(e->engine.data.output);
 }
 
+/**
+ * To be documented.
+ *
+ * FIXME: To be fixed.
+ * 
+ */
+int
+evas_string_char_next_get(const char *str, int pos, int *decoded)
+{
+   int p, d;
+   
+   if (decoded) *decoded = 0;
+   if (!str) return 0;
+   if (pos < 0) return 0;
+   p = pos;
+   d = evas_common_font_utf8_get_next(str, &p);
+   if (decoded) *decoded = d;
+   return p;
+}
+
+/**
+ * To be documented.
+ *
+ * FIXME: To be fixed.
+ * 
+ */
+int
+evas_string_char_prev_get(const char *str, int pos, int *decoded)
+{
+   int p, d;
+   
+   if (decoded) *decoded = 0;
+   if (!str) return 0;
+   if (pos < 0) return 0;
+   p = pos;
+   d = evas_common_font_utf8_get_prev(str, &p);
+   if (decoded) *decoded = d;
+   return p;
+}
+
 
 
 /* all nice and private */




-------------------------------------------------------
This SF.net email is sponsored by:  Etnus, makers of TotalView, The best
thread debugger on the planet. Designed with thread debugging features
you've never dreamed of, try TotalView 6 free at www.etnus.com.
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to