From 3224fffe8751732ec3304d8f540e832929933f27 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Fri, 15 Jun 2007 12:24:06 +0200 Subject: Implemented UTF-8 handling in skincurses --- tools.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'tools.h') diff --git a/tools.h b/tools.h index 5d048076..3256c352 100644 --- a/tools.h +++ b/tools.h @@ -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 -- cgit v1.2.3