OW_UTF8Utils.cpp File Reference

#include "OW_config.h"
#include "OW_UTF8Utils.hpp"
#include "OW_String.hpp"
#include "OW_Assertion.hpp"
#include "OW_Array.hpp"
#include "OW_Format.hpp"
#include "OW_ExceptionIds.hpp"
#include <string.h>
#include <algorithm>

Include dependency graph for OW_UTF8Utils.cpp:

Go to the source code of this file.

Namespaces

namespace  OW_NAMESPACE
namespace  OW_NAMESPACE::UTF8Utils

Functions

size_t OW_NAMESPACE::UTF8Utils::charCount (const char *utf8str)
 Count the number of UTF-8 chars in the string.
UInt16 OW_NAMESPACE::UTF8Utils::UTF8toUCS2 (const char *utf8char)
 Convert one UTF-8 char (possibly multiple bytes) into a UCS2 16-bit char.
String OW_NAMESPACE::UTF8Utils::UCS2toUTF8 (UInt16 ucs2char)
 Convert one UCS2 16-bit char into a UTF-8 char (possibly multiple bytes).
UInt32 OW_NAMESPACE::UTF8Utils::UTF8toUCS4 (const char *utf8char)
 Convert one UTF-8 char (possibly multiple bytes) into a UCS4 32-bit char.
String OW_NAMESPACE::UTF8Utils::UCS4toUTF8 (UInt32 ucs4char)
 Convert one UCS4 32-bit char into a UTF-8 char (possibly multiple bytes).
void OW_NAMESPACE::UTF8Utils::UCS4toUTF8 (UInt32 ucs4char, StringBuffer &sb)
 Convert one UCS4 32-bit char into a UTF-8 char (possibly multiple bytes) This version is faster to use in a loop than the version which returns a String.
void OW_NAMESPACE::UTF8Utils::UCS4toUTF8 (UInt32 ucs4char, char *p)
Array< UInt16OW_NAMESPACE::UTF8Utils::StringToUCS2Common (const String &input, bool throwException)
Array< UInt16OW_NAMESPACE::UTF8Utils::StringToUCS2ReplaceInvalid (const String &input)
 Convert a UTF-8 (or ASCII) string into a UCS2 string.
Array< UInt16OW_NAMESPACE::UTF8Utils::StringToUCS2 (const String &input)
 Convert a UTF-8 (or ASCII) string into a UCS2 string.
String OW_NAMESPACE::UTF8Utils::UCS2ToString (const void *input, size_t inputLength)
 Convert a UCS2 string into a UTF-8 (or ASCII) string.
String OW_NAMESPACE::UTF8Utils::UCS2ToString (const Array< UInt16 > &input)
 Convert a UCS2 string into a UTF-8 (or ASCII) string.
String OW_NAMESPACE::UTF8Utils::UCS2ToString (const Array< char > &input)
 Convert a UCS2 string into a UTF-8 (or ASCII) string.
int OW_NAMESPACE::UTF8Utils::UTF8CharLen (UInt32 ucs4char)
template<typename TransformT>
bool OW_NAMESPACE::UTF8Utils::transformInPlace (char *input, TransformT transformer)
template<typename TransformT>
String OW_NAMESPACE::UTF8Utils::transform (const char *input, TransformT transformer)
bool OW_NAMESPACE::UTF8Utils::toUpperCaseInPlace (char *input)
 Convert the UTF-8 string to upper case.
String OW_NAMESPACE::UTF8Utils::toUpperCase (const char *input)
 Convert the UTF-8 string to upper case and return the result.
bool OW_NAMESPACE::UTF8Utils::toLowerCaseInPlace (char *input)
 Convert the UTF-8 string to lower case.
String OW_NAMESPACE::UTF8Utils::toLowerCase (const char *input)
 Convert the UTF-8 string to lower case and return the result.

Variables

UInt8 OW_NAMESPACE::UTF8Utils::SequenceLengthTable [256]
UInt32 codePoint
UInt32 mapping
const CaseMapping OW_NAMESPACE::UTF8Utils::lowerMappings []
const CaseMapping OW_NAMESPACE::UTF8Utils::upperMappings []
const CaseMapping *const OW_NAMESPACE::UTF8Utils::lowerMappingsEnd
const CaseMapping *const OW_NAMESPACE::UTF8Utils::upperMappingsEnd
const CaseMapping *const m_begin
const CaseMapping *const m_end


Variable Documentation

UInt32 codePoint
 

Definition at line 493 of file OW_UTF8Utils.cpp.

const CaseMapping* const m_begin
 

Definition at line 2056 of file OW_UTF8Utils.cpp.

const CaseMapping* const m_end
 

Definition at line 2057 of file OW_UTF8Utils.cpp.

UInt32 mapping
 

Definition at line 494 of file OW_UTF8Utils.cpp.


Generated on Thu Feb 9 09:07:34 2006 for openwbem by  doxygen 1.4.6