Exemplo n.º 1
0
String::String(const std::string& new_string)
    : length_(0)
    , position_(0)
    , data_(nullptr)
{
    //    Initialize();
    LowLevelSet(new_string.c_str(), static_cast<uint32_t>(new_string.length()));
}
Exemplo n.º 2
0
String::String(const char* new_string, size_t sizeLength)
    : length_(0)
    , position_(0)
    , data_(nullptr)
{
    //    Initialize();
    LowLevelSet(new_string, static_cast<uint32_t>(sizeLength));
}
Exemplo n.º 3
0
String::String(const char* new_string)
    : length_(0)
    , position_(0)
    , data_(nullptr)
{
    //    Initialize();
    LowLevelSet(new_string, 0);
}
Exemplo n.º 4
0
void OTString::Set(const char * new_string, uint32_t nEnforcedMaxLength/*=0*/)
{ 
	Release(); 
	
	if (NULL == new_string) 
		return; 
	
	LowLevelSet(new_string, nEnforcedMaxLength); 
}
Exemplo n.º 5
0
void String::Set(const char* new_string, uint32_t nEnforcedMaxLength)
{
    if (new_string == data_) // Already the same string.
        return;

    Release();

    if (nullptr == new_string) return;

    LowLevelSet(new_string, nEnforcedMaxLength);
}
Exemplo n.º 6
0
void OTString::Set(const char * new_string, uint32_t nEnforcedMaxLength/*=0*/)
{
    if (new_string == m_strBuffer) // Already the same string.
        return;

    Release();

    if (NULL == new_string)
        return;

    LowLevelSet(new_string, nEnforcedMaxLength);
}
Exemplo n.º 7
0
OTString::OTString(const std::string& new_string) : m_lLength(0), m_lPosition(0), m_strBuffer(NULL)
{
//	Initialize();
    LowLevelSet(new_string.c_str(), static_cast<uint32_t> (new_string.length()));
}
Exemplo n.º 8
0
OTString::OTString(const char * new_string, size_t sizeLength) : m_lLength(0), m_lPosition(0), m_strBuffer(NULL)
{
//	Initialize();
    LowLevelSet(new_string, static_cast<uint32_t> (sizeLength));
}
Exemplo n.º 9
0
OTString::OTString(const char * new_string) : m_lLength(0), m_lPosition(0), m_strBuffer(NULL)
{
//	Initialize();
    LowLevelSet(new_string, 0);
}
Exemplo n.º 10
0
OTString::OTString(const std::string& new_string)
{
	Initialize();
	LowLevelSet(new_string.c_str(), 0);
}
Exemplo n.º 11
0
OTString::OTString(const char * new_string)
{
	Initialize();
	LowLevelSet(new_string, 0);
}