helper functions for utf8-encoded strings
More...
#include <libppbase/base/UTF8String.h>
List of all members.
Static Public Member Functions |
static size_t | charlen (unsigned char c) |
| Returns the number of bytes for a utf8 starting character.
|
static size_t | length (const String &s) |
| Gets the string length of a utf8 string.
|
static String | substr (const String &s, size_t pos, size_t len=String::npos) |
| Gets a substring of a utf8 string.
|
static String & | toLowerCase (String &s) |
| Converts an utf8 string to lowercase.
|
Detailed Description
helper functions for utf8-encoded strings
- Author:
- Christoph Schwarz
- Version:
- $Id: UTF8String.h 21 2010-09-05 04:18:17Z cschwarz1 $
Member Function Documentation
static size_t base::UTF8String::charlen |
( |
unsigned char |
c |
) |
[static] |
Returns the number of bytes for a utf8 starting character.
- Parameters:
-
| c | the utf8 starting character |
- Returns:
- the number of bytes
static size_t base::UTF8String::length |
( |
const String & |
s |
) |
[static] |
Gets the string length of a utf8 string.
- Parameters:
-
- Returns:
- the number of characters in the string
Gets a substring of a utf8 string.
- Parameters:
-
| s | the string |
| pos | the starting position |
| len | the maximum number of utf8 characters to return |
- Returns:
- the substring
static String& base::UTF8String::toLowerCase |
( |
String & |
s |
) |
[static] |
Converts an utf8 string to lowercase.
- Parameters:
-
| s | the string to convert to lowercase |
- Returns:
- a reference to the string
The documentation for this class was generated from the following file: