Thread portable class


Gate portable class


Timer class


Pool class


Terimber 2.0


About C++


Downloads Products & Services Support Clients Open Source About



Home / Open source / Terimber 2.0

string.h File Reference

#include "base/memory.h"

Go to the source code of this file.

Namespaces

namespace  str_template

Classes

class  base_string< T >
 supports base string functionality More...

Typedefs

typedef base_string< char > string_t
 narrow string - usually utf-8
typedef base_string< wchar_twstring_t
 wide string - usually utf-16

Functions

template<class T>
size_t str_template::strlen (const T *x)
 template function for string length calculation
template<class T>
T * str_template::strcpy (T *dest, const T *x, size_t len=os_minus_one)
 template function for string coping
template<class T>
int str_template::strcmp (const T *dest, const T *x, size_t len=os_minus_one)
 template function for string comparision
int str_template::strnocasecmp (const char *dest, const char *x, size_t len)
 template function for string comparision without case narrow string
int str_template::strnocasecmp (const wchar_t *dest, const wchar_t *x, size_t len)
 template function for string comparision without case wide string
const char * str_template::strformat (char *buf, const char *format)
 converts narrow string format to itself
const wchar_tstr_template::strformat (wchar_t *buf, const char *format)
 converts narrow string format to wide format string
int str_template::strscan (const char *buf, size_t len, const char *format, void *res)
 scans only one parameter narrow char
int str_template::strscan (const wchar_t *buf, size_t len, const wchar_t *format, void *res)
 scans only one parameter wide char
int str_template::strprint (char *buf, size_t len, const char *format,...)
 prints to memory formatted string narrow string
int str_template::strprint (wchar_t *buf, size_t len, const wchar_t *format,...)
 prints to memory formatted string wide string
size_t str_template::multibyte_to_unicode_len (const char *x, size_t len=os_minus_one)
 gets the length required for utf-8 to utf-16 conversion
size_t str_template::unicode_to_multibyte_len (const wchar_t *x, size_t len=os_minus_one)
 gets the length required for utf-16 to utf-8 conversion
const wchar_tstr_template::multibyte_to_unicode (wchar_t *dest, size_t dest_len, const char *x, size_t src_len=os_minus_one)
 converts utf-8 to utf-16 using pre-allocated buffer
const wchar_tstr_template::multibyte_to_unicode (wstring_t &dest, const char *x, size_t len=os_minus_one)
 converts utf-8 to utf-16 using wstring_t class
const wchar_tstr_template::multibyte_to_unicode (byte_allocator &_allocator, const char *x, size_t len=os_minus_one)
 converts utf-8 to utf-16 using external allocator
const char * str_template::unicode_to_multibyte (char *dest, size_t dest_len, const wchar_t *x, size_t src_len=os_minus_one)
 converts utf-16 to utf-8 using pre-allocated buffer
const char * str_template::unicode_to_multibyte (string_t &dest, const wchar_t *x, size_t len=os_minus_one)
 converts utf-16 to utf-8 using string_t class
const char * str_template::unicode_to_multibyte (byte_allocator &_allocator, const wchar_t *x, size_t len=os_minus_one)
 converts utf-16 to utf-8 using external allocator


Typedef Documentation

narrow string - usually utf-8

Definition at line 205 of file string.h.

wide string - usually utf-16

Definition at line 208 of file string.h.



© Copyright Terimber 2003-.