2005/5/9

     
 

String_h

artefaktur
Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages  

String.h File Reference

#include <ctype.h>
#include <string>
#include BasicArray.h
#include Comparable.h
#include Cloneable.h
#include StringUtf8Utils.h
#include <acdk/locale/CodingErrorAction.h>
#include <acdk/lang/sys/core_alloca.h>
#include StringConcenator.h
#include Object.h

Namespaces

namespace  acdk
namespace  acdk::lang
namespace  acdk::locale
namespace  acdk::util

Defines

#define CCOS_NATIVE   CCUcs2
#define RCS(ptr)   ::acdk::lang::constr(ptr)
 ptr is a constant (normally literal) ASCII or UTF byte character stream (const char*) String will not copy this into own buffer, but points to given ptr

#define SCS(ptr)   ::acdk::lang::stkstr(ptr)
 create string of given valid ASCII or UTF8 byte character stream stream.

#define ACDK_STACK_STR(arg)   ::acdk::lang::RString(::acdk::lang::String(arg))
 to wrap a literal on stack with a string Use only if sure that the String (or derived substrings) will only lived in the current stack scope and no reference of the returned string will be stored outside scope

#define ACDK_API_CHAR(val)   wchar_t(val)
#define ACDK_API_CHARPTR(val)   reinterpret_cast<LPWSTR>(val)
#define ACDK_API_CONSTCHARPTR(val)   reinterpret_cast<LPCWSTR>(val)
#define _UC(text)   ::acdk::lang::String::decodeAscUnicodeCharacter(text)
 wraps a literal string with embededded unicode escapes

#define _US(text)   ::acdk::lang::String::decodeAscUnicode(text)
 wraps a literal string with embededded unicode escapes an return it as character

#define ASCLITERAL(strlit)   static StaticAsciiLiteral lit_##strlit(#strlit)
 use this if you use a ascii literal in your source code.

#define EXTERN_ASCLITERAL(strlit)   extern acdk::lang::StaticAsciiLiteral lit_##strlit
 same as ASCLITERAL but with extern binding instead of static

#define GLOBAL_ASCLITERAL(strlit)   acdk::lang::StaticAsciiLiteral lit_##strlit(#strlit)
 same as ASCLITERAL but with no binding instead of static

#define EXTERN_EXPORT_ASCLITERAL(Export, strlit)   extern Export acdk::lang::StaticAsciiLiteral lit_##strlit
 same as EXTERN_ASCLITERAL but with DLL export tag

#define EXPORT_ASCLITERAL(Export, strlit)   Export acdk::lang::StaticAsciiLiteral lit_##strlit(#strlit)
 same as GLOBAL_ASCLITERAL but with DLL export tag


Typedefs

typedef uc2char native_char

Functions

size_t wcslen (const wchar_t *ptr)


Define Documentation

#define ACDK_API_CHAR val   )     wchar_t(val)
 

#define ACDK_API_CHARPTR val   )     reinterpret_cast<LPWSTR>(val)
 

#define ACDK_API_CONSTCHARPTR val   )     reinterpret_cast<LPCWSTR>(val)
 

#define CCOS_NATIVE   CCUcs2
 


Typedef Documentation

typedef uc2char native_char
 


Function Documentation

size_t wcslen const wchar_t *  ptr  )