Fresco/Berlin/modules/Text TextChunk.cc,1.29,1.30 TextKitImpl.cc,1.39,1.40

Tobias Hunger <[email protected]> Fri, 01 Aug 2003 11:47:51 -0500
Newsgroups gmane.comp.video.fresco.cvs
Message-ID <[email protected]>
Update of /cvs/fresco/Fresco/Berlin/modules/Text
In directory purcel:/tmp/cvs-serv24256/Berlin/modules/Text

Modified Files:
	TextChunk.cc TextKitImpl.cc 
Log Message:
Babylon work over:
 * Use iconv to convert characters to/from Babylon
 * Updtae to Unicode Version 4.0
 * Added unit tests (some fail for now, still need to work on that)

 * Removed the VisualTextBuffer from the CommandKit: I still like the idea,
   unfortunately it won't work out in the real world:-|

 * Updated code to the changed Babylon interfaces whereever needed.


Index: TextChunk.cc
===================================================================
RCS file: /cvs/fresco/Fresco/Berlin/modules/Text/TextChunk.cc,v
retrieving revision 1.29
retrieving revision 1.30
diff -u -d -r1.29 -r1.30
--- TextChunk.cc	6 Apr 2003 14:39:26 -0000	1.29
+++ TextChunk.cc	1 Aug 2003 16:47:18 -0000	1.30
@@ -67,7 +67,7 @@
 
 void TextChunk::get_text(Babylon::String &u) 
 { 
-  u = Babylon::String(_char);
+  u = Babylon::String(1, _char);
 }
 
 unsigned long TextChunk::get_length() 

Index: TextKitImpl.cc
===================================================================
RCS file: /cvs/fresco/Fresco/Berlin/modules/Text/TextKitImpl.cc,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -d -r1.39 -r1.40
--- TextKitImpl.cc	18 Feb 2003 07:26:35 -0000	1.39
+++ TextKitImpl.cc	1 Aug 2003 16:47:18 -0000	1.40
@@ -94,8 +94,7 @@
     Graphic_var hbox = my_layout->hbox();
     hbox->append_graphic(Graphic_var(strut()));
     Babylon::String tmp(Unicode::to_internal(u));
-    // for (unsigned int i = 0; i < len; ++i)
-    for(Babylon::vis_iterator i(tmp.begin(), tmp.end());
+    for(Babylon::String::iterator i = tmp.begin();
 	i != tmp.end();
 	++i)
       hbox->append_graphic(Graphic_var(glyph(Unicode::to_CORBA(*i))));