diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2007-06-15 12:24:06 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2007-06-15 12:24:06 +0200 |
commit | 3224fffe8751732ec3304d8f540e832929933f27 (patch) | |
tree | e3711af3cc5769aeec6d6bf612da1f5f515fba94 /tools.h | |
parent | 824b974b812903dea368f3a1b8ba70a40cdc96f7 (diff) | |
download | vdr-3224fffe8751732ec3304d8f540e832929933f27.tar.gz vdr-3224fffe8751732ec3304d8f540e832929933f27.tar.bz2 |
Implemented UTF-8 handling in skincurses
Diffstat (limited to 'tools.h')
-rw-r--r-- | tools.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: tools.h 1.98 2007/06/10 08:46:23 kls Exp $ + * $Id: tools.h 1.99 2007/06/15 12:18:37 kls Exp $ */ #ifndef __TOOLS_H @@ -92,7 +92,10 @@ int Utf8CharSet(uint c, char *s = NULL); ///< is given, only the number of bytes is returned and nothing is copied. int Utf8SymChars(const char *s, int Symbols); ///< Returns the number of character bytes at the beginning of the given - ///< string that form at most the given number of UTF-8 Symbols. + ///< string that form at most the given number of UTF-8 symbols. +int Utf8NumSyms(const char *s); + ///< Returns the number of UTF-8 symbols formed by the given string of + ///< character bytes. int Utf8ToArray(const char *s, uint *a, int Size); ///< Converts the given character bytes (including the terminating 0) into an ///< array of UTF-8 symbols of the given Size. Returns the number of symbols |