NCBI C++ ToolKit
Classes | Macros | Typedefs | Enumerations | Functions | Variables
ncbistr.hpp File Reference

The NCBI C++ standard methods for dealing with std::string. More...

#include <corelib/ncbi_limits.hpp>
#include <corelib/tempstr.hpp>
#include <corelib/ncbierror.hpp>
#include <stdarg.h>
#include <time.h>
#include <set>
#include <functional>
#include <corelib/impl/stringutf8_deprecated.hpp>
#include <corelib/impl/stringutf8_deprecated.inl>
+ Include dependency graph for ncbistr.hpp:

Go to the source code of this file.

Go to the SVN repository for this file.

Classes

class  CNcbiEmptyString
 Empty "C++" string. More...
 
class  CNcbiEmptyWString
 
class  NStr
 NStr –. More...
 
class  NStr::IWrapDest
 
class  NStr::CWrapDestStringList
 
class  CUtf8
 CUtf8 –. More...
 
class  CParseTemplException< TBase >
 CParseTemplException –. More...
 
class  CStringException
 CStringException –. More...
 
class  IStringDecoder
 CStringPairsParser –. More...
 
class  IStringEncoder
 Encoder interface. Names and values can be encoded with different rules. More...
 
class  CStringDecoder_Url
 URL-decoder for string pairs parser. More...
 
class  CStringEncoder_Url
 URL-encoder for string pairs parser. More...
 
class  CStringPairs< TContainer >
 Template for parsing string into pairs of name and value or merging them back into a single string. More...
 
class  CEncodedString
 CEncodedString –. More...
 
struct  PCase_Generic< T >
 Define Case-sensitive string comparison methods. More...
 
struct  PNocase_Generic< T >
 Define Case-insensitive string comparison methods. More...
 
class  PNocase_Conditional_Generic< T >
 Define Case-insensitive string comparison methods. More...
 
class  PEqualNocase_Generic< T >
 Define Case-insensitive string equality (not less-than) comparison method. More...
 
class  PEqualNocase_Conditional_Generic< T >
 Define Case-insensitive string equality (not less-than) comparison method Case sensitivity can be turned on and off at runtime. More...
 
struct  PQuickStringLess
 PQuickStringLess implements an ordering of strings, that is more efficient than usual lexicographical order. More...
 

Macros

#define NcbiEmptyCStr   NCBI_NS_NCBI::kEmptyCStr
 
#define NcbiEmptyWCStr   NCBI_NS_NCBI::kEmptyWCStr
 
#define NcbiEmptyString   NCBI_NS_NCBI::CNcbiEmptyString::Get()
 
#define kEmptyStr   NcbiEmptyString
 
#define NcbiEmptyWString   NCBI_NS_NCBI::CNcbiEmptyWString::Get()
 
#define kEmptyWStr   NcbiEmptyWString
 
#define NPOS   NCBI_NS_STD::string::npos
 
#define _TX(x)   x
 
#define _T_XSTRING(x)   (x)
 
#define _T_STDSTRING(x)   (x)
 
#define _T_XCSTRING(x)   ncbi::impl_ToCString(x)
 
#define _T_CSTRING(x)   (x)
 
#define NcbiEmptyXCStr   NcbiEmptyCStr
 
#define NcbiEmptyXString   NcbiEmptyString
 
#define kEmptyXStr   kEmptyStr
 
#define kEmptyXCStr   kEmptyCStr
 

Typedefs

typedef NCBI_NS_STD::string::size_type SIZE_TYPE
 
typedef char32_t TUnicodeSymbol
 Unicode character. More...
 
typedef basic_string< TUnicodeSymbolTStringUnicode
 Unicode string. More...
 
typedef char TXChar
 
typedef string TXString
 
typedef TUnicodeSymbol TCharUCS4
 
typedef TStringUnicode TStringUCS4
 
typedef char16_t TCharUCS2
 Type for character in UCS-2 encoding. More...
 
typedef basic_string< TCharUCS2TStringUCS2
 Type for string in UCS-2 encoding. More...
 
typedef vector< pair< string, string > > TStringPairsVector
 
typedef CStringPairs< TStringPairsVectorCStringPairsParser
 
typedef PCase_Generic< stringPCase
 
typedef PCase_Generic< const char * > PCase_CStr
 
typedef PNocase_Generic< stringPNocase
 
typedef PNocase_Generic< const char * > PNocase_CStr
 
typedef PNocase_Conditional_Generic< stringPNocase_Conditional
 
typedef PNocase_Conditional_Generic< const char * > PNocase_Conditional_CStr
 
typedef PEqualNocase_Generic< stringPEqualNocase
 
typedef PEqualNocase_Generic< const char * > PEqualNocase_CStr
 
typedef PEqualNocase_Conditional_Generic< stringPEqualNocase_Conditional
 
typedef PEqualNocase_Conditional_Generic< const char * > PEqualNocase_Conditional_CStr
 

Enumerations

enum  EEncoding {
  eEncoding_Unknown , eEncoding_UTF8 , eEncoding_Ascii , eEncoding_ISO8859_1 ,
  eEncoding_Windows_1252 , eEncoding_CESU8
}
 

Functions

const char * impl_ToCString (const char *s)
 
const char * impl_ToCString (const string &s)
 
CNcbiOstreamoperator<< (CNcbiOstream &os, const TStringUCS2 &str)
 Operator for writing TStringUCS2 to stream. More...
 
template<class Arg1 , class Arg2 , class Pred >
bool AStrEquiv (const Arg1 &x, const Arg2 &y, Pred pr)
 Check equivalence of arguments using predicate. More...
 

Variables

 BEGIN_NCBI_NAMESPACE
 
const char *const kEmptyCStr
 Empty "C" string (points to a '\0'). More...
 
const wchar_t *const kEmptyWCStr
 
 END_NCBI_NAMESPACE
 

Detailed Description

The NCBI C++ standard methods for dealing with std::string.

Definition in file ncbistr.hpp.

Variable Documentation

◆ BEGIN_NCBI_NAMESPACE

BEGIN_NCBI_NAMESPACE

Definition at line 50 of file ncbistr.hpp.

Modified on Fri Sep 20 14:58:12 2024 by modify_doxy.py rev. 669887