Classes | Namespaces | Defines | Enumerations | Functions | Variables

cel_string.h File Reference

String Definitions. More...

#include "cel_debug.h"
#include "cel_types.h"
#include "cel_memory.h"
#include "cel_printf.h"
#include "cel_referable.h"
#include "cel_utf8.h"
#include "cel_sstring.h"
#include "cel_stringutil.h"
#include "cel_datatraits.h"
#include "cel_stdint.h"
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cwchar>
#include <string>
Include dependency graph for cel_string.h:
This graph shows which files directly or indirectly include this file:

Classes

class  Celartem::ReferableString
 Do not use this interface directly; use String instead of it. More...
struct  Celartem::utf8s
 This class is to pass UTF-8 string directly to String class. More...
class  Celartem::Region
 This class stores information about matching region. More...
class  Celartem::String
 This class stores C/C++ style null terminated string. More...
class  Celartem::String::Transform
struct  Celartem::CharsetConverter< Char >
struct  Celartem::CharsetConverter< char >
struct  Celartem::CharsetConverter< UChar2 >
struct  Celartem::CharsetConverter< UChar4 >

Namespaces

namespace  Celartem

Defines

#define TO_MBS(str)   (::Celartem::CharsetConverter<char>::convert(str))
#define TO_WCS(str)   (::Celartem::CharsetConverter<wchar_t>::convert(str))
#define TO_TCS(str)   TO_MBS(str)
#define TO_UTF16(str)   (::Celartem::CharsetConverter<::Celartem::UChar2>::convert(str))
#define TO_UTF32(str)   (::Celartem::CharsetConverter<::Celartem::UChar4>::convert(str))

Enumerations

enum  Celartem::NULL_STRING
 

This enumeration defines NullString.

More...

Functions

String Celartem::operator+ (const utf8s &str1, const String &str2)
String Celartem::operator+ (const char *str1, const String &str2)
String Celartem::operator+ (const UChar2 *str1, const String &str2)
String Celartem::operator+ (const UChar4 *str1, const String &str2)
String Celartem::format (const char *inFormat,...)
String Celartem::format (const wchar_t *inFormat,...)
String Celartem::format_utf8 (const char *inFormat,...)
String Celartem::repeatString (const String &string, size_t count)
String Celartem::stringFromUnicode (const UChar1 *string, size_t length=-1)
String Celartem::stringFromUnicode (const UChar2 *string, size_t length=-1)
String Celartem::stringFromUnicode (const UChar4 *string, size_t length=-1)
String Celartem::repeatChar (UChar4 chr, size_t count)
String Celartem::chr (UChar4 chr)

Variables

static const size_t Celartem::notFound = (size_t)SSIZE_MIN
 Indicates "Not Found".
static const size_t Celartem::STR_AUTOSIZE = (size_t)SSIZE_MIN
 Instructs the method to check the length.

Detailed Description

String Definitions.


Define Documentation

#define TO_MBS (   str  )     (::Celartem::CharsetConverter<char>::convert(str))

This macro is to ease the conversion UTF-8 string into the environment native multibyte string. In Mac OS X, this macro does nothing since UTF-8 is the native multibyte string.

Parameters:
str A string to convert.
#define TO_TCS (   str  )     TO_MBS(str)

This macro is provided for the purpose of realizing Windows tchar.h compatible behavior. It eases the conversion UTF-8 string into LPCTSTR string (string of TCHAR).

#define TO_UTF16 (   str  )     (::Celartem::CharsetConverter<::Celartem::UChar2>::convert(str))

This macro is to ease the conversion UTF-8 string into UTF16 string.

Parameters:
str A string to convert.
#define TO_UTF32 (   str  )     (::Celartem::CharsetConverter<::Celartem::UChar4>::convert(str))

This macro is to ease the conversion UTF-8 string into UTF32 string.

Parameters:
str A string to convert.
#define TO_WCS (   str  )     (::Celartem::CharsetConverter<wchar_t>::convert(str))

This macro is to ease the conversion UTF-8 string into Wide Character string (string of wchar_t).

Parameters:
str A string to convert.

This document is made with doxygen 1.7.1 at Sun Sep 5 2010 13:03:35.
Caminova Logo