X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=src%2Fvm%2Futf8.c;h=89c9d4600ee1e0015c445b7786b2ae3699640d74;hb=511fde7f7add8e8548d763b6086956d44e1bd28c;hp=0c854744edc2b0e422eb808d9dad43689dae8ffc;hpb=7edcc9f5d2750b14bad2097eafb2ca469694b319;p=cacao.git diff --git a/src/vm/utf8.c b/src/vm/utf8.c index 0c854744e..89c9d4600 100644 --- a/src/vm/utf8.c +++ b/src/vm/utf8.c @@ -30,7 +30,7 @@ Andreas Krall Christian Thalinger - $Id: utf8.c 4872 2006-05-05 13:48:25Z edwin $ + $Id: utf8.c 4873 2006-05-05 13:56:35Z edwin $ */ @@ -790,6 +790,24 @@ u2 utf_nextu2(char **utf_ptr) } +/* utf_bytes ******************************************************************* + + Determine number of bytes (aka. octets) in the utf string. + + IN: + u............utf string + + OUT: + The number of octets of this utf string. + There is _no_ terminating zero included in this count. + +*******************************************************************************/ + +u4 utf_bytes(utf *u) +{ + return u->blength; +} + /* utf_get_number_of_u2s ******************************************************* Determine number of UTF-16 u2s in the utf string.