NCBI C++ ToolKit
Classes | Macros | Typedefs | Enumerations | Enumerator | Functions | Variables | Friends
String Manipulations
+ Collaboration diagram for String Manipulations:

Classes

class  CTempXStr< _TChar >
 
class  XStr
 XStr –. More...
 
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...
 
struct  CStrDummyTokenPos
 Do-nothing token position container. More...
 
struct  CStrDummyTokenCount
 Do nothing token counter. More...
 
struct  CStrDummyTargetReserve< TV, TP >
 Do nothing target reservation trait. More...
 
class  CTempStringList
 Singly-linked list of substrings that will constitute a single Split/Tokenize piece, optimized for the typical one-node case. More...
 
struct  CTempStringList::SNode
 
class  CStrTokenizeBase
 
class  CStrTokenize< TStr, TV, TP, TCount, TReserve >
 Main tokenization algorithm. More...
 
struct  CStringTokenCount
 token count trait for std::string More...
 
struct  CStrTargetReserve< TV, TP, TCount >
 Target reservation trait (applies for vector<>) More...
 
class  CStrTokenPosAdapter< TPosContainer >
 Adapter for token position container pointer(NULL legal) Makes pointer to a container look as a legal container. More...
 
class  CTempString
 CTempString implements a light-weight string on top of a storage buffer whose lifetime management is known and controlled. More...
 
class  CTempStringEx
 
class  CTempString_Storage
 Helper class to allocate memory for CTempString[Ex] on demand in the functions which need to modify the strings (e.g. More...
 
class  CTextJoiner< num_prealloc, TIn, TOut >
 CTextJoiner<> – template for efficiently collecting and joining strings. More...
 

Macros

#define NCBI_TEXT(x)   x
 
#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
 
#define NCBITOOLKIT_USE_LONG_UCS4   (SIZEOF_LONG == 4)
 
#define NCBI_TEMPSTR_MAKE_COPY()
 
#define NCBI_TEMPSTR_DESTROY_COPY()
 

Typedefs

typedef NCBI_NS_STD::string::size_type SIZE_TYPE
 
typedef Uint4 TUnicodeSymbol
 Unicode character. More...
 
typedef basic_string< TUnicodeSymbolTStringUnicode
 Unicode string. More...
 
typedef char TXChar
 
typedef string TXString
 
typedef int NStr::TNumToStringFlags
 Bitwise OR of "ENumToStringFlags". More...
 
typedef EStringToNumFlags NStr::EConvErrFlags
 Formerly split out. More...
 
typedef int NStr::TStringToNumFlags
 Bitwise OR of "EStringToNumFlags". More...
 
typedef TStringToNumFlags NStr::TConvErrFlags
 Formerly split out. More...
 
typedef int NStr::TSplitFlags
 Bitwise OR of ESplitFlags. More...
 
typedef int NStr::TPrintableMode
 Bitwise OR of EPrintableMode flags. More...
 
typedef int NStr::TSS_Flags
 Bitwise OR of ESS_Flags. More...
 
typedef int NStr::TXmlEncode
 
typedef int NStr::THtmlEncode
 
typedef int NStr::THtmlDecode
 
typedef int NStr::TWrapFlags
 Bitwise OR of "EWrapFlags". More...
 
typedef int NStr::TDedentFlags
 Bitwise OR of EDedentFlags. More...
 
typedef TUnicodeSymbol TCharUCS4
 
typedef TStringUnicode TStringUCS4
 
typedef Uint2 TCharUCS2
 Type for character in UCS-2 encoding. More...
 
typedef basic_string< TCharUCS2TStringUCS2
 Type for string in UCS-2 encoding. More...
 
typedef int CParseTemplException< TBase >::TErrCode
 
typedef TContainer CStringPairs< TContainer >::TStrPairs
 
typedef TContainer::value_type CStringPairs< TContainer >::TStrPair
 The container's value type must be pair<string, string> or a compatible type. 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
 
typedef NStr::TSplitFlags CStrTokenizeBase::TFlags
 
typedef TStr CStrTokenize< TStr, TV, TP, TCount, TReserve >::TString
 
typedef TV CStrTokenize< TStr, TV, TP, TCount, TReserve >::TContainer
 
typedef TP CStrTokenize< TStr, TV, TP, TCount, TReserve >::TPosContainer
 
typedef TCount CStrTokenize< TStr, TV, TP, TCount, TReserve >::TCountTrait
 
typedef TReserve CStrTokenize< TStr, TV, TP, TCount, TReserve >::TReserveTrait
 
typedef CTempString::size_type CTempString_Storage::size_type
 
typedef char * CTempString_Storage::TBuffer
 
typedef list< TBufferCTempString_Storage::TData
 

Enumerations

enum  ENcbiStrings { eNcbiStrings_Stat , eNcbiStrings_PHID }
 
enum  XStr::ECase { XStr::eCase , XStr::eNocase }
 
enum  EEncoding {
  eEncoding_Unknown , eEncoding_UTF8 , eEncoding_Ascii , eEncoding_ISO8859_1 ,
  eEncoding_Windows_1252 , eEncoding_CESU8
}
 
enum  NStr::ENumToStringFlags {
  NStr::fUseLowercase = (1 << 4) , NStr::fWithRadix = (1 << 5) , NStr::fWithSign = (1 << 6) , NStr::fWithCommas = (1 << 7) ,
  NStr::fDoubleFixed = (1 << 8) , NStr::fDoubleScientific = (1 << 9) , NStr::fDoublePosix = (1 << 10) , NStr::fDoubleGeneral = fDoubleFixed | fDoubleScientific ,
  NStr::fDS_Binary = (1 << 11) , NStr::fDS_NoDecimalPoint = (1 << 12) , NStr::fDS_PutSpaceBeforeSuffix = (1 << 13) , NStr::fDS_ShortSuffix = (1 << 14) ,
  NStr::fDS_PutBSuffixToo = (1 << 15)
}
 Number to string conversion flags. More...
 
enum  NStr::EStringToNumFlags {
  NStr::fConvErr_NoThrow = (1 << 0) , NStr::fConvErr_NoErrMessage = (1 << 2) , NStr::fMandatorySign = (1 << 17) , NStr::fAllowCommas = (1 << 18) ,
  NStr::fAllowLeadingSpaces = (1 << 19) , NStr::fAllowLeadingSymbols = (1 << 20) | fAllowLeadingSpaces , NStr::fAllowTrailingSpaces = (1 << 21) , NStr::fAllowTrailingSymbols = (1 << 22) | fAllowTrailingSpaces ,
  NStr::fDecimalPosix = (1 << 23) , NStr::fDecimalPosixOrLocal = (1 << 24) , NStr::fDecimalPosixFinite = (1 << 25) , NStr::fDS_ForceBinary = (1 << 26) ,
  NStr::fDS_ProhibitFractions = (1 << 27) , NStr::fDS_ProhibitSpaceBeforeSuffix = (1 << 28)
}
 String to number conversion flags. More...
 
enum  NStr::ECase { NStr::eCase , NStr::eNocase }
 Which type of string comparison. More...
 
enum  NStr::EOccurrence { NStr::eFirst , NStr::eLast }
 Whether it is the first or last occurrence. More...
 
enum  NStr::EDirection { NStr::eForwardSearch = 0 , NStr::eReverseSearch }
 Search direction for Find() methods. More...
 
enum  NStr::ETrunc { NStr::eTrunc_Begin , NStr::eTrunc_End , NStr::eTrunc_Both }
 Which end to truncate a string. More...
 
enum  NStr::ESplitFlags {
  NStr::fSplit_MergeDelimiters = 1 << 0 , NStr::fSplit_Truncate_Begin = 1 << 1 , NStr::fSplit_Truncate_End = 1 << 2 , NStr::fSplit_Truncate = fSplit_Truncate_Begin | fSplit_Truncate_End ,
  NStr::fSplit_ByPattern = 1 << 3 , NStr::fSplit_CanEscape = 1 << 4 , NStr::fSplit_CanSingleQuote = 1 << 5 , NStr::fSplit_CanDoubleQuote = 1 << 6 ,
  NStr::fSplit_CanQuote = fSplit_CanSingleQuote | fSplit_CanDoubleQuote , NStr::fSplit_Tokenize = fSplit_MergeDelimiters | fSplit_Truncate
}
 Flags for Split*() methods. More...
 
enum  NStr::EMergeDelims { NStr::eMergeDelims = fSplit_MergeDelimiters | fSplit_Truncate , NStr::eNoMergeDelims = 0 }
 Whether to merge adjacent delimiters. More...
 
enum  NStr::EPrintableMode {
  NStr::fNewLine_Quote = 0 , NStr::eNewLine_Quote = fNewLine_Quote , NStr::fNewLine_Passthru = 1 , NStr::eNewLine_Passthru = fNewLine_Passthru ,
  NStr::fNonAscii_Passthru = 0 , NStr::fNonAscii_Quote = 2 , NStr::fPrintable_Full = 64
}
 How to display printable strings. More...
 
enum  NStr::ESS_Flags {
  NStr::fSS_alpha = 1 << 0 , NStr::fSS_digit = 1 << 1 , NStr::fSS_alnum = 1 << 2 , NStr::fSS_print = 1 << 3 ,
  NStr::fSS_cntrl = 1 << 4 , NStr::fSS_punct = 1 << 5 , NStr::fSS_Reject = 1 << 11 , NStr::fSS_Remove = 1 << 12 ,
  NStr::fSS_NoMerge = 1 << 13 , NStr::fSS_NoTruncate_Begin = 1 << 14 , NStr::fSS_NoTruncate_End = 1 << 15 , NStr::fSS_NoTruncate = fSS_NoTruncate_Begin | fSS_NoTruncate_End
}
 Flags for Sanitize(). More...
 
enum  NStr::EEscSeqRange {
  NStr::eEscSeqRange_Standard , NStr::eEscSeqRange_FirstByte , NStr::eEscSeqRange_Throw , NStr::eEscSeqRange_Errno ,
  NStr::eEscSeqRange_User
}
 C-style escape sequences parsing mode. More...
 
enum  NStr::EQuoted { NStr::eQuoted , NStr::eNotQuoted }
 Define that string is quoted or not. More...
 
enum  NStr::EXmlEncode { NStr::eXmlEnc_Contents = 0 , NStr::eXmlEnc_CommentSafe = 1 << 0 , NStr::eXmlEnc_Unsafe_Skip = 1 << 1 , NStr::eXmlEnc_Unsafe_Throw = 1 << 2 }
 XML-encode flags. More...
 
enum  NStr::EHtmlEncode {
  NStr::fHtmlEnc_EncodeAll = 0 , NStr::fHtmlEnc_SkipLiteralEntities = 1 << 1 , NStr::fHtmlEnc_SkipNumericEntities = 1 << 2 , NStr::fHtmlEnc_SkipEntities = fHtmlEnc_SkipLiteralEntities | fHtmlEnc_SkipNumericEntities ,
  NStr::fHtmlEnc_CheckPreencoded = 1 << 3
}
 HTML-decode flags. More...
 
enum  NStr::EHtmlDecode { NStr::fHtmlDec_CharRef_Entity = 1 , NStr::fHtmlDec_CharRef_Numeric = 1 << 1 , NStr::fHtmlDec_Encoding_Changed = 1 << 2 }
 HTML-decode flags. More...
 
enum  NStr::EJsonEncode { NStr::eJsonEnc_UTF8 , NStr::eJsonEnc_Quoted }
 Json-encode flags. More...
 
enum  NStr::EUrlEncode {
  NStr::eUrlEnc_SkipMarkChars , NStr::eUrlEnc_ProcessMarkChars , NStr::eUrlEnc_PercentOnly , NStr::eUrlEnc_Path ,
  NStr::eUrlEnc_URIScheme , NStr::eUrlEnc_URIUserinfo , NStr::eUrlEnc_URIHost , NStr::eUrlEnc_URIPath ,
  NStr::eUrlEnc_URIQueryName , NStr::eUrlEnc_URIQueryValue , NStr::eUrlEnc_URIFragment , NStr::eUrlEnc_Cookie ,
  NStr::eUrlEnc_None
}
 URL-encode flags. More...
 
enum  NStr::EUrlDecode { NStr::eUrlDec_All , NStr::eUrlDec_Percent }
 URL decode flags. More...
 
enum  NStr::ESqlEncode { NStr::eSqlEnc_Plain , NStr::eSqlEnc_TagNonASCII }
 SQL encode flags. More...
 
enum  NStr::EWrapFlags { NStr::fWrap_Hyphenate = 0x1 , NStr::fWrap_HTMLPre = 0x2 , NStr::fWrap_FlatFile = 0x4 }
 How to wrap the words in a string to a new line. More...
 
enum  NStr::EDedentFlags { NStr::fDedent_NormalizeEmptyLines = 1 << 0 , NStr::fDedent_SkipFirstLine = 1 << 1 , NStr::fDedent_SkipEmptyFirstLine = 1 << 2 }
 Flags for Dedent() method. More...
 
enum  CUtf8::EValidate { CUtf8::eNoValidate , CUtf8::eValidate }
 How to verify character encoding of the source data. More...
 
enum  CParseTemplException< TBase >::EErrCode { CParseTemplException< TBase >::eErr }
 Error types that for exception class. More...
 
enum  CStringException::EErrCode { CStringException::eConvert , CStringException::eBadArgs , CStringException::eFormat }
 Error types that string classes can generate. More...
 
enum  IStringDecoder::EStringType { IStringDecoder::eName , IStringDecoder::eValue }
 Type of string to be decoded. More...
 
enum  IStringEncoder::EStringType { IStringEncoder::eName , IStringEncoder::eValue }
 Type of string to be decoded. More...
 
enum  CTempStringEx::EZeroAtEnd { CTempStringEx::eNoZeroAtEnd , CTempStringEx::eHasZeroAtEnd }
 

Functions

const char * g_GetNcbiString (ENcbiStrings what)
 
 CTempXStr< _TChar >::CTempXStr (void)
 
 CTempXStr< _TChar >::CTempXStr (const CTempXStr &lw)
 
 CTempXStr< _TChar >::CTempXStr (const _TChar *str)
 
 CTempXStr< _TChar >::CTempXStr (const _TChar *str, size_t len)
 
 CTempXStr< _TChar >::CTempXStr (const _TChar *str, size_t pos, size_t len)
 
 CTempXStr< _TChar >::CTempXStr (const basic_string< _TChar > &str)
 
 CTempXStr< _TChar >::CTempXStr (const basic_string< _TChar > &str, size_t len)
 
 CTempXStr< _TChar >::CTempXStr (const basic_string< _TChar > &str, size_t pos, size_t len)
 
 CTempXStr< _TChar >::operator basic_string< _TChar > (void) const
 
const _TChar * CTempXStr< _TChar >::data (void) const
 
size_t CTempXStr< _TChar >::length (void) const
 
bool CTempXStr< _TChar >::empty (void) const
 
_TChar CTempXStr< _TChar >::operator[] (size_t pos) const
 
int CTempXStr< _TChar >::CompareCase (const CTempXStr< _TChar > &pattern) const
 
int CTempXStr< _TChar >::CompareNocase (const CTempXStr< _TChar > &pattern) const
 
static size_t CTempXStr< _TChar >::x_npos (void)
 
size_t CTempXStr< _TChar >::x_length (void) const
 
template<typename _TChar >
static int XStr::CompareCase (const basic_string< _TChar > &str, SIZE_TYPE pos, SIZE_TYPE n, const _TChar *pattern)
 
template<typename _TChar >
static int XStr::CompareCase (const _TChar *str, SIZE_TYPE pos, SIZE_TYPE n, const _TChar *pattern)
 
template<typename _TChar >
static int XStr::CompareCase (const basic_string< _TChar > &str, SIZE_TYPE pos, SIZE_TYPE n, const basic_string< _TChar > &pattern)
 
template<typename _TChar >
static int XStr::CompareCase (const _TChar *str, SIZE_TYPE pos, SIZE_TYPE n, const basic_string< _TChar > &pattern)
 
template<typename _TChar >
static int XStr::CompareNocase (const basic_string< _TChar > &str, SIZE_TYPE pos, SIZE_TYPE n, const _TChar *pattern)
 
template<typename _TChar >
static int XStr::CompareNocase (const _TChar *str, SIZE_TYPE pos, SIZE_TYPE n, const _TChar *pattern)
 
template<typename _TChar >
static int XStr::CompareNocase (const basic_string< _TChar > &str, SIZE_TYPE pos, SIZE_TYPE n, const basic_string< _TChar > &pattern)
 
template<typename _TChar >
static int XStr::CompareNocase (const _TChar *str, SIZE_TYPE pos, SIZE_TYPE n, const basic_string< _TChar > &pattern)
 
template<typename _TChar >
static int XStr::Compare (const basic_string< _TChar > &str, SIZE_TYPE pos, SIZE_TYPE n, const _TChar *pattern, ECase use_case=eCase)
 
template<typename _TChar >
static int XStr::Compare (const _TChar *str, SIZE_TYPE pos, SIZE_TYPE n, const _TChar *pattern, ECase use_case=eCase)
 
template<typename _TChar >
static int XStr::Compare (const basic_string< _TChar > &str, SIZE_TYPE pos, SIZE_TYPE n, const basic_string< _TChar > &pattern, ECase use_case=eCase)
 
template<typename _TChar >
static int XStr::Compare (const _TChar *str, SIZE_TYPE pos, SIZE_TYPE n, const basic_string< _TChar > &pattern, ECase use_case=eCase)
 
template<typename _TChar >
static int XStr::strcmp (const _TChar *s1, const _TChar *s2)
 
template<typename _TChar >
static int XStr::strncmp (const _TChar *s1, const _TChar *s2, size_t n)
 
template<typename _TChar >
static int XStr::strcasecmp (const _TChar *s1, const _TChar *s2)
 
template<typename _TChar >
static int XStr::strncasecmp (const _TChar *s1, const _TChar *s2, size_t n)
 
template<typename _TChar >
static int XStr::CompareCase (const _TChar *s1, const _TChar *s2)
 
template<typename _TChar >
static int XStr::CompareCase (const basic_string< _TChar > &s1, const basic_string< _TChar > &s2)
 
template<typename _TChar >
static int XStr::CompareNocase (const _TChar *s1, const _TChar *s2)
 
template<typename _TChar >
static int XStr::CompareNocase (const basic_string< _TChar > &s1, const basic_string< _TChar > &s2)
 
template<typename _TChar >
static int XStr::Compare (const basic_string< _TChar > &s1, const _TChar *s2, ECase use_case=eCase)
 
template<typename _TChar >
static int XStr::Compare (const _TChar *s1, const _TChar *s2, ECase use_case=eCase)
 
template<typename _TChar >
static int XStr::Compare (const basic_string< _TChar > &s1, const basic_string< _TChar > &s2, ECase use_case=eCase)
 
template<typename _TChar >
static int XStr::Compare (const _TChar *s1, const basic_string< _TChar > &s2, ECase use_case=eCase)
 
static const stringCNcbiEmptyString::Get (void)
 Get string. More...
 
static const wstring & CNcbiEmptyWString::Get (void)
 Get string. More...
 
const char * impl_ToCString (const char *s)
 
const char * impl_ToCString (const string &s)
 
template<typename TNumeric >
static TNumeric NStr::StringToNumeric (const CTempString str, TStringToNumFlags flags=0, int base=10)
 Convert string to a numeric value. More...
 
template<typename TNumeric >
static bool NStr::StringToNumeric (const CTempString str, TNumeric *value, TStringToNumFlags flags=0, int base=10)
 Convert string to a numeric value. More...
 
static int NStr::StringToNonNegativeInt (const CTempString str, TStringToNumFlags flags=0)
 Convert string to non-negative integer value. More...
 
static int NStr::StringToNumeric (const string &str)
 
static int NStr::StringToInt (const CTempString str, TStringToNumFlags flags=0, int base=10)
 Convert string to int. More...
 
static unsigned int NStr::StringToUInt (const CTempString str, TStringToNumFlags flags=0, int base=10)
 Convert string to unsigned int. More...
 
static long NStr::StringToLong (const CTempString str, TStringToNumFlags flags=0, int base=10)
 Convert string to long. More...
 
static unsigned long NStr::StringToULong (const CTempString str, TStringToNumFlags flags=0, int base=10)
 Convert string to unsigned long. More...
 
static double NStr::StringToDoublePosix (const char *str, char **endptr=0, TStringToNumFlags flags=0)
 Convert string to double-precision value (analog of strtod function) More...
 
static double NStr::StringToDouble (const CTempStringEx str, TStringToNumFlags flags=0)
 Convert string to double. More...
 
static double NStr::StringToDoubleEx (const char *str, size_t size, TStringToNumFlags flags=0)
 This version accepts zero-terminated string. More...
 
static Int8 NStr::StringToInt8 (const CTempString str, TStringToNumFlags flags=0, int base=10)
 Convert string to Int8. More...
 
static Uint8 NStr::StringToUInt8 (const CTempString str, TStringToNumFlags flags=0, int base=10)
 Convert string to Uint8. More...
 
static Uint8 NStr::StringToUInt8_DataSize (const CTempString str, TStringToNumFlags flags=0)
 Convert string that can contain "software" qualifiers to Uint8. More...
 
static Uint8 NStr::StringToUInt8_DataSize (const CTempString str, TStringToNumFlags flags, int base)
 Convert string to number of bytes. More...
 
static size_t NStr::StringToSizet (const CTempString str, TStringToNumFlags flags=0, int base=10)
 Convert string to size_t. More...
 
static const void * NStr::StringToPtr (const CTempStringEx str, TStringToNumFlags flags=0)
 Convert string to pointer. More...
 
static int NStr::HexChar (char ch)
 Convert character to integer. More...
 
template<typename TNumeric >
static enable_if< is_arithmetic< TNumeric >::value||is_convertible< TNumeric, Int8 >::value, string >::type NStr::NumericToString (TNumeric value, TNumToStringFlags flags=0, int base=10)
 Convert numeric value to string. More...
 
template<typename TStrictId >
static enable_if< is_integral< typename TStrictId::TId >::value &&is_member_function_pointer< decltype(&TStrictId::Get)>::value, string >::type NStr::NumericToString (TStrictId value, TNumToStringFlags flags=0, int base=10)
 
template<typename TNumeric >
static void NStr::NumericToString (string &out_str, TNumeric value, TNumToStringFlags flags=0, int base=10)
 Convert numeric value to string. More...
 
static string NStr::IntToString (int value, TNumToStringFlags flags=0, int base=10)
 Convert int to string. More...
 
static string NStr::IntToString (unsigned int value, TNumToStringFlags flags=0, int base=10)
 
static void NStr::IntToString (string &out_str, int value, TNumToStringFlags flags=0, int base=10)
 Convert int to string. More...
 
static void NStr::IntToString (string &out_str, unsigned int value, TNumToStringFlags flags=0, int base=10)
 
static string NStr::UIntToString (unsigned int value, TNumToStringFlags flags=0, int base=10)
 Convert UInt to string. More...
 
static string NStr::UIntToString (int value, TNumToStringFlags flags=0, int base=10)
 
static void NStr::UIntToString (string &out_str, unsigned int value, TNumToStringFlags flags=0, int base=10)
 Convert UInt to string. More...
 
static void NStr::UIntToString (string &out_str, int value, TNumToStringFlags flags=0, int base=10)
 
static string NStr::LongToString (long value, TNumToStringFlags flags=0, int base=10)
 Convert Int to string. More...
 
static void NStr::LongToString (string &out_str, long value, TNumToStringFlags flags=0, int base=10)
 Convert Int to string. More...
 
static string NStr::ULongToString (unsigned long value, TNumToStringFlags flags=0, int base=10)
 Convert unsigned long to string. More...
 
static void NStr::ULongToString (string &out_str, unsigned long value, TNumToStringFlags flags=0, int base=10)
 Convert unsigned long to string. More...
 
static string NStr::Int8ToString (Int8 value, TNumToStringFlags flags=0, int base=10)
 Convert Int8 to string. More...
 
static void NStr::Int8ToString (string &out_str, Int8 value, TNumToStringFlags flags=0, int base=10)
 Convert Int8 to string. More...
 
static string NStr::UInt8ToString (Uint8 value, TNumToStringFlags flags=0, int base=10)
 Convert UInt8 to string. More...
 
static void NStr::UInt8ToString (string &out_str, Uint8 value, TNumToStringFlags flags=0, int base=10)
 Convert UInt8 to string. More...
 
static string NStr::UInt8ToString_DataSize (Uint8 value, TNumToStringFlags flags=0, unsigned int max_digits=3)
 Convert UInt8 to string using "software" qualifiers. More...
 
static void NStr::UInt8ToString_DataSize (string &out_str, Uint8 value, TNumToStringFlags flags=0, unsigned int max_digits=3)
 Convert UInt8 to string using "software" qualifiers. More...
 
static string NStr::DoubleToString (double value, int precision=-1, TNumToStringFlags flags=0)
 Convert double to string. More...
 
static void NStr::DoubleToString (string &out_str, double value, int precision=-1, TNumToStringFlags flags=0)
 Convert double to string. More...
 
static SIZE_TYPE NStr::DoubleToString (double value, unsigned int precision, char *buf, SIZE_TYPE buf_size, TNumToStringFlags flags=0)
 Convert double to string with specified precision and place the result in the specified buffer. More...
 
static SIZE_TYPE NStr::DoubleToStringPosix (double value, unsigned int precision, char *buf, SIZE_TYPE buf_size)
 Convert double to string with specified precision and put the result into a character buffer, in scientific format. More...
 
static SIZE_TYPE NStr::DoubleToString_Ecvt (double value, unsigned int precision, char *buf, SIZE_TYPE buf_size, int *dec, int *sign)
 Convert double to string with specified precision. More...
 
static string NStr::SizetToString (size_t value, TNumToStringFlags flags=0, int base=10)
 Convert size_t to string. More...
 
static void NStr::PtrToString (string &out_str, const void *ptr)
 Convert pointer to string. More...
 
static string NStr::PtrToString (const void *ptr)
 Convert pointer to string. More...
 
static const string NStr::BoolToString (bool value)
 Convert bool to string. More...
 
static bool NStr::StringToBool (const CTempString str)
 Convert string to bool. More...
 
static string NStr::FormatVarargs (const char *format, va_list args)
 Handle an arbitrary printf-style format string. More...
 
static int NStr::CompareCase (const CTempString s1, SIZE_TYPE pos, SIZE_TYPE n, const char *s2)
 Case-sensitive compare of a substring with another string. More...
 
static int NStr::CompareCase (const CTempString s1, SIZE_TYPE pos, SIZE_TYPE n, const CTempString s2)
 Case-sensitive compare of a substring with another string. More...
 
static int NStr::CompareCase (const char *s1, const char *s2)
 Case-sensitive compare of two strings – char* version. More...
 
static int NStr::CompareCase (const CTempStringEx s1, const CTempStringEx s2)
 Case-sensitive compare of two strings – CTempStringEx version. More...
 
static int NStr::CompareNocase (const CTempString s1, SIZE_TYPE pos, SIZE_TYPE n, const char *s2)
 Case-insensitive compare of a substring with another string. More...
 
static int NStr::CompareNocase (const CTempString s1, SIZE_TYPE pos, SIZE_TYPE n, const CTempString s2)
 Case-insensitive compare of a substring with another string. More...
 
static int NStr::CompareNocase (const char *s1, const char *s2)
 Case-insensitive compare of two strings – char* version. More...
 
static int NStr::CompareNocase (const CTempStringEx s1, const CTempStringEx s2)
 Case-insensitive compare of two strings – CTempStringEx version. More...
 
static int NStr::Compare (const CTempString s1, SIZE_TYPE pos, SIZE_TYPE n, const char *s2, ECase use_case=eCase)
 Compare of a substring with another string. More...
 
static int NStr::Compare (const CTempString s1, SIZE_TYPE pos, SIZE_TYPE n, const CTempString s2, ECase use_case=eCase)
 Compare of a substring with another string. More...
 
static int NStr::Compare (const char *s1, const char *s2, ECase use_case=eCase)
 Compare two strings – char* version. More...
 
static int NStr::Compare (const CTempStringEx s1, const CTempStringEx s2, ECase use_case=eCase)
 Compare two strings – CTempStringEx version. More...
 
static bool NStr::EqualCase (const CTempString s1, SIZE_TYPE pos, SIZE_TYPE n, const char *s2)
 Case-sensitive equality of a substring with another string. More...
 
static bool NStr::EqualCase (const CTempString s1, SIZE_TYPE pos, SIZE_TYPE n, const CTempString s2)
 Case-sensitive equality of a substring with another string. More...
 
static bool NStr::EqualCase (const char *s1, const char *s2)
 Case-sensitive equality of two strings – char* version. More...
 
static bool NStr::EqualCase (const CTempStringEx s1, const CTempStringEx s2)
 Case-sensitive equality of two strings. More...
 
static bool NStr::EqualNocase (const CTempString s1, SIZE_TYPE pos, SIZE_TYPE n, const char *s2)
 Case-insensitive equality of a substring with another string. More...
 
static bool NStr::EqualNocase (const CTempString s1, SIZE_TYPE pos, SIZE_TYPE n, const CTempString s2)
 Case-insensitive equality of a substring with another string. More...
 
static bool NStr::EqualNocase (const char *s1, const char *s2)
 Case-insensitive equality of two strings – char* version. More...
 
static bool NStr::EqualNocase (const CTempStringEx s1, const CTempStringEx s2)
 Case-insensitive equality of two strings. More...
 
static bool NStr::Equal (const CTempString s1, SIZE_TYPE pos, SIZE_TYPE n, const char *s2, ECase use_case=eCase)
 Test for equality of a substring with another string. More...
 
static bool NStr::Equal (const CTempString s1, SIZE_TYPE pos, SIZE_TYPE n, const CTempString s2, ECase use_case=eCase)
 Test for equality of a substring with another string. More...
 
static bool NStr::Equal (const char *s1, const char *s2, ECase use_case=eCase)
 Test for equality of two strings – char* version. More...
 
static bool NStr::Equal (const CTempStringEx s1, const CTempStringEx s2, ECase use_case=eCase)
 Test for equality of two strings. More...
 
static int NStr::strcmp (const char *s1, const char *s2)
 String compare. More...
 
static int NStr::strncmp (const char *s1, const char *s2, size_t n)
 String compare up to specified number of characters. More...
 
static int NStr::strcasecmp (const char *s1, const char *s2)
 Case-insensitive comparison of two zero-terminated strings. More...
 
static int NStr::strncasecmp (const char *s1, const char *s2, size_t n)
 Case-insensitive comparison of two zero-terminated strings, narrowed to the specified number of characters. More...
 
static size_t NStr::strftime (char *s, size_t maxsize, const char *format, const struct tm *timeptr)
 Wrapper for the function strftime() that corrects handling D and T time formats on MS Windows. More...
 
static bool NStr::MatchesMask (CTempString str, CTempString mask, ECase use_case=eCase)
 Match "str" against the "mask". More...
 
static bool NStr::IsBlank (const CTempString str, SIZE_TYPE pos=0)
 Check if a string is blank (has no text). More...
 
static bool NStr::IsLower (const CTempString str)
 Checks if all letters in the given string have a lower case. More...
 
static bool NStr::IsUpper (const CTempString str)
 Checks if all letters in the given string have a upper case. More...
 
static stringNStr::ToLower (string &str)
 Convert string to lower case – string& version. More...
 
static char * NStr::ToLower (char *str)
 Convert string to lower case – char* version. More...
 
static stringNStr::ToUpper (string &str)
 Convert string to upper case – string& version. More...
 
static char * NStr::ToUpper (char *str)
 Convert string to upper case – char* version. More...
 
static void NStr::ToLower (const char *)
 Privatized ToLower() with const char* parameter to prevent passing of constant strings. More...
 
static void NStr::ToUpper (const char *)
 Privatized ToUpper() with const char* parameter to prevent passing of constant strings. More...
 
static bool NStr::StartsWith (const CTempString str, const CTempString start, ECase use_case=eCase)
 Check if a string starts with a specified prefix value. More...
 
static bool NStr::StartsWith (const CTempString str, char start, ECase use_case=eCase)
 Check if a string starts with a specified character value. More...
 
static bool NStr::EndsWith (const CTempString str, const CTempString end, ECase use_case=eCase)
 Check if a string ends with a specified suffix value. More...
 
static bool NStr::EndsWith (const CTempString str, char end, ECase use_case=eCase)
 Check if a string ends with a specified character value. More...
 
static SIZE_TYPE NStr::CommonPrefixSize (const CTempString s1, const CTempString s2)
 Determine the common prefix of two strings. More...
 
static SIZE_TYPE NStr::CommonSuffixSize (const CTempString s1, const CTempString s2)
 Determine the common suffix of two strings. More...
 
static SIZE_TYPE NStr::CommonOverlapSize (const CTempString s1, const CTempString s2)
 Determine if the suffix of one string is the prefix of another. More...
 
static SIZE_TYPE NStr::Find (const CTempString str, const CTempString pattern, ECase use_case=eCase, EDirection direction=eForwardSearch, SIZE_TYPE occurrence=0)
 Find the pattern in the string. More...
 
static SIZE_TYPE NStr::Find (const CTempString str, const CTempString pattern, SIZE_TYPE start, SIZE_TYPE end, EOccurrence which=eFirst, ECase use_case=eCase)
 Find the pattern in the specified range of a string. More...
 
static SIZE_TYPE NStr::Find (const CTempString str, const CTempString pattern, SIZE_TYPE start)
 Wrapper for backward-compatibility. More...
 
static SIZE_TYPE NStr::FindCase (const CTempString str, const CTempString pattern, SIZE_TYPE start, SIZE_TYPE end, EOccurrence which=eFirst)
 Find the pattern in the specified range of a string using a case sensitive search. More...
 
static SIZE_TYPE NStr::FindCase (const CTempString str, const CTempString pattern)
 Wrappers for backward-compatibility. More...
 
static SIZE_TYPE NStr::FindCase (const CTempString str, const CTempString pattern, SIZE_TYPE start)
 
static SIZE_TYPE NStr::FindNoCase (const CTempString str, const CTempString pattern, SIZE_TYPE start, SIZE_TYPE end, EOccurrence which=eFirst)
 Find the pattern in the specified range of a string using a case insensitive search. More...
 
static SIZE_TYPE NStr::FindNoCase (const CTempString str, const CTempString pattern)
 Wrapper for backward-compatibility. More...
 
static SIZE_TYPE NStr::FindNoCase (const CTempString str, const CTempString pattern, SIZE_TYPE start)
 
static const stringNStr::Find (const list< string > &lst, const CTempString val, ECase use_case=eCase)
 Test for presence of a given string in a list or vector of strings. More...
 
static const stringNStr::FindCase (const list< string > &lst, const CTempString val)
 
static const stringNStr::FindNoCase (const list< string > &lst, const CTempString val)
 
static const stringNStr::Find (const vector< string > &vec, const CTempString val, ECase use_case=eCase)
 
static const stringNStr::FindCase (const vector< string > &vec, const CTempString val)
 
static const stringNStr::FindNoCase (const vector< string > &vec, const CTempString val)
 
static SIZE_TYPE NStr::FindWord (const CTempString str, const CTempString word, ECase use_case=eCase, EDirection direction=eForwardSearch)
 Find given word in the string. More...
 
static SIZE_TYPE NStr::FindWord (const CTempString str, const CTempString word, EOccurrence which, ECase use_case=eCase)
 Find given word in the string. More...
 
static string NStr::TruncateSpaces (const string &str, ETrunc where=eTrunc_Both)
 Truncate spaces in a string. More...
 
static CTempString NStr::TruncateSpaces_Unsafe (const CTempString str, ETrunc where=eTrunc_Both)
 Truncate spaces in a string. More...
 
static CTempString NStr::TruncateSpaces (const CTempString str, ETrunc where=eTrunc_Both)
 
static CTempString NStr::TruncateSpaces (const char *str, ETrunc where=eTrunc_Both)
 
static void NStr::TruncateSpacesInPlace (string &str, ETrunc where=eTrunc_Both)
 Truncate spaces in a string (in-place) More...
 
static void NStr::TruncateSpacesInPlace (CTempString &, ETrunc where=eTrunc_Both)
 
static void NStr::TrimPrefixInPlace (string &str, const CTempString prefix, ECase use_case=eCase)
 Trim prefix from a string (in-place) More...
 
static void NStr::TrimPrefixInPlace (CTempString &str, const CTempString prefix, ECase use_case=eCase)
 
static CTempString NStr::TrimPrefix_Unsafe (const CTempString str, const CTempString prefix, ECase use_case=eCase)
 Trim prefix from a string. More...
 
static void NStr::TrimSuffixInPlace (string &str, const CTempString suffix, ECase use_case=eCase)
 Trim suffix from a string (in-place) More...
 
static void NStr::TrimSuffixInPlace (CTempString &str, const CTempString suffix, ECase use_case=eCase)
 
static CTempString NStr::TrimSuffix_Unsafe (const CTempString str, const CTempString suffix, ECase use_case=eCase)
 Trim suffix from a string. More...
 
static stringNStr::Replace (const string &src, const string &search, const string &replace, string &dst, SIZE_TYPE start_pos=0, SIZE_TYPE max_replace=0, SIZE_TYPE *num_replace=0)
 Replace occurrences of a substring within a string. More...
 
static string NStr::Replace (const string &src, const string &search, const string &replace, SIZE_TYPE start_pos=0, SIZE_TYPE max_replace=0, SIZE_TYPE *num_replace=0)
 Replace occurrences of a substring within a string and returns the result as a new string. More...
 
static stringNStr::ReplaceInPlace (string &src, const string &search, const string &replace, SIZE_TYPE start_pos=0, SIZE_TYPE max_replace=0, SIZE_TYPE *num_replace=0)
 Replace occurrences of a substring within a string. More...
 
static list< string > & NStr::Split (const CTempString str, const CTempString delim, list< string > &arr, TSplitFlags flags=0, vector< SIZE_TYPE > *token_pos=NULL)
 Split a string using specified delimiters. More...
 
static vector< string > & NStr::Split (const CTempString str, const CTempString delim, vector< string > &arr, TSplitFlags flags=0, vector< SIZE_TYPE > *token_pos=NULL)
 
static list< CTempString > & NStr::Split (const CTempString str, const CTempString delim, list< CTempString > &arr, TSplitFlags flags=0, vector< SIZE_TYPE > *token_pos=NULL, CTempString_Storage *storage=NULL)
 
static vector< CTempString > & NStr::Split (const CTempString str, const CTempString delim, vector< CTempString > &arr, TSplitFlags flags=0, vector< SIZE_TYPE > *token_pos=NULL, CTempString_Storage *storage=NULL)
 
static list< CTempStringEx > & NStr::Split (const CTempString str, const CTempString delim, list< CTempStringEx > &arr, TSplitFlags flags=0, vector< SIZE_TYPE > *token_pos=NULL, CTempString_Storage *storage=NULL)
 
static vector< CTempStringEx > & NStr::Split (const CTempString str, const CTempString delim, vector< CTempStringEx > &arr, TSplitFlags flags=0, vector< SIZE_TYPE > *token_pos=NULL, CTempString_Storage *storage=NULL)
 
static bool NStr::SplitInTwo (const CTempString str, const CTempString delim, string &str1, string &str2, TSplitFlags flags=0)
 Split a string into two pieces using the specified delimiters. More...
 
static bool NStr::SplitInTwo (const CTempString str, const CTempString delim, CTempString &str1, CTempString &str2, TSplitFlags flags=0, CTempString_Storage *storage=NULL)
 
static bool NStr::SplitInTwo (const CTempString str, const CTempString delim, CTempStringEx &str1, CTempStringEx &str2, TSplitFlags flags=0, CTempString_Storage *storage=NULL)
 
static list< string > & NStr::SplitByPattern (const CTempString str, const CTempString delim, list< string > &arr, TSplitFlags flags=0, vector< SIZE_TYPE > *token_pos=NULL)
 Variation of Split() with fSplit_ByPattern flag applied by default. More...
 
static vector< string > & NStr::SplitByPattern (const CTempString str, const CTempString delim, vector< string > &arr, TSplitFlags flags=0, vector< SIZE_TYPE > *token_pos=NULL)
 
static list< CTempString > & NStr::SplitByPattern (const CTempString str, const CTempString delim, list< CTempString > &arr, TSplitFlags flags=0, vector< SIZE_TYPE > *token_pos=NULL, CTempString_Storage *storage=NULL)
 
static vector< CTempString > & NStr::SplitByPattern (const CTempString str, const CTempString delim, vector< CTempString > &arr, TSplitFlags flags=0, vector< SIZE_TYPE > *token_pos=NULL, CTempString_Storage *storage=NULL)
 
static list< CTempStringEx > & NStr::SplitByPattern (const CTempString str, const CTempString delim, list< CTempStringEx > &arr, TSplitFlags flags=0, vector< SIZE_TYPE > *token_pos=NULL, CTempString_Storage *storage=NULL)
 
static vector< CTempStringEx > & NStr::SplitByPattern (const CTempString str, const CTempString delim, vector< CTempStringEx > &arr, TSplitFlags flags=0, vector< SIZE_TYPE > *token_pos=NULL, CTempString_Storage *storage=NULL)
 
template<typename TContainer >
static string NStr::Join (const TContainer &arr, const CTempString &delim)
 Join strings using the specified delimiter. More...
 
template<typename TValue >
static string NStr::Join (const initializer_list< TValue > &arr, const CTempString &delim)
 
template<typename TInputIterator >
static string NStr::Join (TInputIterator from, TInputIterator to, const CTempString &delim)
 
template<typename TInputIterator >
static string NStr::JoinNumeric (TInputIterator from, TInputIterator to, const CTempString &delim)
 
template<typename TIterator , typename FTransform >
static string NStr::TransformJoin (TIterator from, TIterator to, const CTempString &delim, FTransform fnTransform)
 
static string NStr::PrintableString (const CTempString str, TPrintableMode mode=fNewLine_Quote|fNonAscii_Passthru)
 Get a printable version of the specified string. More...
 
static string NStr::Escape (const CTempString str, const CTempString metacharacters, char escape_char='\\')
 Escape string (generic version). More...
 
static string NStr::Unescape (const CTempString str, char escape_char='\\')
 Unescape string (generic version). More...
 
static string NStr::Quote (const CTempString str, char quote_char='"', char escape_char = '\\')
 Quote string (generic version). More...
 
static string NStr::Unquote (const CTempString str, char escape_char='\\')
 Unquote string (generic version). More...
 
static string NStr::Sanitize (CTempString str, TSS_Flags flags=fSS_print)
 Sanitize a string, allowing only specified classes of characters. More...
 
static string NStr::Sanitize (CTempString str, CTempString allow_chars, CTempString reject_chars, char reject_replacement=' ', TSS_Flags flags=0)
 Sanitize a string, allowing only specified characters or character classes. More...
 
static string NStr::ParseEscapes (const CTempString str, EEscSeqRange mode=eEscSeqRange_Standard, char user_char='?')
 Parse C-style escape sequences in the specified string. More...
 
static string NStr::ParseQuoted (const CTempString str, size_t *n_read=NULL)
 Discard C-style backslash escapes and extract a quoted string. More...
 
static string NStr::CEncode (const CTempString str, EQuoted quoted=eQuoted)
 Encode a string for C/C++. More...
 
static string NStr::CParse (const CTempString str, EQuoted quoted=eQuoted)
 Discard C-style backslash escapes. More...
 
static string NStr::JavaScriptEncode (const CTempString str)
 Encode a string for JavaScript. More...
 
static string NStr::XmlEncode (const CTempString str, TXmlEncode flags=eXmlEnc_Contents)
 Encode a string for XML. More...
 
static string NStr::HtmlEncode (const CTempString str, THtmlEncode flags=fHtmlEnc_EncodeAll)
 Encode a string for HTML. More...
 
static string NStr::HtmlDecode (const CTempString str, EEncoding encoding=eEncoding_Unknown, THtmlDecode *result_flags=NULL)
 Decode HTML entities and character references. More...
 
static string NStr::HtmlEntity (TUnicodeSymbol uch)
 Returns HTML entity name for this symbol if one exists (without leading ampersand and trailing semicolon); or empty string if suitable HTML entity was not found. More...
 
static string NStr::JsonEncode (const CTempString str, EJsonEncode encoding=eJsonEnc_UTF8)
 Encode a string for JSON. More...
 
static string NStr::JsonDecode (const CTempString str, size_t *n_read=NULL)
 Decode a string encoded by JsonEncode. More...
 
static string NStr::ShellEncode (const string &str)
 Quotes a string in Bourne Again Shell (BASH) syntax, in a way that disallows non-printable characters in the result. More...
 
static string NStr::URLEncode (const CTempString str, EUrlEncode flag=eUrlEnc_SkipMarkChars)
 URL-encode string. More...
 
static CStringUTF8 NStr::SQLEncode (const CStringUTF8 &str, ESqlEncode flag)
 SQL-encode string. More...
 
static CStringUTF8 NStr::SQLEncode (const CStringUTF8 &str)
 
static string NStr::URLDecode (const CTempString str, EUrlDecode flag=eUrlDec_All)
 URL-decode string. More...
 
static void NStr::URLDecodeInPlace (string &str, EUrlDecode flag=eUrlDec_All)
 URL-decode string to itself. More...
 
static bool NStr::NeedsURLEncoding (const CTempString str, EUrlEncode flag=eUrlEnc_SkipMarkChars)
 Check if the string needs the requested URL-encoding. More...
 
static string NStr::Base64Encode (const CTempString str, size_t line_len=0)
 Base64-encode string. More...
 
static string NStr::Base64Decode (const CTempString str)
 Base64-decode string. More...
 
static bool NStr::IsIPAddress (const CTempStringEx str)
 Check if the string contains a valid IP address. More...
 
template<typename _D >
static void NStr::WrapIt (const string &str, SIZE_TYPE width, _D &dest, TWrapFlags flags=0, const string *prefix=0, const string *prefix1=0)
 Wrap the specified string into lines of a specified width. More...
 
virtual NStr::IWrapDest::~IWrapDest ()
 
virtual void NStr::IWrapDest::Append (const string &s)=0
 
virtual void NStr::IWrapDest::Append (const CTempString &s)=0
 
 NStr::CWrapDestStringList::CWrapDestStringList (list< string > &l)
 
virtual void NStr::CWrapDestStringList::Append (const string &s)
 
virtual void NStr::CWrapDestStringList::Append (const CTempString &s)
 
static void NStr::Wrap (const string &str, SIZE_TYPE width, IWrapDest &dest, TWrapFlags flags, const string *prefix, const string *prefix1)
 
static list< string > & NStr::Wrap (const string &str, SIZE_TYPE width, list< string > &arr, TWrapFlags flags=0, const string *prefix=0, const string *prefix1=0)
 
static list< string > & NStr::Wrap (const string &str, SIZE_TYPE width, list< string > &arr, TWrapFlags flags, const string &prefix, const string *prefix1=0)
 
static list< string > & NStr::Wrap (const string &str, SIZE_TYPE width, list< string > &arr, TWrapFlags flags, const string &prefix, const string &prefix1)
 
static list< string > & NStr::WrapList (const list< string > &l, SIZE_TYPE width, const string &delim, list< string > &arr, TWrapFlags flags=0, const string *prefix=0, const string *prefix1=0)
 Wrap the list using the specified criteria. More...
 
static list< string > & NStr::WrapList (const list< string > &l, SIZE_TYPE width, const string &delim, list< string > &arr, TWrapFlags flags, const string &prefix, const string *prefix1=0)
 
static list< string > & NStr::WrapList (const list< string > &l, SIZE_TYPE width, const string &delim, list< string > &arr, TWrapFlags flags, const string &prefix, const string &prefix1)
 
static list< string > & NStr::Justify (const CTempString str, SIZE_TYPE width, list< string > &par, const CTempString *pfx=0, const CTempString *pfx1=0)
 Justify the specified string into a series of lines of the same width. More...
 
static list< string > & NStr::Justify (const CTempString str, SIZE_TYPE width, list< string > &par, const CTempString pfx, const CTempString *pfx1=0)
 
static list< string > & NStr::Justify (const CTempString str, SIZE_TYPE width, list< string > &par, const CTempString pfx, const CTempString pfx1)
 
static string NStr::Dedent (const CTempString str, TDedentFlags flags=0)
 Dedent multi-line string, removing common whitespace prefix for each line. More...
 
static string NStr::DedentR (const CTempString str)
 
static string NStr::GetField (const CTempString str, size_t field_no, const CTempString delimiters, EMergeDelims merge=eNoMergeDelims)
 Search for a field. More...
 
static string NStr::GetField (const CTempString str, size_t field_no, char delimiter, EMergeDelims merge=eNoMergeDelims)
 Search for a field. More...
 
static CTempString NStr::GetField_Unsafe (const CTempString str, size_t field_no, const CTempString delimiters, EMergeDelims merge=eNoMergeDelims)
 Search for a field. More...
 
static CTempString NStr::GetField_Unsafe (const CTempString str, size_t field_no, char delimiter, EMergeDelims merge=eNoMergeDelims)
 Search for a field. More...
 
static bool NStr::x_ReportLimitsError (const CTempString str, TStringToNumFlags flags)
 
template<typename TNumeric , typename TSource >
static bool NStr::x_VerifyIntLimits (TSource v, const CTempString str, TStringToNumFlags flags)
 
template<typename TNumeric , typename TSource >
static bool NStr::x_VerifyFloatLimits (TSource v, const CTempString str, TStringToNumFlags flags)
 
template<typename TNumeric >
static enable_if< is_integral< TNumeric >::value &&is_signed< TNumeric >::value &&(sizeof(TNumeric)< sizeof(int)), TNumeric >::type NStr::x_StringToNumeric (const CTempString str, TStringToNumFlags flags, int base)
 
template<typename TNumeric >
static enable_if< is_integral< TNumeric >::value &&is_signed< TNumeric >::value &&(sizeof(TNumeric)< sizeof(int)), bool >::type NStr::x_StringToNumeric (const CTempString str, TNumeric *value, TStringToNumFlags flags, int base)
 
static bool NStr::x_StringToNumeric (const CTempString str, long *value, TStringToNumFlags flags, int base)
 
static bool NStr::x_StringToNumeric (const CTempString str, unsigned long *value, TStringToNumFlags flags, int base)
 
static bool NStr::x_StringToNumeric (const CTempString str, float *value, TStringToNumFlags flags, int)
 
static bool NStr::x_StringToNumeric (const CTempString str, double *value, TStringToNumFlags flags, int)
 
template<typename TStrictId >
static enable_if< is_integral< typename TStrictId::TId >::value &&is_member_function_pointer< decltype(&TStrictId::Get)>::value, bool >::type NStr::x_StringToNumeric (const CTempString str, TStrictId *value, TStringToNumFlags flags, int base)
 
template<typename TNumeric >
static enable_if< is_integral< TNumeric >::value &&is_signed< TNumeric >::value &&(sizeof(TNumeric)<=sizeof(int) &&!is_same< TNumeric, long >::value), void >::type NStr::x_NumericToString (string &out_str, TNumeric value, TNumToStringFlags flags, int base)
 
static void NStr::x_NumericToString (string &out_str, long value, TNumToStringFlags flags, int base)
 
static void NStr::x_NumericToString (string &out_str, unsigned long value, TNumToStringFlags flags, int base)
 
template<typename TStrictId >
static enable_if< is_integral< typename TStrictId::TId >::value &&is_member_function_pointer< decltype(&TStrictId::Get)>::value, void >::type NStr::x_NumericToString (string &out_str, TStrictId value, TNumToStringFlags flags, int base)
 
template<typename TIterator >
static string NStr::xx_Join (TIterator from, TIterator to, const CTempString &delim)
 
template<typename TIterator >
static enable_if< is_same< typename TIterator::iterator_category, input_iterator_tag >::value &&is_convertible< typename TIterator::value_type, string >::value, string >::type NStr::x_Join (TIterator from, TIterator to, const CTempString &delim)
 
template<typename TValue >
static enable_if< is_convertible< TValue, string >::value, string >::type NStr::x_Join (TValue *from, TValue *to, const CTempString &delim)
 
CNcbiOstreamoperator<< (CNcbiOstream &os, const TStringUCS2 &str)
 Operator for writing TStringUCS2 to stream. More...
 
static CStringUTF8 CUtf8::AsUTF8 (const CTempString &src, EEncoding encoding, EValidate validate=eNoValidate)
 Convert into UTF8 from a C/C++ string. More...
 
static CStringUTF8 CUtf8::AsUTF8 (const CTempString &src, const locale &lcl)
 Convert into UTF8 from a C/C++ string. More...
 
template<typename TChar >
static enable_if< is_integral< TChar >::value &&(1< sizeof(TChar)), CStringUTF8 >::type CUtf8::AsUTF8 (const basic_string< TChar > &src)
 Convert into UTF8 from a Unicode C++ string. More...
 
template<typename TChar >
static enable_if< is_integral< TChar >::value &&(1< sizeof(TChar)), CStringUTF8 >::type CUtf8::AsUTF8 (const TChar *src, SIZE_TYPE tchar_count=NCBI_NS_STD::string::npos)
 Convert into UTF8 from a Unicode character buffer. More...
 
template<typename TChar >
static enable_if< is_integral< TChar >::value &&(1< sizeof(TChar)), CStringUTF8 & >::type CUtf8::AppendAsUTF8 (CStringUTF8 &dest, const basic_string< TChar > &src)
 Convert Unicode C++ string into UTF8 and append it to existing string. More...
 
template<typename TChar >
static enable_if< is_integral< TChar >::value &&(1< sizeof(TChar)), CStringUTF8 & >::type CUtf8::AppendAsUTF8 (CStringUTF8 &dest, const TChar *src, SIZE_TYPE tchar_count=NCBI_NS_STD::string::npos)
 Convert Unicode character buffer into UTF8 and append it to existing string. More...
 
template<typename TChar >
static enable_if< is_integral< TChar >::value &&(1< sizeof(TChar)), CStringUTF8 & >::type CUtf8::AppendAsUTF8 (CStringUTF8 &dest, TChar ch)
 Convert Unicode symbol into UTF8 and append it to existing string. More...
 
static CStringUTF8CUtf8::AppendAsUTF8 (CStringUTF8 &dest, const CTempString &src, EEncoding encoding, EValidate validate=eNoValidate)
 Convert non-Unicode C++ string into UTF8 and append it to existing string. More...
 
static CStringUTF8CUtf8::AppendAsUTF8 (CStringUTF8 &dest, const CTempString &src, const locale &lcl)
 Convert non-Unicode C++ string into UTF8 and append it to existing string. More...
 
static CStringUTF8CUtf8::AppendAsUTF8 (CStringUTF8 &dest, char ch, EEncoding encoding, EValidate validate=eNoValidate)
 Convert non-Unicode character into UTF8 and append it to existing string. More...
 
static CStringUTF8CUtf8::AppendAsUTF8 (CStringUTF8 &dest, char ch, const locale &lcl)
 Convert non-Unicode character into UTF8 and append it to existing string. More...
 
static string CUtf8::AsSingleByteString (const CTempString &src, EEncoding encoding, const char *substitute_on_error=0, EValidate validate=eNoValidate)
 Convert UTF8 string into a single-byte character representation. More...
 
static string CUtf8::AsSingleByteString (const CTempString &src, const locale &lcl, const char *substitute_on_error=0, EValidate validate=eNoValidate)
 
template<typename TChar >
static enable_if< is_integral< TChar >::value &&(1< sizeof(TChar)), basic_string< TChar > >::type CUtf8::AsBasicString (const CTempString &src, const TChar *substitute_on_error, EValidate validate=eNoValidate)
 Convert UTF8 string into Unicode. More...
 
template<typename TChar >
static enable_if< is_integral< TChar >::value &&(1< sizeof(TChar)), basic_string< TChar > >::type CUtf8::AsBasicString (const CTempString &src)
 
static SIZE_TYPE CUtf8::GetSymbolCount (const CTempString &src)
 Get the number of symbols (code points) in UTF8 string. More...
 
static SIZE_TYPE CUtf8::GetValidSymbolCount (const CTempString &src)
 Get the number of valid UTF-8 symbols (code points) in buffer. More...
 
static SIZE_TYPE CUtf8::GetValidBytesCount (const CTempString &src)
 Get the number of valid UTF-8 bytes (code units) in buffer. More...
 
static SIZE_TYPE CUtf8::EvaluateSymbolLength (const CTempString &src)
 Check buffer for presence of UTF-8 byte sequence and return length of first symbol. More...
 
static bool CUtf8::EvaluateFirst (char ch, SIZE_TYPE &more)
 Check that the character is valid first byte of an UTF8 byte sequence. More...
 
static bool CUtf8::EvaluateNext (char ch)
 Check that the character is valid continuation byte of an UTF8 byte sequence. More...
 
static bool CUtf8::MatchEncoding (const CTempString &src, EEncoding encoding)
 Check the encoding of the C/C++ string. More...
 
static EEncoding CUtf8::GuessEncoding (const CTempString &src)
 Guess the encoding of the C/C++ string. More...
 
static string CUtf8::EncodingToString (EEncoding encoding)
 Give Encoding name as string. More...
 
static EEncoding CUtf8::StringToEncoding (const CTempString &encoding_name)
 Convert encoding name into EEncoding enum, taking into account synonyms as per http://www.iana.org/assignments/character-sets. More...
 
static TUnicodeSymbol CUtf8::CharToSymbol (char ch, EEncoding encoding)
 Convert encoded character into Unicode. More...
 
static TUnicodeSymbol CUtf8::CharToSymbol (char ch, const locale &lcl)
 Convert encoded character into Unicode. More...
 
static char CUtf8::SymbolToChar (TUnicodeSymbol sym, EEncoding encoding)
 Convert Unicode code point into encoded character. More...
 
static char CUtf8::SymbolToChar (TUnicodeSymbol sym, const locale &lcl)
 Convert Unicode code point into encoded character. More...
 
static bool CUtf8::IsWhiteSpace (TUnicodeSymbol sym)
 Determines if a symbol is whitespace per http://unicode.org/charts/uca/chart_Whitespace.html. More...
 
static CStringUTF8CUtf8::TruncateSpacesInPlace (CStringUTF8 &str, NStr::ETrunc side=NStr::eTrunc_Both)
 Truncate spaces in the string (in-place) More...
 
static CStringUTF8 CUtf8::TruncateSpaces (const CTempString &str, NStr::ETrunc side=NStr::eTrunc_Both)
 Truncate spaces in the string. More...
 
static CTempString CUtf8::TruncateSpaces_Unsafe (const CTempString &str, NStr::ETrunc side=NStr::eTrunc_Both)
 Truncate spaces in the string. More...
 
static TUnicodeSymbol CUtf8::Decode (const char *&src)
 Convert sequence of UTF8 code units into Unicode code point. More...
 
static TUnicodeSymbol CUtf8::Decode (string::const_iterator &src)
 Convert sequence of UTF8 code units into Unicode code point. More...
 
static TUnicodeSymbol CUtf8::DecodeFirst (char ch, SIZE_TYPE &more)
 Begin converting first character of UTF8 sequence into Unicode. More...
 
static TUnicodeSymbol CUtf8::DecodeNext (TUnicodeSymbol chU, char ch)
 Convert next character of UTF8 sequence into Unicode. More...
 
static void CUtf8::x_Validate (const CTempString &str)
 
static SIZE_TYPE CUtf8::x_GetValidSymbolCount (const CTempString &src, CTempString::const_iterator &err)
 
static CStringUTF8CUtf8::x_AppendChar (CStringUTF8 &u8str, TUnicodeSymbol ch)
 
static CStringUTF8CUtf8::x_Append (CStringUTF8 &u8str, const CTempString &src, EEncoding encoding, EValidate validate)
 
static CStringUTF8CUtf8::x_Append (CStringUTF8 &u8str, const CTempString &src, const locale &lcl)
 
template<typename TChar >
static bool CUtf8::x_TCharToUnicodeSymbol (TUnicodeSymbol &u, const TChar *src)
 
template<typename TChar >
static CStringUTF8CUtf8::x_Append (CStringUTF8 &u8str, const TChar *src, SIZE_TYPE tchar_count)
 
template<typename TChar >
static basic_string< TCharCUtf8::x_AsBasicString (const CTempString &src, const TChar *substitute_on_error, EValidate validate)
 
template<typename TIterator >
static TUnicodeSymbol CUtf8::x_Decode (TIterator &src)
 
static SIZE_TYPE CUtf8::x_BytesNeeded (TUnicodeSymbol ch)
 
static bool CUtf8::x_EvalFirst (char ch, SIZE_TYPE &more)
 
static bool CUtf8::x_EvalNext (char ch)
 
static CTempString CUtf8::x_GetErrorFragment (const CTempString &src)
 
virtual const char * CParseTemplException< TBase >::GetErrCodeString (void) const override
 Translate from the error code value to its string representation. More...
 
 CParseTemplException< TBase >::CParseTemplException (const CDiagCompileInfo &info, const CException *prev_exception, EErrCode err_code, const string &message, string::size_type pos, EDiagSev severity=eDiag_Error)
 Constructor. More...
 
 CParseTemplException< TBase >::CParseTemplException (const CParseTemplException< TBase > &other)
 Constructor. More...
 
virtual CParseTemplException< TBase >::~CParseTemplException (void) noexcept
 Destructor. More...
 
virtual void CParseTemplException< TBase >::ReportExtra (ostream &out) const override
 Report error position. More...
 
virtual const char * CParseTemplException< TBase >::GetType (void) const override
 Get exception class type. More...
 
TErrCode CParseTemplException< TBase >::GetErrCode (void) const
 Get error code. More...
 
string::size_type CParseTemplException< TBase >::GetPos (void) const noexcept
 Get error position. More...
 
 CParseTemplException< TBase >::CParseTemplException (const CDiagCompileInfo &info, const CException *prev_exception, const string &message, string::size_type pos, EDiagSev severity, CException::TFlags flags)
 
 CParseTemplException< TBase >::CParseTemplException (void)
 Constructor. More...
 
virtual const CExceptionCParseTemplException< TBase >::x_Clone (void) const override
 Helper clone method. More...
 
virtual const char * CStringException::GetErrCodeString (void) const override
 Translate from the error code value to its string representation. More...
 
 CStringException::NCBI_EXCEPTION_DEFAULT2 (CStringException, CParseTemplException< CCoreException >, std::string::size_type)
 
virtual string IStringDecoder::Decode (const CTempString src, EStringType stype) const =0
 Decode the string. More...
 
virtual IStringDecoder::~IStringDecoder (void)
 
virtual string IStringEncoder::Encode (const CTempString src, EStringType stype) const =0
 Encode the string. More...
 
virtual IStringEncoder::~IStringEncoder (void)
 
 CStringDecoder_Url::CStringDecoder_Url (NStr::EUrlDecode flag=NStr::eUrlDec_All)
 
virtual string CStringDecoder_Url::Decode (const CTempString src, EStringType stype) const
 
 CStringEncoder_Url::CStringEncoder_Url (NStr::EUrlEncode flag=NStr::eUrlEnc_SkipMarkChars)
 
virtual string CStringEncoder_Url::Encode (const CTempString src, EStringType stype) const
 
 CStringPairs< TContainer >::CStringPairs (IStringDecoder *decoder=NULL, EOwnership own_decoder=eTakeOwnership, IStringEncoder *encoder=NULL, EOwnership own_encoder=eTakeOwnership)
 Create parser with the specified decoder/encoder and default separators. More...
 
 CStringPairs< TContainer >::CStringPairs (const CTempString arg_sep, const CTempString val_sep, IStringDecoder *decoder=NULL, EOwnership own_decoder=eTakeOwnership, IStringEncoder *encoder=NULL, EOwnership own_encoder=eTakeOwnership)
 Create parser with the specified parameters. More...
 
 CStringPairs< TContainer >::CStringPairs (NStr::EUrlDecode decode_flag, NStr::EUrlEncode encode_flag)
 Create parser with the selected URL-encoding/decoding options and default separators. More...
 
virtual CStringPairs< TContainer >::~CStringPairs (void)
 
void CStringPairs< TContainer >::SetDecoder (IStringDecoder *decoder, EOwnership own=eTakeOwnership)
 Set string decoder. More...
 
IStringDecoderCStringPairs< TContainer >::GetDecoder (void)
 Get decoder or NULL. Does not affect decoder ownership. More...
 
void CStringPairs< TContainer >::SetEncoder (IStringEncoder *encoder, EOwnership own=eTakeOwnership)
 Set string encoder. More...
 
IStringEncoderCStringPairs< TContainer >::GetEncoder (void)
 Get encoder or NULL. Does not affect encoder ownership. More...
 
void CStringPairs< TContainer >::Parse (const CTempString str, NStr::EMergeDelims merge_argsep=NStr::eMergeDelims)
 Parse the string. More...
 
static void CStringPairs< TContainer >::Parse (TStrPairs &pairs, const CTempString str, const CTempString arg_sep, const CTempString val_sep, IStringDecoder *decoder=NULL, EOwnership own=eTakeOwnership, NStr::EMergeDelims merge_argsep=NStr::eMergeDelims)
 Parse the string using the provided decoder, put data into the container. More...
 
string CStringPairs< TContainer >::Merge (void) const
 Merge name-value pairs into a single string using the currently set separators and the provided encoder if any. More...
 
static string CStringPairs< TContainer >::Merge (const TStrPairs &pairs, const string &arg_sep, const string &val_sep, IStringEncoder *encoder=NULL, EOwnership own=eTakeOwnership)
 Merge name-value pairs from the provided container, separators and encoder. More...
 
const TStrPairsCStringPairs< TContainer >::GetPairs (void) const
 Read data. More...
 
TStrPairsCStringPairs< TContainer >::GetPairs (void)
 Get non-const data. More...
 
 CEncodedString::CEncodedString (void)
 
 CEncodedString::CEncodedString (const CTempString s, NStr::EUrlEncode flag=NStr::eUrlEnc_SkipMarkChars)
 
void CEncodedString::SetString (const CTempString s, NStr::EUrlEncode flag=NStr::eUrlEnc_SkipMarkChars)
 Set new original string. More...
 
bool CEncodedString::IsEncoded (void) const
 Check if the original string was encoded. More...
 
const stringCEncodedString::GetOriginalString (void) const
 Get the original unencoded string. More...
 
const stringCEncodedString::GetEncodedString (void) const
 Get encoded string. More...
 
bool CEncodedString::IsEmpty (void) const
 Check if the string is empty. More...
 
int PCase_Generic< T >::Compare (const T &s1, const T &s2) const
 Return difference between "s1" and "s2". More...
 
bool PCase_Generic< T >::Less (const T &s1, const T &s2) const
 Return TRUE if s1 < s2. More...
 
bool PCase_Generic< T >::Equals (const T &s1, const T &s2) const
 Return TRUE if s1 == s2. More...
 
bool PCase_Generic< T >::operator() (const T &s1, const T &s2) const
 Return TRUE if s1 < s2. More...
 
int PNocase_Generic< T >::Compare (const T &s1, const T &s2) const
 Return difference between "s1" and "s2". More...
 
bool PNocase_Generic< T >::Less (const T &s1, const T &s2) const
 Return TRUE if s1 < s2. More...
 
bool PNocase_Generic< T >::Equals (const T &s1, const T &s2) const
 Return TRUE if s1 == s2. More...
 
bool PNocase_Generic< T >::operator() (const T &s1, const T &s2) const
 Return TRUE if s1 < s2 ignoring case. More...
 
 PNocase_Conditional_Generic< T >::PNocase_Conditional_Generic (NStr::ECase case_sens=NStr::eCase)
 Construction. More...
 
NStr::ECase PNocase_Conditional_Generic< T >::GetCase () const
 Get comparison type. More...
 
void PNocase_Conditional_Generic< T >::SetCase (NStr::ECase case_sens)
 Set comparison type. More...
 
int PNocase_Conditional_Generic< T >::Compare (const T &s1, const T &s2) const
 Return difference between "s1" and "s2". More...
 
bool PNocase_Conditional_Generic< T >::Less (const T &s1, const T &s2) const
 Return TRUE if s1 < s2. More...
 
bool PNocase_Conditional_Generic< T >::Equals (const T &s1, const T &s2) const
 Return TRUE if s1 == s2. More...
 
bool PNocase_Conditional_Generic< T >::operator() (const T &s1, const T &s2) const
 Return TRUE if s1 < s2 ignoring case. More...
 
bool PEqualNocase_Generic< T >::operator() (const T &s1, const T &s2) const
 Return TRUE if s1 < s2 ignoring case. More...
 
 PEqualNocase_Conditional_Generic< T >::PEqualNocase_Conditional_Generic (NStr::ECase case_sens=NStr::eCase)
 Construction. More...
 
bool PEqualNocase_Conditional_Generic< T >::operator() (const T &s1, const T &s2) const
 Return TRUE if s1 < s2 ignoring case. More...
 
bool PQuickStringLess::operator() (const CTempString s1, const CTempString s2) const
 
template<class Arg1 , class Arg2 , class Pred >
bool AStrEquiv (const Arg1 &x, const Arg2 &y, Pred pr)
 Check equivalence of arguments using predicate. More...
 
void CStrDummyTokenPos::push_back (string::size_type)
 
void CStrDummyTokenPos::reserve (string::size_type)
 
static size_t CStrDummyTokenCount::Count (CStrTokenizeBase &)
 
static void CStrDummyTargetReserve< TV, TP >::Reserve (CStrTokenizeBase &, TV &, TP &)
 
 CTempStringList::CTempStringList (CTempString_Storage *storage)
 
void CTempStringList::Add (const CTempString &s)
 
void CTempStringList::Clear (void)
 
void CTempStringList::Join (string *s) const
 
void CTempStringList::Join (CTempString *s) const
 
void CTempStringList::Join (CTempStringEx *s) const
 
size_t CTempStringList::GetSize (void) const
 
 CTempStringList::SNode::SNode ()
 
 CTempStringList::SNode::SNode (const CTempString &s)
 
 CStrTokenizeBase::CStrTokenizeBase (const CTempString &str, const CTempString &delim, TFlags flags, CTempString_Storage *storage)
 
SIZE_TYPE CStrTokenizeBase::GetPos (void) const
 
bool CStrTokenizeBase::AtEnd (void) const
 
bool CStrTokenizeBase::Advance (CTempStringList *part_collector)
 Return TRUE if it found some text and put it into collector. More...
 
bool CStrTokenizeBase::Advance (CTempStringList *part_collector, SIZE_TYPE *ptr_part_start, SIZE_TYPE *ptr_delim_pos)
 
void CStrTokenizeBase::SkipDelims (void)
 Skip all delimiters starting from current position. More...
 
void CStrTokenizeBase::MergeDelims (void)
 Assumes that we already have a delimiter on the previous position, so just skip all subsequent, depending on flags. More...
 
void CStrTokenizeBase::SetDelim (const CTempString &delim)
 
void CStrTokenizeBase::x_ExtendInternalDelim ()
 
void CStrTokenizeBase::x_SkipDelims (bool force_skip)
 
 CStrTokenize< TStr, TV, TP, TCount, TReserve >::CStrTokenize (const TString &str, const TString &delim, TFlags flags, CTempString_Storage *storage)
 Constructor. More...
 
void CStrTokenize< TStr, TV, TP, TCount, TReserve >::Do (TContainer &target, TPosContainer &token_pos, const TString &empty_str=TString())
 Tokenize the string using the specified set of char delimiters. More...
 
static size_t CStringTokenCount::Count (CStrTokenizeBase &tokenizer)
 
static void CStrTargetReserve< TV, TP, TCount >::Reserve (CStrTokenizeBase &tokenizer, TV &target, TP &token_pos)
 
 CStrTokenPosAdapter< TPosContainer >::CStrTokenPosAdapter (TPosContainer *token_pos)
 If token_pos construction parameter is NULL all calls are ignored. More...
 
void CStrTokenPosAdapter< TPosContainer >::push_back (string::size_type pos)
 
void CStrTokenPosAdapter< TPosContainer >::reserve (string::size_type capacity)
 
string::size_type CStrTokenPosAdapter< TPosContainer >::size ()
 
void CStrTokenPosAdapter< TPosContainer >::resize (string::size_type newsize)
 
 CTempString::CTempString (void)
 
 CTempString::CTempString (const char *str)
 
 CTempString::CTempString (const char *str, size_type len)
 
 CTempString::CTempString (const char *str, size_type pos, size_type len)
 Use CTempString(const char* str + pos, size_type len - pos) instead. More...
 
 CTempString::CTempString (const string &str)
 
 CTempString::CTempString (const string &str, size_type len)
 Use CTempString(const string& str, 0, size_type len) instead. More...
 
 CTempString::CTempString (const string &str, size_type pos, size_type len)
 
 CTempString::CTempString (const CTempString &str)
 
 CTempString::CTempString (const CTempString &str, size_type pos)
 
 CTempString::CTempString (const CTempString &str, size_type pos, size_type len)
 
void CTempString::Copy (string &dst, size_type pos, size_type len) const
 Copy a substring into a string Somewhat similar to basic_string::assign() More...
 
 CTempString::operator string (void) const
 
void CTempString::x_Init (const char *str, size_type str_len, size_type pos, size_type len)
 
void CTempString::x_Init (const char *str, size_type str_len, size_type pos)
 
string g_CTempString_plus (const char *str1, size_t len1, const char *str2, size_t len2)
 
string operator+ (const char *str1, const CTempString str2)
 
string operator+ (const CTempString str1, const char *str2)
 
string operator+ (const string &str1, const CTempString str2)
 
string operator+ (const CTempString str1, const string &str2)
 
string operator+ (const CTempString str1, const CTempString str2)
 
CNcbiOstreamoperator<< (CNcbiOstream &out, const CTempString str)
 
template<size_t Size>
CTempString literal (const char(&str)[Size])
 Templatized initialization from a string literal. More...
 
bool operator== (const char *str1, const CTempString str2)
 
bool operator== (const string &str1, const CTempString str2)
 
bool operator!= (const char *str1, const CTempString str2)
 
bool operator!= (const string &str1, const CTempString str2)
 
bool operator< (const char *str1, const CTempString str2)
 
bool operator< (const string &str1, const CTempString str2)
 
bool operator> (const char *str1, const CTempString str2)
 
bool operator> (const string &str1, const CTempString str2)
 
 CTempStringEx::CTempStringEx (void)
 
 CTempStringEx::CTempStringEx (const char *str)
 
 CTempStringEx::CTempStringEx (const char *str, size_type len)
 
 CTempStringEx::CTempStringEx (const char *str, size_type len, EZeroAtEnd zero_at_end)
 
 CTempStringEx::CTempStringEx (const string &str)
 
 CTempStringEx::CTempStringEx (const string &str, size_type pos, size_type len)
 
 CTempStringEx::CTempStringEx (const CTempString &str)
 
 CTempStringEx::CTempStringEx (const CTempString &str, size_type pos)
 
 CTempStringEx::CTempStringEx (const CTempString &str, size_type pos, size_type len)
 
CTempStringExCTempStringEx::assign (const char *str, size_type len)
 Assign new values to the content of the a string. More...
 
CTempStringExCTempStringEx::assign (const char *str, size_type len, EZeroAtEnd zero_at_end)
 
CTempStringExCTempStringEx::assign (const CTempString &str)
 
CTempStringExCTempStringEx::assign (const CTempStringEx &str)
 
CTempStringExCTempStringEx::assign (const CTempString str, size_type pos, size_type count)
 
void CTempStringEx::clear (void)
 Clear value to an empty string. More...
 
CTempStringEx CTempStringEx::substr (size_type pos) const
 Obtain a substring from this string, beginning at a given offset. More...
 
CTempStringEx CTempStringEx::substr (size_type pos, size_type len) const
 Obtain a substring from this string, beginning at a given offset and extending a specified length. More...
 
bool CTempStringEx::HasZeroAtEnd (void) const
 
 CTempString_Storage::CTempString_Storage (void)
 
 CTempString_Storage::~CTempString_Storage (void)
 
char * CTempString_Storage::Allocate (CTempString::size_type len)
 
 CTextJoiner< num_prealloc, TIn, TOut >::CTextJoiner ()
 
CTextJoinerCTextJoiner< num_prealloc, TIn, TOut >::Add (const TIn &s)
 
void CTextJoiner< num_prealloc, TIn, TOut >::Join (TOut *result) const
 

Variables

const _TChar * CTempXStr< _TChar >::m_Data
 
size_t CTempXStr< _TChar >::m_Length
 
const char *const kEmptyCStr
 Empty "C" string (points to a '\0'). More...
 
const wchar_t *const kEmptyWCStr
 
list< string > & NStr::CWrapDestStringList::m_list
 
string::size_type CParseTemplException< TBase >::m_Pos
 Error position. More...
 
NStr::EUrlDecode CStringDecoder_Url::m_Flag
 
NStr::EUrlEncode CStringEncoder_Url::m_Flag
 
string CStringPairs< TContainer >::m_ArgSep
 
string CStringPairs< TContainer >::m_ValSep
 
AutoPtr< IStringDecoderCStringPairs< TContainer >::m_Decoder
 
AutoPtr< IStringEncoderCStringPairs< TContainer >::m_Encoder
 
TStrPairs CStringPairs< TContainer >::m_Data
 
string CEncodedString::m_Original
 
unique_ptr< stringCEncodedString::m_Encoded
 
NStr::ECase PNocase_Conditional_Generic< T >::m_CaseSensitive
 case sensitive when TRUE More...
 
 END_NCBI_NAMESPACE
 
CTempString CTempStringList::SNode::str
 
unique_ptr< SNodeCTempStringList::SNode::next
 
SNode CTempStringList::m_FirstNode
 
SNodeCTempStringList::m_LastNode
 
CTempString_StorageCTempStringList::m_Storage
 
const CTempStringCStrTokenizeBase::m_Str
 
CTempString CStrTokenizeBase::m_Delim
 
SIZE_TYPE CStrTokenizeBase::m_Pos
 
TFlags CStrTokenizeBase::m_Flags
 
CTempString_StorageCStrTokenizeBase::m_Storage
 
CTempStringEx CStrTokenizeBase::m_InternalDelim
 
CTempString_Storage CStrTokenizeBase::m_DelimStorage
 
TPosContainer * CStrTokenPosAdapter< TPosContainer >::m_TokenPos
 
const char * CTempString::m_String
 Stored pointer to string. More...
 
size_type CTempString::m_Length
 Length of string. More...
 
EZeroAtEnd CTempStringEx::m_ZeroAtEnd
 
TData CTempString_Storage::m_Data
 
TIn CTextJoiner< num_prealloc, TIn, TOut >::m_MainStorage [num_prealloc]
 
unique_ptr< vector< TIn > > CTextJoiner< num_prealloc, TIn, TOut >::m_ExtraStorage
 
size_t CTextJoiner< num_prealloc, TIn, TOut >::m_MainStorageUsage
 

Friends

class CUtf8::CStringUTF8_DEPRECATED
 

std::basic_string<> compatibility typedefs and enums

typedef char CTempString::value_type
 
typedef size_t CTempString::size_type
 
typedef const char * CTempString::const_iterator
 
static const size_type CTempString::npos = static_cast<size_type>(-1)
 

std::basic_string<> compatibility interface

CTempStringCTempString::assign (const char *src_str, size_type len)
 Assign new values to the content of the a string. More...
 
CTempStringCTempString::assign (const CTempString src_str)
 
CTempStringCTempString::assign (const CTempString src_str, size_type pos, size_type len)
 
CTempStringCTempString::operator= (const CTempString str)
 
const_iterator CTempString::begin () const
 Return an iterator to the string's starting position. More...
 
const_iterator CTempString::end () const
 Return an iterator to the string's ending position (one past the end of the represented sequence) More...
 
const char * CTempString::data (void) const
 Return a pointer to the array represented. More...
 
size_type CTempString::length (void) const
 Return the length of the represented array. More...
 
size_type CTempString::size (void) const
 Return the length of the represented array. More...
 
bool CTempString::empty (void) const
 Return true if the represented string is empty (i.e., the length is zero) More...
 
void CTempString::clear (void)
 Clears the string. More...
 
void CTempString::erase (size_type pos=0)
 Truncate the string at some specified position Note: basic_string<> supports additional erase() options that we do not provide here. More...
 
size_type CTempString::find (const CTempString match, size_type pos=0) const
 Find the first instance of the entire matching string within the current string, beginning at an optional offset. More...
 
size_type CTempString::find (char match, size_type pos=0) const
 Find the first instance of a given character string within the current string in a forward direction, beginning at an optional offset. More...
 
size_type CTempString::rfind (const CTempString match, size_type pos=npos) const
 Find the first instance of the entire matching string within the current string in a backward direction, beginning at an optional offset. More...
 
size_type CTempString::rfind (char match, size_type pos=npos) const
 Find the last instance of a given character string within the current string, beginning at an optional offset. More...
 
size_type CTempString::find_first_of (const CTempString match, size_type pos=0) const
 Find the first occurrence of any character in the matching string within the current string, beginning at an optional offset. More...
 
size_type CTempString::find_first_not_of (const CTempString match, size_type pos=0) const
 Find the first occurrence of any character not in the matching string within the current string, beginning at an optional offset. More...
 
size_type CTempString::find_last_of (const CTempString match, size_type pos=npos) const
 Find the last occurrence of any character in the matching string within the current string, beginning at an optional offset. More...
 
size_type CTempString::find_last_not_of (const CTempString match, size_type pos=npos) const
 Find the last occurrence of any character not in the matching string within the current string, beginning at an optional offset. More...
 
CTempString CTempString::substr (size_type pos) const
 Obtain a substring from this string, beginning at a given offset. More...
 
CTempString CTempString::substr (size_type pos, size_type len) const
 Obtain a substring from this string, beginning at a given offset and extending a specified length. More...
 
char CTempString::operator[] (size_type pos) const
 Index into the current string and provide its character in a read- only fashion. More...
 
int CTempString::compare (const CTempString str) const
 Compare the current string with a given string. More...
 
bool CTempString::operator== (const CTempString str) const
 
bool CTempString::operator!= (const CTempString str) const
 
bool CTempString::operator< (const CTempString str) const
 
bool CTempString::operator> (const CTempString str) const
 

Detailed Description

Macro Definition Documentation

◆ _T_CSTRING

#define _T_CSTRING (   x)    (x)

Definition at line 182 of file ncbistr.hpp.

◆ _T_STDSTRING

#define _T_STDSTRING (   x)    (x)

Definition at line 180 of file ncbistr.hpp.

◆ _T_XCSTRING

#define _T_XCSTRING (   x)    ncbi::impl_ToCString(x)

Definition at line 181 of file ncbistr.hpp.

◆ _T_XSTRING

#define _T_XSTRING (   x)    (x)

Definition at line 179 of file ncbistr.hpp.

◆ _TX

#define _TX (   x)    x

Definition at line 176 of file ncbistr.hpp.

◆ kEmptyStr

#define kEmptyStr   NcbiEmptyString

◆ kEmptyWStr

#define kEmptyWStr   NcbiEmptyWString

Definition at line 127 of file ncbistr.hpp.

◆ kEmptyXCStr

#define kEmptyXCStr   kEmptyCStr

Definition at line 187 of file ncbistr.hpp.

◆ kEmptyXStr

#define kEmptyXStr   kEmptyStr

Definition at line 186 of file ncbistr.hpp.

◆ NCBI_TEMPSTR_DESTROY_COPY

#define NCBI_TEMPSTR_DESTROY_COPY ( )

Definition at line 294 of file tempstr.hpp.

◆ NCBI_TEMPSTR_MAKE_COPY

#define NCBI_TEMPSTR_MAKE_COPY ( )

Definition at line 293 of file tempstr.hpp.

◆ NCBI_TEXT

#define NCBI_TEXT (   x)    x

Definition at line 55 of file ncbi_xstr.hpp.

◆ NcbiEmptyCStr

#define NcbiEmptyCStr   NCBI_NS_NCBI::kEmptyCStr

Definition at line 59 of file ncbistr.hpp.

◆ NcbiEmptyString

#define NcbiEmptyString   NCBI_NS_NCBI::CNcbiEmptyString::Get()

◆ NcbiEmptyWCStr

#define NcbiEmptyWCStr   NCBI_NS_NCBI::kEmptyWCStr

Definition at line 63 of file ncbistr.hpp.

◆ NcbiEmptyWString

#define NcbiEmptyWString   NCBI_NS_NCBI::CNcbiEmptyWString::Get()

Definition at line 126 of file ncbistr.hpp.

◆ NcbiEmptyXCStr

#define NcbiEmptyXCStr   NcbiEmptyCStr

Definition at line 184 of file ncbistr.hpp.

◆ NcbiEmptyXString

#define NcbiEmptyXString   NcbiEmptyString

Definition at line 185 of file ncbistr.hpp.

◆ NCBITOOLKIT_USE_LONG_UCS4

#define NCBITOOLKIT_USE_LONG_UCS4   (SIZEOF_LONG == 4)

Definition at line 3835 of file ncbistr.hpp.

◆ NPOS

#define NPOS   NCBI_NS_STD::string::npos

Typedef Documentation

◆ const_iterator

Definition at line 71 of file tempstr.hpp.

◆ CStringPairsParser

◆ EConvErrFlags

Formerly split out.

Definition at line 310 of file ncbistr.hpp.

◆ PCase

◆ PCase_CStr

typedef PCase_Generic<const char *> PCase_CStr

◆ PEqualNocase

◆ PEqualNocase_Conditional

◆ PEqualNocase_Conditional_CStr

◆ PEqualNocase_CStr

◆ PNocase

◆ PNocase_Conditional

◆ PNocase_Conditional_CStr

◆ PNocase_CStr

◆ SIZE_TYPE

typedef NCBI_NS_STD::string::size_type SIZE_TYPE

◆ size_type [1/2]

typedef size_t CTempString::size_type

Definition at line 70 of file tempstr.hpp.

◆ size_type [2/2]

Definition at line 1053 of file tempstr.hpp.

◆ TBuffer

typedef char* CTempString_Storage::TBuffer
private

Definition at line 1061 of file tempstr.hpp.

◆ TCharUCS2

typedef Uint2 TCharUCS2

Type for character in UCS-2 encoding.

Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 3847 of file ncbistr.hpp.

◆ TCharUCS4

◆ TContainer

template<class TStr , class TV , class TP = CStrDummyTokenPos, class TCount = CStrDummyTokenCount, class TReserve = CStrDummyTargetReserve<TV, TP>>
typedef TV CStrTokenize< TStr, TV, TP, TCount, TReserve >::TContainer

Definition at line 230 of file ncbistr_util.hpp.

◆ TConvErrFlags

Formerly split out.

Definition at line 312 of file ncbistr.hpp.

◆ TCountTrait

template<class TStr , class TV , class TP = CStrDummyTokenPos, class TCount = CStrDummyTokenCount, class TReserve = CStrDummyTargetReserve<TV, TP>>
typedef TCount CStrTokenize< TStr, TV, TP, TCount, TReserve >::TCountTrait

Definition at line 232 of file ncbistr_util.hpp.

◆ TData

typedef list<TBuffer> CTempString_Storage::TData
private

Definition at line 1062 of file tempstr.hpp.

◆ TDedentFlags

Bitwise OR of EDedentFlags.

Definition at line 3415 of file ncbistr.hpp.

◆ TErrCode

template<class TBase >
typedef int CParseTemplException< TBase >::TErrCode

◆ TFlags

Definition at line 142 of file ncbistr_util.hpp.

◆ THtmlDecode

Definition at line 3071 of file ncbistr.hpp.

◆ THtmlEncode

Definition at line 3055 of file ncbistr.hpp.

◆ TNumToStringFlags

Bitwise OR of "ENumToStringFlags".

Definition at line 266 of file ncbistr.hpp.

◆ TPosContainer

template<class TStr , class TV , class TP = CStrDummyTokenPos, class TCount = CStrDummyTokenCount, class TReserve = CStrDummyTargetReserve<TV, TP>>
typedef TP CStrTokenize< TStr, TV, TP, TCount, TReserve >::TPosContainer

Definition at line 231 of file ncbistr_util.hpp.

◆ TPrintableMode

Bitwise OR of EPrintableMode flags.

Definition at line 2736 of file ncbistr.hpp.

◆ TReserveTrait

template<class TStr , class TV , class TP = CStrDummyTokenPos, class TCount = CStrDummyTokenCount, class TReserve = CStrDummyTargetReserve<TV, TP>>
typedef TReserve CStrTokenize< TStr, TV, TP, TCount, TReserve >::TReserveTrait

Definition at line 233 of file ncbistr_util.hpp.

◆ TSplitFlags

Bitwise OR of ESplitFlags.

Definition at line 2510 of file ncbistr.hpp.

◆ TSS_Flags

Bitwise OR of ESS_Flags.

Definition at line 2853 of file ncbistr.hpp.

◆ TString

template<class TStr , class TV , class TP = CStrDummyTokenPos, class TCount = CStrDummyTokenCount, class TReserve = CStrDummyTargetReserve<TV, TP>>
typedef TStr CStrTokenize< TStr, TV, TP, TCount, TReserve >::TString

Definition at line 229 of file ncbistr_util.hpp.

◆ TStringPairsVector

typedef vector<pair<string, string> > TStringPairsVector

◆ TStringToNumFlags

Bitwise OR of "EStringToNumFlags".

Definition at line 311 of file ncbistr.hpp.

◆ TStringUCS2

typedef basic_string<TCharUCS2> TStringUCS2

Type for string in UCS-2 encoding.

Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 3849 of file ncbistr.hpp.

◆ TStringUCS4

◆ TStringUnicode

typedef basic_string<TUnicodeSymbol> TStringUnicode

Unicode string.

Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 143 of file ncbistr.hpp.

◆ TStrPair

template<class TContainer >
typedef TContainer::value_type CStringPairs< TContainer >::TStrPair

The container's value type must be pair<string, string> or a compatible type.

Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 4599 of file ncbistr.hpp.

◆ TStrPairs

template<class TContainer >
typedef TContainer CStringPairs< TContainer >::TStrPairs

◆ TUnicodeSymbol

Unicode character.

Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 141 of file ncbistr.hpp.

◆ TWrapFlags

Bitwise OR of "EWrapFlags".

Definition at line 3232 of file ncbistr.hpp.

◆ TXChar

typedef char TXChar

◆ TXmlEncode

Definition at line 3037 of file ncbistr.hpp.

◆ TXString

typedef string TXString

◆ value_type

Definition at line 69 of file tempstr.hpp.

Enumeration Type Documentation

◆ ECase [1/2]

Enumerator
eCase 

Case sensitive compare.

eNocase 

Case insensitive compare.

Definition at line 222 of file ncbi_xstr.hpp.

◆ ECase [2/2]

Which type of string comparison.

Enumerator
eCase 

Case sensitive compare.

eNocase 

Case insensitive compare.

Definition at line 1204 of file ncbistr.hpp.

◆ EDedentFlags

Flags for Dedent() method.

Enumerator
fDedent_NormalizeEmptyLines 

Each line containing only whitespaces will be normalized to a single newline character in the output.

Such lines are excluded from detecting common whitespace prefix.

fDedent_SkipFirstLine 

Ignore first line and skip it from the result.

fDedent_SkipEmptyFirstLine 

Ignore first line and skip it from the result, if it is empty only.

Definition at line 3407 of file ncbistr.hpp.

◆ EDirection

Search direction for Find() methods.

Enumerator
eForwardSearch 

Search in a forward direction.

eReverseSearch 

Search in a backward direction.

Definition at line 1945 of file ncbistr.hpp.

◆ EEncoding

enum EEncoding
Enumerator
eEncoding_Unknown 
eEncoding_UTF8 
eEncoding_Ascii 
eEncoding_ISO8859_1 

Note: From the point of view of the C++.

Toolkit, the ISO 8859-1 character set includes symbols 0x00 through 0xFF except 0x80 through 0x9F.

eEncoding_Windows_1252 
eEncoding_CESU8 

Definition at line 199 of file ncbistr.hpp.

◆ EErrCode [1/2]

template<class TBase >
enum CParseTemplException::EErrCode

Error types that for exception class.

Enumerator
eErr 

Generic error.

Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 4400 of file ncbistr.hpp.

◆ EErrCode [2/2]

Error types that string classes can generate.

Enumerator
eConvert 

Failure to convert string.

eBadArgs 

Bad arguments to string methods.

eFormat 

Wrong format for any input to string methods.

Definition at line 4509 of file ncbistr.hpp.

◆ EEscSeqRange

C-style escape sequences parsing mode.

For escape sequences with a value outside the range of [0-255] the behavior of ParseEscapes() depends from this mode. By default all escape sequences within a out or range will be converted to the least significant byte, with no warning.

Enumerator
eEscSeqRange_Standard 

Set char to the last (least significant byte) of the escape sequence (default).

eEscSeqRange_FirstByte 

Set char to the first byte of the escape sequence.

eEscSeqRange_Throw 

Throw an exception.

eEscSeqRange_Errno 

Set errno to ERANGE, return empty string.

eEscSeqRange_User 

Set char to the user value passed in another parameter.

Definition at line 2938 of file ncbistr.hpp.

◆ EHtmlDecode

HTML-decode flags.

Enumerator
fHtmlDec_CharRef_Entity 

Character entity reference(s) was found.

fHtmlDec_CharRef_Numeric 

Numeric character reference(s) was found.

fHtmlDec_Encoding_Changed 

Character encoding changed.

Definition at line 3066 of file ncbistr.hpp.

◆ EHtmlEncode

HTML-decode flags.

Enumerator
fHtmlEnc_EncodeAll 

Encode all symbols.

fHtmlEnc_SkipLiteralEntities 

Skip "&entity;".

fHtmlEnc_SkipNumericEntities 

Skip "&#NNNN;".

fHtmlEnc_SkipEntities 
fHtmlEnc_CheckPreencoded 

Print warning if some pre-encoded entity found in the string.

Definition at line 3047 of file ncbistr.hpp.

◆ EJsonEncode

Json-encode flags.

Enumerator
eJsonEnc_UTF8 

Encode all characters above 0x80 to \uXXXX form.

https://tools.ietf.org/html/rfc7159#section-8.1

eJsonEnc_Quoted 

Quote resulting string.

Keep all Unicode symbols as is. https://tools.ietf.org/html/rfc7159#section-7

Definition at line 3091 of file ncbistr.hpp.

◆ EMergeDelims

Whether to merge adjacent delimiters.

Used by some methods that don't need full functionality of ESplitFlags.

Enumerator
eMergeDelims 
eNoMergeDelims 

Definition at line 2514 of file ncbistr.hpp.

◆ ENcbiStrings

Enumerator
eNcbiStrings_Stat 
eNcbiStrings_PHID 

Definition at line 54 of file ncbi_strings.h.

◆ ENumToStringFlags

Number to string conversion flags.

NOTE: If specified base in the *ToString() methods is not default 10, that some flags like fWithSign and fWithCommas will be ignored.

Enumerator
fUseLowercase 

Use lowercase letters for string representation for bases above 10.

fWithRadix 

Prefix the output value with radix for "well-known" bases like 8 ("0") and 16 ("0x")

fWithSign 

Prefix the output value with a sign ('+'/'-')

fWithCommas 

Use commas as thousands separator.

fDoubleFixed 

DoubleToString*(): Use n.nnnn format for double conversions.

fDoubleScientific 

DoubleToString*(): Use scientific format for double conversions.

fDoublePosix 

DoubleToString*(): Use C locale for double conversions.

fDoubleGeneral 
fDS_Binary 

UInt8ToString_DataSize(): Use 1024 as a kilobyte factor, not 1000.

fDS_NoDecimalPoint 

UInt8ToString_DataSize(): Do not add a decimal point ("10KB" vs "10.0KB")

fDS_PutSpaceBeforeSuffix 

UInt8ToString_DataSize(): Add space between value and qualifiers, like "10.0 KB".

fDS_ShortSuffix 

UInt8ToString_DataSize(): Use short suffix, like "10.0K".

fDS_PutBSuffixToo 

UInt8ToString_DataSize(): Use "B" suffix for small bytes values.

Definition at line 250 of file ncbistr.hpp.

◆ EOccurrence

Whether it is the first or last occurrence.

Deprecated:
Enumerator
eFirst 

First occurrence.

eLast 

Last occurrence.

Definition at line 1939 of file ncbistr.hpp.

◆ EPrintableMode

How to display printable strings.

Assists in making a printable version of "str".

Enumerator
fNewLine_Quote 

Display "\n" instead of actual linebreak.

eNewLine_Quote 
fNewLine_Passthru 

Break the line at every "\n" occurrence.

eNewLine_Passthru 
fNonAscii_Passthru 

Allow non-ASCII but printable characters.

fNonAscii_Quote 

Octal for all non-ASCII characters.

fPrintable_Full 

Show all octal digits at all times.

Definition at line 2727 of file ncbistr.hpp.

◆ EQuoted

Define that string is quoted or not.

Enumerator
eQuoted 

String is quoted.

eNotQuoted 

String is not quoted.

Definition at line 2987 of file ncbistr.hpp.

◆ ESplitFlags

Flags for Split*() methods.

Note
With quote support enabled, doubling a quote character suppresses its special meaning, as does escaping it if that's enabled too; unescaped trailing backslashes and unbalanced quotes result in exceptions.
All escape symbols, single or double quotes became removed if a corresponding fSplit_Can* flag is used.
Enumerator
fSplit_MergeDelimiters 

Merge adjacent delimiters.

fSplit_Truncate_Begin 

Truncate leading delimiters.

fSplit_Truncate_End 

Truncate trailing delimiters.

fSplit_Truncate 
fSplit_ByPattern 

Require full delimiter strings.

fSplit_CanEscape 

Allow \... escaping.

fSplit_CanSingleQuote 

Allow '...' quoting.

fSplit_CanDoubleQuote 

Allow "..." quoting.

fSplit_CanQuote 
fSplit_Tokenize 

All delimiters are merged and trimmed, to get non-empty tokens only.

Definition at line 2497 of file ncbistr.hpp.

◆ ESqlEncode

SQL encode flags.

Enumerator
eSqlEnc_Plain 

Always produce '...', with no tag.

eSqlEnc_TagNonASCII 

Produce N'...' when input's not pure ASCII.

Definition at line 3166 of file ncbistr.hpp.

◆ ESS_Flags

Flags for Sanitize().

Enumerator
fSS_alpha 

Check on isalpha()

fSS_digit 

Check on isdigit()

fSS_alnum 

Check on isalnum()

fSS_print 

Check on isprint()

fSS_cntrl 

Check on iscntrl()

fSS_punct 

Check on ispunct()

fSS_Reject 

Reject specified characters, allow all other.

Revert default behavior, that allow specified characters and reject all other.

fSS_Remove 

Remove (rather than replace) rejected chars.

fSS_NoMerge 

Do not merge adjacent spaces (rejected chars)

fSS_NoTruncate_Begin 

Do not truncate leading spaces.

fSS_NoTruncate_End 

Do not truncate trailing spaces.

fSS_NoTruncate 

Definition at line 2833 of file ncbistr.hpp.

◆ EStringToNumFlags

String to number conversion flags.

Enumerator
fConvErr_NoThrow 

Do not throw an exception on error.

Could be used with methods throwing an exception by default, ignored otherwise. Just return zero and set errno to non-zero instead of throwing an exception. We recommend the following technique to check against errors with minimum overhead when this flag is used:

if (!retval && errno != 0)
ERROR;

And for StringToDouble*() variants:

if (retval == HUGE_VAL || retval == -HUGE_VAL ||
!retval && errno != 0)
ERROR;
fConvErr_NoErrMessage 

Set errno, but do not set CNcbiError message on error.

fMandatorySign 

Check on mandatory sign. See 'ENumToStringFlags::fWithSign'.

fAllowCommas 

Allow commas. See 'ENumToStringFlags::fWithCommas'.

fAllowLeadingSpaces 

Ignore leading spaces in converted string.

fAllowLeadingSymbols 

Ignore leading non-numeric characters.

fAllowTrailingSpaces 

Ignore trailing space characters.

fAllowTrailingSymbols 

Ignore trailing non-numerics characters.

fDecimalPosix 

StringToDouble*(): For decimal point, use C locale.

fDecimalPosixOrLocal 

StringToDouble*(): For decimal point, try both C and current locale.

fDecimalPosixFinite 

StringToDouble*(): Keep result finite and normalized: if DBL_MAX < result < INF, result becomes DBL_MAX if 0 < result < DBL_MIN, result becomes DBL_MIN.

fDS_ForceBinary 

StringToUInt8_DataSize(): Use 1024 as a kilobyte factor regardless of suffix, like "KB" or "KiB".

fDS_ProhibitFractions 

StringToUInt8_DataSize(): Ignore any fraction part of a value, "1.2K" ~ "1K".

fDS_ProhibitSpaceBeforeSuffix 

StringToUInt8_DataSize(): Do not allow spaces between value and suffix, like "10 K".

Definition at line 269 of file ncbistr.hpp.

◆ EStringType [1/2]

Type of string to be decoded.

Enumerator
eName 
eValue 

Definition at line 4537 of file ncbistr.hpp.

◆ EStringType [2/2]

Type of string to be decoded.

Enumerator
eName 
eValue 

Definition at line 4553 of file ncbistr.hpp.

◆ ETrunc

Which end to truncate a string.

Enumerator
eTrunc_Begin 

Truncate leading spaces only.

eTrunc_End 

Truncate trailing spaces only.

eTrunc_Both 

Truncate spaces at both begin and end of string.

Definition at line 2239 of file ncbistr.hpp.

◆ EUrlDecode

URL decode flags.

Enumerator
eUrlDec_All 

Decode '+' to space.

eUrlDec_Percent 

Decode only XX.

Definition at line 3157 of file ncbistr.hpp.

◆ EUrlEncode

URL-encode flags.

Enumerator
eUrlEnc_SkipMarkChars 

Do not convert chars like '!', '(' etc.

eUrlEnc_ProcessMarkChars 

Convert all non-alphanumeric chars, spaces are converted to '+'.

eUrlEnc_PercentOnly 

Convert all non-alphanumeric chars including space and '' to %## format.

eUrlEnc_Path 

Same as ProcessMarkChars but preserves valid path characters ('/', '.')

eUrlEnc_URIScheme 

Encode scheme part of an URI.

eUrlEnc_URIUserinfo 

Encode userinfo part of an URI.

eUrlEnc_URIHost 

Encode host part of an URI.

eUrlEnc_URIPath 

Encode path part of an URI.

eUrlEnc_URIQueryName 

Encode query part of an URI, arg name.

eUrlEnc_URIQueryValue 

Encode query part of an URI, arg value.

eUrlEnc_URIFragment 

Encode fragment part of an URI.

eUrlEnc_Cookie 

Same as SkipMarkChars with encoded ','.

eUrlEnc_None 

Do not encode.

Definition at line 3141 of file ncbistr.hpp.

◆ EValidate

How to verify character encoding of the source data.

Enumerator
eNoValidate 
eValidate 

Definition at line 3876 of file ncbistr.hpp.

◆ EWrapFlags

How to wrap the words in a string to a new line.

Enumerator
fWrap_Hyphenate 

Add a hyphen when breaking words?

fWrap_HTMLPre 

Wrap as pre-formatted HTML?

fWrap_FlatFile 

Wrap for flat file use.

Definition at line 3227 of file ncbistr.hpp.

◆ EXmlEncode

XML-encode flags.

Enumerator
eXmlEnc_Contents 

Encode predefined entities only.

eXmlEnc_CommentSafe 

Encode double hyphen and ending hyphen, making the result safe to put into XML comments.

eXmlEnc_Unsafe_Skip 

Check each character to conform XML 1.1 standards, skip any not allowed character or throw an CStringException.

https://www.w3.org/TR/xml11/#NT-Char

eXmlEnc_Unsafe_Throw 

Definition at line 3025 of file ncbistr.hpp.

◆ EZeroAtEnd

Enumerator
eNoZeroAtEnd 

For compatibility with older code.

eHasZeroAtEnd 

Definition at line 913 of file tempstr.hpp.

Function Documentation

◆ Add() [1/2]

void CTempStringList::Add ( const CTempString s)
inline

◆ Add() [2/2]

template<size_t num_prealloc, typename TIn , typename TOut >
CTextJoiner< num_prealloc, TIn, TOut > & CTextJoiner< num_prealloc, TIn, TOut >::Add ( const TIn &  s)
inline

◆ Advance() [1/2]

bool CStrTokenizeBase::Advance ( CTempStringList part_collector)
inline

Return TRUE if it found some text and put it into collector.

The collector can have empty strings, even if function returns FALSE.

Note
This method don't honor NStr::fSplit_Truncate_Begin flag, due it's stream nature, so you should process it in the calling code. NStr::fSplit_Truncate_Begin is honored.

Definition at line 156 of file ncbistr_util.hpp.

References NULL.

Referenced by CStringTokenCount::Count(), and CStrTokenize< TStr, TV, TP, TCount, TReserve >::Do().

◆ Advance() [2/2]

bool CStrTokenizeBase::Advance ( CTempStringList part_collector,
SIZE_TYPE ptr_part_start,
SIZE_TYPE ptr_delim_pos 
)

Definition at line 7419 of file ncbistr.cpp.

◆ Allocate()

char * CTempString_Storage::Allocate ( CTempString::size_type  len)

Definition at line 7412 of file ncbistr.cpp.

◆ Append() [1/4]

virtual void NStr::CWrapDestStringList::Append ( const CTempString s)
inlinevirtual

◆ Append() [2/4]

virtual void NStr::IWrapDest::Append ( const CTempString s)
pure virtual

◆ Append() [3/4]

virtual void NStr::CWrapDestStringList::Append ( const string s)
inlinevirtual

Implements NStr::IWrapDest.

Definition at line 3282 of file ncbistr.hpp.

References NStr::CWrapDestStringList::m_list.

◆ Append() [4/4]

virtual void NStr::IWrapDest::Append ( const string s)
pure virtual

◆ AppendAsUTF8() [1/7]

static CStringUTF8& CUtf8::AppendAsUTF8 ( CStringUTF8 dest,
char  ch,
const locale lcl 
)
inlinestatic

Convert non-Unicode character into UTF8 and append it to existing string.

Parameters
destExisting UTF8 string
chCharacter
lclCharacter locale return reference to modified dest string

Definition at line 4058 of file ncbistr.hpp.

References CUtf8::x_Append().

◆ AppendAsUTF8() [2/7]

static CStringUTF8& CUtf8::AppendAsUTF8 ( CStringUTF8 dest,
char  ch,
EEncoding  encoding,
EValidate  validate = eNoValidate 
)
inlinestatic

Convert non-Unicode character into UTF8 and append it to existing string.

Parameters
destExisting UTF8 string
chCharacter
encodingCharacter encoding
validateVerify the character encoding of the source return reference to modified dest string

Definition at line 4039 of file ncbistr.hpp.

References validate(), and CUtf8::x_Append().

◆ AppendAsUTF8() [3/7]

template<typename TChar >
static enable_if< is_integral<TChar>::value && (1 < sizeof(TChar)), CStringUTF8& >::type CUtf8::AppendAsUTF8 ( CStringUTF8 dest,
const basic_string< TChar > &  src 
)
inlinestatic

Convert Unicode C++ string into UTF8 and append it to existing string.

Parameters
destExisting UTF8 string
srcSource Unicode string return reference to modified dest string

Definition at line 3950 of file ncbistr.hpp.

References CUtf8::x_Append().

◆ AppendAsUTF8() [4/7]

static CStringUTF8& CUtf8::AppendAsUTF8 ( CStringUTF8 dest,
const CTempString src,
const locale lcl 
)
inlinestatic

Convert non-Unicode C++ string into UTF8 and append it to existing string.

Parameters
destExisting UTF8 string
srcSource string
lclSource string locale return reference to modified dest string

Definition at line 4019 of file ncbistr.hpp.

References CUtf8::x_Append().

◆ AppendAsUTF8() [5/7]

static CStringUTF8& CUtf8::AppendAsUTF8 ( CStringUTF8 dest,
const CTempString src,
EEncoding  encoding,
EValidate  validate = eNoValidate 
)
inlinestatic

Convert non-Unicode C++ string into UTF8 and append it to existing string.

Parameters
destExisting UTF8 string
srcSource string
encodingCharacter encoding of the source string
validateVerify the character encoding of the source return reference to modified dest string

Definition at line 4000 of file ncbistr.hpp.

References validate(), and CUtf8::x_Append().

◆ AppendAsUTF8() [6/7]

template<typename TChar >
static enable_if< is_integral<TChar>::value && (1 < sizeof(TChar)), CStringUTF8& >::type CUtf8::AppendAsUTF8 ( CStringUTF8 dest,
const TChar src,
SIZE_TYPE  tchar_count = NCBI_NS_STD::string::npos 
)
inlinestatic

Convert Unicode character buffer into UTF8 and append it to existing string.

Parameters
destExisting UTF8 string
srcSource Unicode character buffer
tchar_countNumber of characters in the buffer; If it equals to NPOS, buffer is assumed to be zero-terminated return reference to modified dest string

Definition at line 3968 of file ncbistr.hpp.

References CUtf8::x_Append().

◆ AppendAsUTF8() [7/7]

template<typename TChar >
static enable_if< is_integral<TChar>::value && (1 < sizeof(TChar)), CStringUTF8& >::type CUtf8::AppendAsUTF8 ( CStringUTF8 dest,
TChar  ch 
)
inlinestatic

Convert Unicode symbol into UTF8 and append it to existing string.

Parameters
destExisting UTF8 string
chUnicode symbol return reference to modified dest string

Definition at line 3983 of file ncbistr.hpp.

References CUtf8::x_Append().

◆ AsBasicString() [1/2]

template<typename TChar >
static enable_if< is_integral<TChar>::value && (1 < sizeof(TChar)), basic_string<TChar> >::type CUtf8::AsBasicString ( const CTempString src)
inlinestatic

Definition at line 4115 of file ncbistr.hpp.

References CUtf8::eNoValidate.

◆ AsBasicString() [2/2]

template<typename TChar >
static enable_if< is_integral<TChar>::value && (1 < sizeof(TChar)), basic_string<TChar> >::type CUtf8::AsBasicString ( const CTempString src,
const TChar substitute_on_error,
EValidate  validate = eNoValidate 
)
inlinestatic

Convert UTF8 string into Unicode.

Can throw a CStringException if the conversion is impossible or the string has invalid UTF-8 encoding.

Parameters
srcSource UTF8 string
substitute_on_errorIf the conversion is impossible, append the provided string or, if substitute_on_error equals 0, throw an exception
validateVerify UTF8 character encoding of the source
Attention
Only for TStringUnicode, TStringUCS4, TStringUCS2, wstring types

Definition at line 4108 of file ncbistr.hpp.

References validate(), and CUtf8::x_AsBasicString().

◆ assign() [1/8]

CTempString & CTempString::assign ( const char *  src_str,
size_type  len 
)
inline

◆ assign() [2/8]

CTempStringEx& CTempStringEx::assign ( const char *  str,
size_type  len 
)
inline

Assign new values to the content of the a string.

Definition at line 970 of file tempstr.hpp.

References CTempString::assign(), CTempStringEx::eNoZeroAtEnd, len, CTempStringEx::m_ZeroAtEnd, and str().

Referenced by CWigBufferedLineReader::operator++(), and CStrTokenizeBase::SetDelim().

◆ assign() [3/8]

CTempStringEx& CTempStringEx::assign ( const char *  str,
size_type  len,
EZeroAtEnd  zero_at_end 
)
inline

Definition at line 976 of file tempstr.hpp.

References CTempString::assign(), len, CTempStringEx::m_ZeroAtEnd, and str().

◆ assign() [4/8]

CTempStringEx& CTempStringEx::assign ( const CTempString str)
inline

◆ assign() [5/8]

CTempString & CTempString::assign ( const CTempString  src_str)
inline

◆ assign() [6/8]

CTempString & CTempString::assign ( const CTempString  src_str,
size_type  pos,
size_type  len 
)
inline

◆ assign() [7/8]

CTempStringEx& CTempStringEx::assign ( const CTempString  str,
size_type  pos,
size_type  count 
)
inline

◆ assign() [8/8]

CTempStringEx& CTempStringEx::assign ( const CTempStringEx str)
inline

Definition at line 989 of file tempstr.hpp.

References str().

◆ AsSingleByteString() [1/2]

string CUtf8::AsSingleByteString ( const CTempString src,
const locale lcl,
const char *  substitute_on_error = 0,
EValidate  validate = eNoValidate 
)
static

Definition at line 7000 of file ncbistr.cpp.

◆ AsSingleByteString() [2/2]

string CUtf8::AsSingleByteString ( const CTempString src,
EEncoding  encoding,
const char *  substitute_on_error = 0,
EValidate  validate = eNoValidate 
)
static

Convert UTF8 string into a single-byte character representation.

Can throw a CStringException if the conversion is impossible or the string has invalid UTF-8 encoding.

Parameters
srcSource UTF8 string
encodingEncoding of the result
substitute_on_errorIf the conversion is impossible, append the provided string or, if substitute_on_error equals 0, throw an exception
validateVerify UTF8 character encoding of the source
Returns
C++ string

Definition at line 6983 of file ncbistr.cpp.

Referenced by CField_type::GetDBLinkFieldFromUserObject(), CObjectIStreamXml::ReadString(), CSplitDblinkQuals::x_ConvertStrsToStrs(), x_MakeTSqlString(), CSplitDblinkQuals::x_SplitQuals(), and CWString::x_UTF8ToString().

◆ AStrEquiv()

template<class Arg1 , class Arg2 , class Pred >
bool AStrEquiv ( const Arg1 &  x,
const Arg2 &  y,
Pred  pr 
)
inline

◆ AsUTF8() [1/4]

template<typename TChar >
static enable_if< is_integral<TChar>::value && (1 < sizeof(TChar)), CStringUTF8>::type CUtf8::AsUTF8 ( const basic_string< TChar > &  src)
inlinestatic

Convert into UTF8 from a Unicode C++ string.

Parameters
srcSource string
Attention
Only for TStringUnicode, TStringUCS4, TStringUCS2, wstring types

Definition at line 3919 of file ncbistr.hpp.

References CUtf8::x_Append().

◆ AsUTF8() [2/4]

static CStringUTF8 CUtf8::AsUTF8 ( const CTempString src,
const locale lcl 
)
inlinestatic

Convert into UTF8 from a C/C++ string.

Parameters
srcSource string
lclString locale

Definition at line 3904 of file ncbistr.hpp.

References CUtf8::x_Append().

◆ AsUTF8() [3/4]

static CStringUTF8 CUtf8::AsUTF8 ( const CTempString src,
EEncoding  encoding,
EValidate  validate = eNoValidate 
)
inlinestatic

Convert into UTF8 from a C/C++ string.

Parameters
srcSource string
encodingCharacter encoding of the source string
validateVerify the character encoding of the source

Definition at line 3889 of file ncbistr.hpp.

References validate(), and CUtf8::x_Append().

Referenced by CReadUtil::AddGeneOntologyTerm(), CSplignFormatter::AsSeqAlignSet(), CTL_Cmd::AssignCmdParam(), pythonpp::CString::AsStdSring(), CStringDataType::CreateDefault(), CDbapiSimpleApp::DemoDynamicSql(), CSdbapiSimpleApp::DemoDynamicSql(), CSubSource::FixLatLonFormat(), CSQLITE_Statement::GetColumnName(), CODBC_Connection::GetDriverName(), CLastErrorAdapt::GetErrCodeString(), CHTMLHelper::HTMLDecode(), operator+(), CArgDesc::PrintXml(), CObjectIStreamAsn::ReadAnyContentObject(), CObjectIStreamJson::ReadAnyContentObject(), CObjectIStreamXml::ReadAnyContentObject(), CObjectIStreamJson::ReadEncodedChar(), ReadIntoUtf8(), CObjectIStreamXml::ReadString(), CCleanup::s_CleanupStructuredComment(), s_ConvertValue(), s_SetContainerData(), s_SetPrimitiveData(), s_WriteXmlLine(), pythonpp::bind::CString::SetInternal(), CSerialObject::UnassignedStringUTF8(), utf8_to_string(), CObjectOStreamJson::WriteEncodedChar(), CObjectOStreamXml::WriteEncodedChar(), CDB_Stream::x_Append(), CSourceModParser::x_ApplyTPAMods(), CSplitDblinkQuals::x_ConvertStrToStrs(), CStatementBase::x_GetData(), CUtf8::x_GetValidSymbolCount(), CWString::x_MakeString(), x_MakeTSqlString(), CWString::x_MakeUTF8String(), CObjectIStreamXml::x_ReadEncodedChar(), CFeaturePanel::x_SaveSettings(), CDescrModApply::x_SetTpaAssembly(), and CWString::x_StringToUTF8().

◆ AsUTF8() [4/4]

template<typename TChar >
static enable_if< is_integral<TChar>::value && (1 < sizeof(TChar)), CStringUTF8>::type CUtf8::AsUTF8 ( const TChar src,
SIZE_TYPE  tchar_count = NCBI_NS_STD::string::npos 
)
inlinestatic

Convert into UTF8 from a Unicode character buffer.

Parameters
srcSource character buffer
tchar_countNumber of characters in the buffer; If it equals to NPOS, buffer is assumed to be zero-terminated

Definition at line 3934 of file ncbistr.hpp.

References CUtf8::x_Append().

◆ AtEnd()

bool CStrTokenizeBase::AtEnd ( void  ) const
inline

◆ Base64Decode()

string NStr::Base64Decode ( const CTempString  str)
static

Base64-decode string.

Parameters
strThe string to decode.
Returns
Encoded string, or empty line on encoding error.
See also
Base64Encode, BASE64_Encode, BASE64_Deccode

Definition at line 6286 of file ncbistr.cpp.

Referenced by CPSG_NamedAnnotInfo::GetId2AnnotInfoList(), and SDataOnlyCopy::Process().

◆ Base64Encode()

string NStr::Base64Encode ( const CTempString  str,
size_t  line_len = 0 
)
static

Base64-encode string.

Parameters
strThe string to encode.
line_lenSpecify a length for Base64-encoded lines. Default 0 mean no line breaks at all.
Returns
Encoded string.
See also
Base64Decode, BASE64_Encode, BASE64_Deccode

Definition at line 6270 of file ncbistr.cpp.

Referenced by CJsonResponse::Fill(), CPSGS_OSGAnnot::SendReplies(), ToJsonString(), CPSGS_CDDProcessor::x_SendAnnotInfo(), and CPSGS_SNPProcessor::x_SendAnnotInfo().

◆ begin()

CTempString::const_iterator CTempString::begin ( void  ) const
inline

◆ BoolToString()

const string NStr::BoolToString ( bool  value)
static

Convert bool to string.

Parameters
valueBoolean value to be converted.
Returns
One of: 'true, 'false'
Note
Don't change errno.

Definition at line 2815 of file ncbistr.cpp.

Referenced by CReportParams::Add(), CPluginArgSet::AddDefaultFlag(), BOOST_AUTO_TEST_CASE(), CNcbiApplogApp::Cmd_Health(), SQueueParameters::ConfigSection(), CRegistryReadView::DumpAll(), CMacroAdvStringConstraintPanel< T >::GetFuncWithArgs(), CGuiObjectInfoSeq_align::GetLinks(), CQueueParamAccessor::GetParamValue(), SQueueParameters::GetPrintableParameters(), CGeneModelFactory::GetSettings(), CVariant::GetString(), CMacroAdvStringConstraintPanel< T >::GetTextConstraint(), NMItemData::GetUpdatemRNAVar(), CAddAssemblyGapsNTreeItemData::GetVariables(), CAddGapsNTreeItemData::GetVariables(), CParseQualTreeItemData::GetVariables(), CRmvOutsideQualTreeItemData::GetVariables(), CApplyTableItemData::GetVariables(), CMacroInterpreter::InterpretDoFunctions(), CDebugDumpContext::Log(), impl::CDriverContext::MakeConnection(), value_slice::CValueConvert< CP, bool >::operator string(), CDoQueryTreeGetArgs::operator()(), CWhereQueryTreeGetArgs::operator()(), CQueryTreePrintFunc::operator()(), CDiagContext_Extra::Print(), CArgDesc_Flag::ProcessArgument(), CArgDesc_Flag::ProcessDefault(), CSGQueryNodeValue::PromoteTo(), CSampleBasicApplication::Run(), s_ConvertValue(), s_ScanRecursive(), CGeneModelConfig::SaveSettingsAsString(), SNSAlertAttributes::Serialize(), CMbIndexArgs::SetArgumentDescriptions(), CPluginValue::SetBoolean(), CMacroRep::SetFunctionParameterAsBool(), IRWRegistry::SetValue(), IMacroActionItemData::TransferDataToPanel(), CParamParser< TDescription, TParam >::ValueToString(), CNCServer::WriteAppSetup(), CJob::x_AppendNeedListenerProgressMsgNotif(), CJob::x_AppendNeedStolenNotif(), CJob::x_AppendNeedSubmitProgressMsgNotif(), CMacroInterpreter::x_ApplyUnverifiedValidateArgs(), CMacroInterpreter::x_ConvertFeatQualValidateArgs(), CMacroInterpreter::x_ConvertRNARelQualValidateArgs(), CMacroInterpreter::x_ConvertStringQualValidateArgs(), CNCMessageHandler::x_DoCmd_Version(), CMacroInterpreter::x_EditRelFeatQualValidateArgs(), CMacroInterpreter::x_EditStringQualValidateArgs(), CMacroInterpreter::x_EditSubfieldValidateArgs(), CSDB_ConnectionParam::x_FillBoolParam(), CMacroPanelLoader::x_GetCheckboxSelection(), CMacroPanelLoader::x_GetRadiobuttonSelection(), CNetScheduleHandler::x_GetServerSection(), IOperateOnTwoQuals::x_GetSourceString(), CTableReaderMacro::x_GetVariables(), CAssignQueryTreeGetArgs::x_ProcessFunction(), CWhereQueryTreeGetArgs::x_ProcessFunction(), CNetScheduleHandler::x_ProcessReading(), CEpigenomicsTrack::x_SaveSettings(), CGraphOverlay::x_SaveSettings(), CGraphTrack::x_SaveSettings(), CSequenceTrack::x_SaveSettings(), CAlignmentTrack::x_SaveSettings(), CSixFramesTransTrack::x_SaveSettings(), CMacroInterpreter::x_StoreParsingArguments(), and CAttribTableColumnIdPanel::x_TableReaderMacro().

◆ CEncode()

string NStr::CEncode ( const CTempString  str,
EQuoted  quoted = eQuoted 
)
static

Encode a string for C/C++.

Parameters
strThe string to be parsed.
quotedDefine, to
See also
CParse, PrintableString

Definition at line 3967 of file ncbistr.cpp.

Referenced by CEndpointKey::CEndpointKey(), s_EncodeMetadataValue(), and CTL_LangCmd::x_GetDynamicID().

◆ CEncodedString() [1/2]

CEncodedString::CEncodedString ( const CTempString  s,
NStr::EUrlEncode  flag = NStr::eUrlEnc_SkipMarkChars 
)

Definition at line 7300 of file ncbistr.cpp.

◆ CEncodedString() [2/2]

CEncodedString::CEncodedString ( void  )
inline

Definition at line 4825 of file ncbistr.hpp.

◆ CharToSymbol() [1/2]

TUnicodeSymbol CUtf8::CharToSymbol ( char  ch,
const locale lcl 
)
static

Convert encoded character into Unicode.

Parameters
chEncoded character
lclCharacter locale
Returns
Unicode code point (symbol)

Definition at line 6935 of file ncbistr.cpp.

◆ CharToSymbol() [2/2]

TUnicodeSymbol CUtf8::CharToSymbol ( char  ch,
EEncoding  encoding 
)
static

Convert encoded character into Unicode.

Parameters
chEncoded character
encodingCharacter encoding
Returns
Unicode code point (symbol)

Definition at line 6839 of file ncbistr.cpp.

Referenced by CObjectIStreamJson::ReadEncodedChar(), s_SetPrimitiveData(), CObjectOStreamXml::WriteEncodedChar(), and CObjectIStreamXml::x_ReadEncodedChar().

◆ Clear()

void CTempStringList::Clear ( void  )
inline

◆ clear() [1/2]

void CTempString::clear ( void  )
inline

◆ clear() [2/2]

void CTempStringEx::clear ( void  )
inline

◆ CommonOverlapSize()

SIZE_TYPE NStr::CommonOverlapSize ( const CTempString  s1,
const CTempString  s2 
)
static

Determine if the suffix of one string is the prefix of another.

Parameters
s1String to be compared – operand 1.
s2String to be compared – operand 2.
Returns
The number of characters common to the end of the first string and the start of the second string.

Definition at line 3101 of file ncbistr.cpp.

◆ CommonPrefixSize()

SIZE_TYPE NStr::CommonPrefixSize ( const CTempString  s1,
const CTempString  s2 
)
inlinestatic

Determine the common prefix of two strings.

Parameters
s1String to be compared – operand 1.
s2String to be compared – operand 2.
Returns
The number of characters common to the start of each string.
Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 5450 of file ncbistr.hpp.

References i, CTempString::length(), min(), and n.

Referenced by CDiff::Diff(), CCreateGeneModelTask::x_AssignIDsAndUpdateGenes(), CDiffList::x_CleanupAndMerge_Equities(), and CDiff::x_DiffHalfMatchI().

◆ CommonSuffixSize()

SIZE_TYPE NStr::CommonSuffixSize ( const CTempString  s1,
const CTempString  s2 
)
inlinestatic

Determine the common suffix of two strings.

Parameters
s1String to be compared – operand 1.
s2String to be compared – operand 2.
Returns
The number of characters common to the end of each string.
Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 5462 of file ncbistr.hpp.

References i, CTempString::length(), min(), and n.

Referenced by CDiff::Diff(), GetExtraAccession(), CDiffList::x_CleanupAndMerge_Equities(), and CDiff::x_DiffHalfMatchI().

◆ Compare() [1/15]

template<typename _TChar >
static int XStr::Compare ( const _TChar *  s1,
const _TChar *  s2,
ECase  use_case = eCase 
)
inlinestatic

Definition at line 375 of file ncbi_xstr.hpp.

References XStr::CompareCase(), XStr::CompareNocase(), and XStr::eCase.

◆ Compare() [2/15]

template<typename _TChar >
static int XStr::Compare ( const _TChar *  s1,
const basic_string< _TChar > &  s2,
ECase  use_case = eCase 
)
inlinestatic

Definition at line 387 of file ncbi_xstr.hpp.

References XStr::CompareCase(), XStr::CompareNocase(), and XStr::eCase.

◆ Compare() [3/15]

template<typename _TChar >
static int XStr::Compare ( const _TChar *  str,
SIZE_TYPE  pos,
SIZE_TYPE  n,
const _TChar *  pattern,
ECase  use_case = eCase 
)
inlinestatic

Definition at line 290 of file ncbi_xstr.hpp.

References XStr::CompareCase(), XStr::CompareNocase(), XStr::eCase, n, and str().

◆ Compare() [4/15]

template<typename _TChar >
static int XStr::Compare ( const _TChar *  str,
SIZE_TYPE  pos,
SIZE_TYPE  n,
const basic_string< _TChar > &  pattern,
ECase  use_case = eCase 
)
inlinestatic

Definition at line 303 of file ncbi_xstr.hpp.

References XStr::CompareCase(), XStr::CompareNocase(), XStr::eCase, n, and str().

◆ Compare() [5/15]

template<typename _TChar >
static int XStr::Compare ( const basic_string< _TChar > &  s1,
const _TChar *  s2,
ECase  use_case = eCase 
)
inlinestatic

Definition at line 369 of file ncbi_xstr.hpp.

References XStr::CompareCase(), XStr::CompareNocase(), and XStr::eCase.

◆ Compare() [6/15]

template<typename _TChar >
static int XStr::Compare ( const basic_string< _TChar > &  s1,
const basic_string< _TChar > &  s2,
ECase  use_case = eCase 
)
inlinestatic

Definition at line 381 of file ncbi_xstr.hpp.

References XStr::CompareCase(), XStr::CompareNocase(), and XStr::eCase.

◆ Compare() [7/15]

template<typename _TChar >
static int XStr::Compare ( const basic_string< _TChar > &  str,
SIZE_TYPE  pos,
SIZE_TYPE  n,
const _TChar *  pattern,
ECase  use_case = eCase 
)
inlinestatic

Definition at line 284 of file ncbi_xstr.hpp.

References XStr::CompareCase(), XStr::CompareNocase(), XStr::eCase, n, and str().

◆ Compare() [8/15]

template<typename _TChar >
static int XStr::Compare ( const basic_string< _TChar > &  str,
SIZE_TYPE  pos,
SIZE_TYPE  n,
const basic_string< _TChar > &  pattern,
ECase  use_case = eCase 
)
inlinestatic

Definition at line 297 of file ncbi_xstr.hpp.

References XStr::CompareCase(), XStr::CompareNocase(), XStr::eCase, n, and str().

◆ Compare() [9/15]

int NStr::Compare ( const char *  s1,
const char *  s2,
ECase  use_case = eCase 
)
inlinestatic

Compare two strings – char* version.

Parameters
s1String to be compared – operand 1.
s2String to be compared – operand 2.
use_caseWhether to do a case sensitive compare(default is eCase), or a case-insensitive compare (eNocase).
Returns
  • 0, if s1 == s2.
  • Negative integer, if s1 < s2.
  • Positive integer, if s1 > s2.
See also
Other forms of overloaded Compare() with differences in argument types: char* vs. CTempString[Ex]

Definition at line 5313 of file ncbistr.hpp.

References NStr::CompareCase(), NStr::CompareNocase(), and NStr::eCase.

◆ Compare() [10/15]

int NStr::Compare ( const CTempString  s1,
SIZE_TYPE  pos,
SIZE_TYPE  n,
const char *  s2,
ECase  use_case = eCase 
)
inlinestatic

Compare of a substring with another string.

Parameters
s1String containing the substring to be compared.
posStart position of substring to be compared.
nNumber of characters in substring to be compared.
s2String (char*) to be compared with substring.
use_caseWhether to do a case sensitive compare(eCase – default), or a case-insensitive compare (eNocase).
Returns
  • 0, if s1[pos:pos+n) == s2;
  • Negative integer, if s1[pos:pos+n) < s2;
  • Positive integer, if s1[pos:pos+n) > s2.
See also
Other forms of overloaded Compare() with differences in argument types: char* vs. CTempString[Ex]
Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 5297 of file ncbistr.hpp.

References NStr::CompareCase(), NStr::CompareNocase(), NStr::eCase, n, and CTempString::substr().

Referenced by CAutoDefSourceDescription::Compare(), CTraversalNode::CUserCall::Compare(), CSUCLine::Compare(), PCase_Generic< T >::Compare(), PNocase_Generic< T >::Compare(), PNocase_Conditional_Generic< T >::Compare(), CTable2AsnContext::CopyFeatureIdsToComments(), CDirEntry::CreateRelativePath(), CSGQueryFunctionCompare::Evaluate(), CQueryFuncPromoteEq::Evaluate(), CQueryFuncPromoteIn::Evaluate(), CQueryFuncPromoteGtLt::Evaluate(), CQueryFuncPromoteBetween::Evaluate(), CDllResolver::FindCandidates(), impl::g_SubstituteParam(), CResultSet::GetColNum(), GetFieldDiffsFromNameValLists(), impl::CDBConnParamsBase::GetProtocolVersion(), CLatLonCountryMap::IsCountryInLatLon(), CFeatComparatorByLabel::Less(), CSpectrumSet::LoadMultDTA(), CAttribTableColumnIdPanel::OnMatchColumnClick(), CTraversalNode::SRefNodeCallLessthan::operator()(), IsStandard::operator()(), SChildLess::operator()(), CBDB_Cache::CacheKey::operator<(), operator<(), CQueryFuncPromoteBase::PreProcess(), s_CompareDescriptions(), s_CompareStructuredCommentFields(), s_FieldRuleCompare(), s_iCompareNameVals(), s_IsCDDFeat(), CConnTest::ServiceOkay(), CConnTest::x_GetFirewallConfiguration(), x_LeuCUGstart(), CSingleFeatValidator::x_ValidateGeneXRef(), CGeneValidator::x_ValidateOperon(), ASNParser::x_Value(), and CReaderBase::xSetBrowserRegion().

◆ Compare() [11/15]

int NStr::Compare ( const CTempString  s1,
SIZE_TYPE  pos,
SIZE_TYPE  n,
const CTempString  s2,
ECase  use_case = eCase 
)
inlinestatic

Compare of a substring with another string.

Parameters
s1String containing the substring to be compared.
posStart position of substring to be compared.
nNumber of characters in substring to be compared.
s2String to be compared with substring.
use_caseWhether to do a case sensitive compare(default is eCase), or a case-insensitive compare (eNocase).
Returns
  • 0, if s1[pos:pos+n) == s2;
  • Negative integer, if s1pos:pos+n) < s2;
  • Positive integer, if s1[pos:pos+n) > s2.
See also
Other forms of overloaded Compare() with differences in argument types: char* vs. CTempString[Ex]

Definition at line 5305 of file ncbistr.hpp.

References NStr::CompareCase(), NStr::CompareNocase(), NStr::eCase, n, and CTempString::substr().

◆ compare()

int CTempString::compare ( const CTempString  str) const
inline

Compare the current string with a given string.

Definition at line 806 of file tempstr.hpp.

References CTempString::data(), CTempString::length(), min(), and str().

Referenced by CStructuredCommentsReader::_AddStructuredComment(), CTempString::operator<(), and CTempString::operator>().

◆ Compare() [12/15]

int NStr::Compare ( const CTempStringEx  s1,
const CTempStringEx  s2,
ECase  use_case = eCase 
)
inlinestatic

Compare two strings – CTempStringEx version.

Parameters
s1String to be compared – operand 1.
s2String to be compared – operand 2.
use_caseWhether to do a case sensitive compare(default is eCase), or a case-insensitive compare (eNocase).
Returns
  • 0, if s1 == s2;
  • Negative integer, if s1 < s2;
  • Positive integer, if s1 > s2.
See also
Other forms of overloaded Compare() with differences in argument types: char* vs. CTempString[Ex]

Definition at line 5319 of file ncbistr.hpp.

References NStr::CompareCase(), NStr::CompareNocase(), and NStr::eCase.

◆ Compare() [13/15]

template<typename T >
int PCase_Generic< T >::Compare ( const T s1,
const T s2 
) const
inline

Return difference between "s1" and "s2".

Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 5784 of file ncbistr.hpp.

References NStr::Compare(), and NStr::eCase.

◆ Compare() [14/15]

template<typename T >
int PNocase_Generic< T >::Compare ( const T s1,
const T s2 
) const
inline

Return difference between "s1" and "s2".

Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 5819 of file ncbistr.hpp.

References NStr::Compare(), and NStr::eNocase.

Referenced by CDbtag::Compare(), CObject_id::Compare(), and CHttpCookie::sx_Compare().

◆ Compare() [15/15]

template<typename T >
int PNocase_Conditional_Generic< T >::Compare ( const T s1,
const T s2 
) const
inline

Return difference between "s1" and "s2".

Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 5857 of file ncbistr.hpp.

References NStr::Compare().

◆ CompareCase() [1/11]

template<typename _TChar >
static int XStr::CompareCase ( const _TChar *  s1,
const _TChar *  s2 
)
inlinestatic

Definition at line 339 of file ncbi_xstr.hpp.

References XStr::strcmp().

◆ CompareCase() [2/11]

template<typename _TChar >
static int XStr::CompareCase ( const _TChar *  str,
SIZE_TYPE  pos,
SIZE_TYPE  n,
const _TChar *  pattern 
)
inlinestatic

Definition at line 236 of file ncbi_xstr.hpp.

References n, and str().

◆ CompareCase() [3/11]

template<typename _TChar >
static int XStr::CompareCase ( const _TChar *  str,
SIZE_TYPE  pos,
SIZE_TYPE  n,
const basic_string< _TChar > &  pattern 
)
inlinestatic

Definition at line 249 of file ncbi_xstr.hpp.

References n, and str().

◆ CompareCase() [4/11]

template<typename _TChar >
static int XStr::CompareCase ( const basic_string< _TChar > &  s1,
const basic_string< _TChar > &  s2 
)
inlinestatic

Definition at line 345 of file ncbi_xstr.hpp.

References XStr::strcmp().

◆ CompareCase() [5/11]

template<typename _TChar >
static int XStr::CompareCase ( const basic_string< _TChar > &  str,
SIZE_TYPE  pos,
SIZE_TYPE  n,
const _TChar *  pattern 
)
inlinestatic

Definition at line 230 of file ncbi_xstr.hpp.

References n, and str().

Referenced by XStr::Compare().

◆ CompareCase() [6/11]

template<typename _TChar >
static int XStr::CompareCase ( const basic_string< _TChar > &  str,
SIZE_TYPE  pos,
SIZE_TYPE  n,
const basic_string< _TChar > &  pattern 
)
inlinestatic

Definition at line 243 of file ncbi_xstr.hpp.

References n, and str().

◆ CompareCase() [7/11]

int NStr::CompareCase ( const char *  s1,
const char *  s2 
)
inlinestatic

Case-sensitive compare of two strings – char* version.

Parameters
s1String to be compared – operand 1.
s2String to be compared – operand 2.
Returns
  • 0, if s1 == s2;
  • Negative integer, if s1 < s2;
  • Positive integer, if s1 > s2.
See also
CompareNocase(), Compare() versions with same argument types.

Definition at line 5285 of file ncbistr.hpp.

References NStr::strcmp().

◆ CompareCase() [8/11]

int NStr::CompareCase ( const CTempString  s1,
SIZE_TYPE  pos,
SIZE_TYPE  n,
const char *  s2 
)
static

Case-sensitive compare of a substring with another string.

Parameters
s1String containing the substring to be compared.
posStart position of substring to be compared.
nNumber of characters in substring to be compared.
s2String (char*) to be compared with substring.
Returns
  • 0, if s1[pos:pos+n) == s2;
  • Negative integer, if s1[pos:pos+n) < s2;
  • Positive integer, if s1[pos:pos+n) > s2.
See also
Other forms of overloaded CompareCase() with differences in argument types: char* vs. CTempString[Ex]
Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 135 of file ncbistr.cpp.

References CTempString::data(), CTempString::length(), n, and NPOS.

Referenced by BinOpsFuncString(), SNetScheduleNotificationThread::CheckNotification(), CBiosampleFieldDiff::Compare(), NStr::Compare(), CBiosampleFieldDiff::CompareAllButSequenceID(), SMakeProjectT::Create3PartyLibs(), CSDBAPI::Init(), CNcbiTestApplication::InitTestFramework(), s_ByAccVerLen::operator()(), CConvertCache::SCacheKeySort::operator()(), SCompareDirEntries::operator()(), TSortCit::operator()(), CUniSequenceDataType::PrintXMLSchema(), PromoteIfDifferent(), s_PcrPrimerCompare(), s_SeqDescCompare(), CStringOrBlobStorageReader::x_GetDataType(), CRegexpTemplateTester::x_ParseVar(), CBioseqContext::x_SetId(), and CSortedProteins::x_SortProteinNames().

◆ CompareCase() [9/11]

int NStr::CompareCase ( const CTempString  s1,
SIZE_TYPE  pos,
SIZE_TYPE  n,
const CTempString  s2 
)
static

Case-sensitive compare of a substring with another string.

Parameters
s1String containing the substring to be compared.
posStart position of substring to be compared.
nNumber of characters in substring to be compared.
s2String to be compared with substring.
Returns
  • 0, if s1[pos:pos+n) == s2;
  • Negative integer, if s1[pos:pos+n) < s2;
  • Positive integer, if s1[pos:pos+n) > s2.
See also
Other forms of overloaded CompareCase() with differences in argument types: char* vs. CTempString[Ex]

Definition at line 158 of file ncbistr.cpp.

References CTempString::data(), CTempString::empty(), CTempString::length(), n, and NPOS.

◆ CompareCase() [10/11]

int NStr::CompareCase ( const CTempStringEx  s1,
const CTempStringEx  s2 
)
static

Case-sensitive compare of two strings – CTempStringEx version.

Parameters
s1String to be compared – operand 1.
s2String to be compared – operand 2.
Returns
  • 0, if s1 == s2;
  • Negative integer, if s1 < s2;
  • Positive integer, if s1 > s2.
See also
CompareNocase(), Compare() versions with same argument types.

Definition at line 118 of file ncbistr.cpp.

References CTempString::data(), CTempString::length(), and min().

◆ CompareCase() [11/11]

template<typename _TChar >
int CTempXStr< _TChar >::CompareCase ( const CTempXStr< _TChar > &  pattern) const
inline

◆ CompareNocase() [1/11]

template<typename _TChar >
static int XStr::CompareNocase ( const _TChar *  s1,
const _TChar *  s2 
)
inlinestatic

Definition at line 354 of file ncbi_xstr.hpp.

References XStr::strcasecmp().

◆ CompareNocase() [2/11]

template<typename _TChar >
static int XStr::CompareNocase ( const _TChar *  str,
SIZE_TYPE  pos,
SIZE_TYPE  n,
const _TChar *  pattern 
)
inlinestatic

Definition at line 263 of file ncbi_xstr.hpp.

References CTempXStr< _TChar >::CompareNocase(), n, and str().

◆ CompareNocase() [3/11]

template<typename _TChar >
static int XStr::CompareNocase ( const _TChar *  str,
SIZE_TYPE  pos,
SIZE_TYPE  n,
const basic_string< _TChar > &  pattern 
)
inlinestatic

Definition at line 276 of file ncbi_xstr.hpp.

References CTempXStr< _TChar >::CompareNocase(), n, and str().

◆ CompareNocase() [4/11]

template<typename _TChar >
static int XStr::CompareNocase ( const basic_string< _TChar > &  s1,
const basic_string< _TChar > &  s2 
)
inlinestatic

Definition at line 360 of file ncbi_xstr.hpp.

References XStr::strcasecmp().

◆ CompareNocase() [5/11]

template<typename _TChar >
static int XStr::CompareNocase ( const basic_string< _TChar > &  str,
SIZE_TYPE  pos,
SIZE_TYPE  n,
const _TChar *  pattern 
)
inlinestatic

Definition at line 257 of file ncbi_xstr.hpp.

References CTempXStr< _TChar >::CompareNocase(), n, and str().

Referenced by XStr::Compare().

◆ CompareNocase() [6/11]

template<typename _TChar >
static int XStr::CompareNocase ( const basic_string< _TChar > &  str,
SIZE_TYPE  pos,
SIZE_TYPE  n,
const basic_string< _TChar > &  pattern 
)
inlinestatic

Definition at line 270 of file ncbi_xstr.hpp.

References CTempXStr< _TChar >::CompareNocase(), n, and str().

◆ CompareNocase() [7/11]

int NStr::CompareNocase ( const char *  s1,
const char *  s2 
)
inlinestatic

Case-insensitive compare of two strings – char* version.

Parameters
s1String to be compared – operand 1.
s2String to be compared – operand 2.
Returns
  • 0, if s1 == s2 (case-insensitive compare);
  • Negative integer, if s1 < s2 (case-insensitive compare);
  • Positive integer, if s1 > s2 (case-insensitive compare).
See also
CompareCase(), Compare() versions with same argument types.

Definition at line 5291 of file ncbistr.hpp.

References NStr::strcasecmp().

◆ CompareNocase() [8/11]

int NStr::CompareNocase ( const CTempString  s1,
SIZE_TYPE  pos,
SIZE_TYPE  n,
const char *  s2 
)
static

Case-insensitive compare of a substring with another string.

Parameters
s1String containing the substring to be compared.
posStart position of substring to be compared.
nNumber of characters in substring to be compared.
s2String (char*) to be compared with substring.
Returns
  • 0, if s1[pos:pos+n) == s2 (case-insensitive compare);
  • Negative integer, if s1[pos:pos+n) < s2 (case-insensitive compare);
  • Positive integer, if s1[pos:pos+n) > s2 (case-insensitive compare).
See also
Other forms of overloaded CompareNocase() with differences in argument types: char* vs. CTempString[Ex]
Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 219 of file ncbistr.cpp.

References CTempString::data(), CTempString::length(), n, NPOS, and tolower().

Referenced by CMsvcPrjProjectContext::AdditionalIncludeDirectories(), CQueryParsePanel::AddQueryText(), BinOpsFuncString(), BOOST_AUTO_TEST_CASE(), WSDLParser::BuildDataTree(), CPSGS_DummyProcessor::CanProcess(), CheckContigEverywhere(), CheckDelGbblockSourceFromDescrs(), CheckDivCode(), CRtProfiler::CheckDoReport(), CheckEmblContigEverywhere(), SInputValidator::CheckEntry(), CheckFocusInOrgs(), CheckForENV(), CheckForUnusualFullLengthOrgs(), CheckGBBlock(), CheckNeedSYNFocus(), CheckSourceFeatLocAccs(), CheckSourceOverlap(), subfuse::CmpEntry(), CSeq_id::Compare(), CSeqsRange::Compare(), NStr::Compare(), CBDB_FieldStringCase::Compare(), CBiosampleFieldDiff::CompareAllButSequenceID(), CompareDescrFeatSources(), CSeq_feat::CompareNonLocation(), CSeq_id_General_Id_Info::CompareOrdered(), CSeqTextPaneConfig::ConfigStringToFeatureDisplayType(), CDBUniversalMapper::ConfigureFromRegistry(), CICacheCF< CNetICacheClient >::ConfigureICache(), CICacheCF< CNetICacheClient >::ConfigureTimeStamp(), CConfig::ConvertRegToTree(), COperationTiming::COperationTiming(), CBlastDb_DataLoaderCF::CreateAndRegister(), CRmtBlastDb_DataLoaderCF::CreateAndRegister(), CSQLITE3_BlobCacheCF::CreateInstance(), CreateRawBioSources(), CBlastFormatUtil::CreateSeqAnnotFromSeqAlignSet(), CBlastOptionsFactory::CreateTask(), CVarTrackFactory::CreateTracks(), CRemoteAppLauncher::CRemoteAppLauncher(), CTime::DayOfWeekNameToNum(), DbxrefQualToDbtag(), SLibProjectT::DoCreate(), EnabledDelayBuffers(), EndAdded(), NStr::EqualNocase(), CQueryFuncPromoteEq::Evaluate(), CQueryFuncPromoteIn::Evaluate(), fix_pub::ExtractConsortiums(), CCompressedFile::FileExists(), fill_orgref(), fix_taxname_dot(), FixUSAAbbreviationInAffil(), fta_check_evidence(), fta_check_exception(), fta_check_old_locus_tags(), fta_cmp_gene_refs(), fta_cmp_gene_syns(), fta_cmp_locusyn(), fta_fix_tpa_keywords(), fta_get_aa_from_string(), fta_if_special_org(), fta_sort_quals(), GBQualSplit(), CCodeGenerator::GenerateCvsignore(), CCodeGenerator::GenerateFileList(), CRemoteAppTimeoutReporter::Get(), CUser_object::GetCategory(), GetCharsetEncodingForm(), CAlignFormatUtil::GetDbType(), SNetStorage::SConfig::GetDefaultStorage(), GetDRlineDataSP(), SNetStorage::SConfig::GetErrMode(), CUser_object::GetExperimentType(), CTreeQueryExec::GetFeatureIdNoCase(), CBDB_BufferManager::GetFieldIndex(), GetFlatBiomol(), CDataLoaderFactory::GetIsDefault(), CCgiApplication::GetLogOpt(), CSpectrumSet::GetMGFBlock(), SCombinedNetStorageConfig::GetMode(), GetProteinWeights(), CGridCgiContext::GetQueryStringEntryValue(), CGridCgiContext::GetRequestEntryValue(), GetResidue(), CTestArguments::GetServerName(), CCPPToolkitConnParams::GetServerType(), GetSourceDbtag(), GetSprotDescr(), CCommentItem::GetStringForTPA(), CBDB_FieldFactory::GetType(), SourceFile::GetType(), CJsonNode::GuessType(), CTableQueryExec::HasIdentifier(), CConnTest::HttpOkay(), CTableQueryExec::IdentifierType(), SNetCacheAPIImpl::Init(), CProjectsLstFileFilter::InitFromString(), CPSGS_CassProcessorBase::IsCassandraProcessorEnabled(), CTable2AsnContext::IsDBLink(), CQueueClientInfoList::IsMatchingClient(), CValidError_graph::IsSupportedGraphType(), CValidError_bioseq::IsSynthetic(), CSeqEntrySource::IsUnverified(), CFeatComparatorByLabel::Less(), CMatrixScoringMethod::Load(), CProjBulderApp::LoadDepGraph(), PssmMaker::makeDefaultPssm(), CTime::MonthNameToNum(), Normalize(), CDirEntry::NormalizePath(), NS_ValidateClasses(), NS_ValidateQueues(), StructureWindow::OnEditFavorite(), CPipeHandle::Open(), CPubseqGatewayApp::OpenCass(), CAnnotObjectType_Less::operator()(), LessThan::operator()(), SCaseInsensitiveQuickLess::operator()(), SCaseInsensitiveLess::operator()(), SCaseInsensitivePredicate::operator()(), CHttpCookies::SDomainLess::operator()(), string_nocase_less::operator()(), CMacroEngine::SKey_Less::operator()(), CSeq_id_General_Str_Info::PKeyLess::operator()(), SNodeNameUpdater::operator()(), CWGSBlobId::operator<(), CPCRParsedSet::operator<(), CSeq_id_Textseq_Info::TKey::operator<(), ParseSourceFeat(), CBDB_ConfigStructureParser::ParseStructureLine(), PickTheDescrSource(), CBlastFormat::PrintArchive(), CProjectTreeBuilder::ProcessDir(), CDataTool::ProcessModules(), ProductNamesAreSimilar(), PropogateSuppliedLineage(), QSbuf_ParseDefline(), CNetScheduleServer::ReadServicesConfig(), CNetScheduleServer::ResolveService(), CGridCommandLineInterfaceApp::Run(), CDbapiTest::Run(), CBDB_FileDumperApp::Run(), s_AccessionCompare(), s_CompareDates(), CLatLonCountryMap::s_CompareTwoLinesByCountry(), CLatLonCountryMap::s_CompareTwoLinesByLatLonThenCountry(), s_Config_less(), s_FileName_less(), s_GbQualCompare(), s_GetBaseName(), CPackString::s_GetEnvFlag(), s_GetProteinName(), s_GetUserObjectContent(), s_HasTpaUserObject(), s_iCompareNameVals(), s_Is_ISO_8859_1(), s_Is_UTF_8(), s_Is_Windows_1252(), s_IsIPAddress(), s_IsSubNode(), s_LineIndicatesOrder(), s_OrgModCompare(), s_OrgModEqual(), s_OrgrefSynCompare(), s_PCRPrimerLess(), s_PCRSetCompare(), s_SetProtRef(), s_SetServiceName(), s_SubsourceCompareC(), s_SubsourceEquivalent(), CGBDocument::Save(), SeqDB_SimplifySeqid(), CCdDbPriority::SeqIdTypeToSourceCode(), CConnTest::ServiceOkay(), CObject::SetAllocFillMode(), impl::CDriverContext::SetClientCharset(), CBlastOptions::SetFilterString(), CNetScheduleAccessList::SetHosts(), CNetCacheAPIParameters::SetMirroringMode(), CUrlArgs_Parser::SetQueryString(), CNetCacheAPIParameters::SetServerCheck(), CValidError_imp::Setup(), CNetScheduleServer::ShouldPerfLogTransitions(), CObjectIStreamXml::SkipQDecl(), SourceFeatStructFillIn(), SourceFileExt(), SpFeatKeyNameValid(), SPParseDefinition(), CConnTest::StatefulOkay(), StringEquNI(), CNetScheduleAPI::StringToStatus(), CNcbiDiag::StrToSeverityLevel(), sx_InitFillNewMemoryMode(), CReportTrim::TrimSeqGraphs(), TrimSequenceAndAnnotation(), CSrcFeatValidator::Validate(), CImpFeatValidator::Validate(), SPubseqGatewaySettings::Validate(), CValidError_imp::ValidateAuthorList(), CValidError_imp::ValidateBioSource(), CValidError_imp::ValidateOrgRef(), CValidError_bioseqset::ValidatePopSet(), CValidError_bioseq::ValidateSecondaryAccConflict(), CValidError_bioseq::ValidateSeqDescContext(), CValidError_bioseq::ValidateSeqId(), CValidError_desc::ValidateUser(), CValidError_bioseq::ValidateWGSMaster(), VisitXmlNodeProc(), CFeatureItem::x_AddQualsCdregionIdx(), CFeatureItem::x_AddQualsRna(), CFeatureItem::x_AddRegulatoryClassQual(), CSeqTextDataSourceInterval::x_AddVariationsFromFeature(), CNewCleanup_imp::x_ChangePopToPhy(), CSoapFault::x_CodeToFaultcodeEnum(), CBDB_CacheReaderCF::x_CreateInstance(), CQueueDataBase::x_Dump(), CQueryParsePanel::x_ExecuteQuery(), CLatLonCountryMap::x_FindCountryExtreme(), CGenbankGatherer::x_GatherTLS(), CGenbankGatherer::x_GatherTSA(), CGenbankGatherer::x_GatherWGS(), CTableQueryExec::x_GetColumnIdx(), CQueueDataBase::x_GetConfigQueues(), CDiagSyntaxParser::x_GetDiagSeverity(), CPubseqGatewayApp::x_GetEnabledAndDisabledProcessors(), CConnTest::x_GetFirewallConfiguration(), CGuiObjectInfoSeq_feat::x_GetGroupToolTip(), CCompressedFile::x_GetProtocol(), CSerialObject::x_GetVerifyData(), CObjectIStream::x_GetVerifyDataDefault(), CObjectOStream::x_GetVerifyDataDefault(), CTableColumnTypeGuesser::x_GuessType(), CNewCleanup_imp::x_HandleTrnaProductGBQual(), CNCAlerts::x_IdToType(), CPSGAlerts::x_IdToType(), CFeatureItem::x_ImportQuals(), CRemoteBlast::x_InitDiskCache(), CValidError_bioseq::x_IsActiveFin(), CHttpHeaders::x_IsReservedHeader(), CQueryParsePanel::x_IsValidQuery(), CGff3ReadRecord::x_NormalizedAttributeKey(), CNetScheduleHandler::x_ProcessMsgQueue(), CNetScheduleHandler::x_ProcessMsgRequest(), CNetScheduleHandler::x_ProcessSetQueue(), CSoapServerApplication::x_ProcessWsdlRequest(), CQueueDataBase::x_ReadIniFileQueueClassDescriptions(), CQueueDataBase::x_ReadIniFileQueueDescriptions(), CQueueDataBase::x_ReadLinkedSections(), CCgiEntryReaderContext::x_ReadMultipartHeaders(), x_RepairCountryName(), CQueueDataBase::x_RestoreRefuseSubmitState(), CSeqDBIsam::x_StringSearch(), CVectorTrimPanel::x_TrimSeqGraphs(), CSingleFeatValidator::x_ValidateGeneXRef(), CGeneValidator::x_ValidateOperon(), CSingleFeatValidator::x_ValidateRptUnitVal(), CRNAValidator::x_ValidateTrnaCodons(), CRNAValidator::x_ValidateTrnaType(), SGridWorkerNodeImpl::x_WNCoreInit(), XMLCheckContigEverywhere(), XMLInitialEntry(), and CGtfReader::xProcessQualifierSpecialCase().

◆ CompareNocase() [9/11]

int NStr::CompareNocase ( const CTempString  s1,
SIZE_TYPE  pos,
SIZE_TYPE  n,
const CTempString  s2 
)
static

Case-insensitive compare of a substring with another string.

Parameters
s1String containing the substring to be compared.
posStart position of substring to be compared.
nNumber of characters in substring to be compared.
s2String to be compared with substring.
Returns
  • 0, if s1[pos:pos+n) == s2 (case-insensitive compare);
  • Negative integer, if s1[pos:pos+n) < s2 (case-insensitive compare);
  • Positive integer, if s1[pos:pos+n) > s2 (case-insensitive compare).
See also
Other forms of overloaded CompareNocase() with differences in argument types: char* vs. CTempString[Ex]

Definition at line 248 of file ncbistr.cpp.

References CTempString::data(), CTempString::empty(), CTempString::length(), n, NPOS, and tolower().

◆ CompareNocase() [10/11]

int NStr::CompareNocase ( const CTempStringEx  s1,
const CTempStringEx  s2 
)
static

Case-insensitive compare of two strings – CTempStringEx version.

Parameters
s1String to be compared – operand 1.
s2String to be compared – operand 2.
Returns
  • 0, if s1 == s2 (case-insensitive compare);
  • Negative integer, if s1 < s2 (case-insensitive compare);
  • Positive integer, if s1 > s2 (case-insensitive compare).
See also
CompareCase(), Compare() versions with same argument types.

Definition at line 190 of file ncbistr.cpp.

References CTempString::data(), CTempString::length(), min(), n, and tolower().

◆ CompareNocase() [11/11]

template<typename _TChar >
int CTempXStr< _TChar >::CompareNocase ( const CTempXStr< _TChar > &  pattern) const
inline

◆ Copy()

void CTempString::Copy ( string dst,
size_type  pos,
size_type  len 
) const
inline

Copy a substring into a string Somewhat similar to basic_string::assign()

Copy a substring into a string.

These are analogs of basic_string::assign().

Definition at line 525 of file tempstr.hpp.

References CTempString::begin(), len, CTempString::length(), and min().

Referenced by CReadUtil::AddGeneOntologyTerm(), and CSourceModParser::x_ApplyMods().

◆ Count() [1/2]

static size_t CStrDummyTokenCount::Count ( CStrTokenizeBase )
inlinestatic

Definition at line 66 of file ncbistr_util.hpp.

◆ Count() [2/2]

static size_t CStringTokenCount::Count ( CStrTokenizeBase tokenizer)
inlinestatic

Definition at line 330 of file ncbistr_util.hpp.

References CStrTokenizeBase::Advance(), CStrTokenizeBase::AtEnd(), and NULL.

◆ CParse()

string NStr::CParse ( const CTempString  str,
EQuoted  quoted = eQuoted 
)
static

Discard C-style backslash escapes.

Parameters
strThe original string to parse.
quotedDefine that parsing string is quoted or not. If parameter "quoted" equal eQuoted and string is not started and finished with a double-quote, the exception will be thrown, otherwise quotes will be removed in result.
Returns
String with parsed C-style escape sequences.
See also
CEncode

Definition at line 3981 of file ncbistr.cpp.

Referenced by s_DecodeMetadataValue().

◆ CParseTemplException() [1/4]

template<class TBase >
CParseTemplException< TBase >::CParseTemplException ( const CDiagCompileInfo info,
const CException prev_exception,
const string message,
string::size_type  pos,
EDiagSev  severity,
CException::TFlags  flags 
)
inlineprotected

Definition at line 4466 of file ncbistr.hpp.

◆ CParseTemplException() [2/4]

template<class TBase >
CParseTemplException< TBase >::CParseTemplException ( const CDiagCompileInfo info,
const CException prev_exception,
EErrCode  err_code,
const string message,
string::size_type  pos,
EDiagSev  severity = eDiag_Error 
)
inline

Constructor.

Report "pos" along with "what".

Definition at line 4416 of file ncbistr.hpp.

◆ CParseTemplException() [3/4]

template<class TBase >
CParseTemplException< TBase >::CParseTemplException ( const CParseTemplException< TBase > &  other)
inline

Constructor.

Definition at line 4431 of file ncbistr.hpp.

◆ CParseTemplException() [4/4]

template<class TBase >
CParseTemplException< TBase >::CParseTemplException ( void  )
inlineprotected

Constructor.

Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 4479 of file ncbistr.hpp.

◆ CStringDecoder_Url()

CStringDecoder_Url::CStringDecoder_Url ( NStr::EUrlDecode  flag = NStr::eUrlDec_All)

Definition at line 7271 of file ncbistr.cpp.

◆ CStringEncoder_Url()

CStringEncoder_Url::CStringEncoder_Url ( NStr::EUrlEncode  flag = NStr::eUrlEnc_SkipMarkChars)

Definition at line 7284 of file ncbistr.cpp.

References CStringDecoder_Url::m_Flag, and NStr::URLDecode().

◆ CStringPairs() [1/3]

template<class TContainer >
CStringPairs< TContainer >::CStringPairs ( const CTempString  arg_sep,
const CTempString  val_sep,
IStringDecoder decoder = NULL,
EOwnership  own_decoder = eTakeOwnership,
IStringEncoder encoder = NULL,
EOwnership  own_encoder = eTakeOwnership 
)
inline

Create parser with the specified parameters.

Parameters
arg_sepSeparator between name+value pairs
val_sepSeparator between name and value
decoderString decoder (Url, Xml etc.)
own_decoderDecoder ownership flag
encoderString encoder (Url, Xml etc.)
own_encoderEncoder ownership flag

Definition at line 4636 of file ncbistr.hpp.

◆ CStringPairs() [2/3]

template<class TContainer >
CStringPairs< TContainer >::CStringPairs ( IStringDecoder decoder = NULL,
EOwnership  own_decoder = eTakeOwnership,
IStringEncoder encoder = NULL,
EOwnership  own_encoder = eTakeOwnership 
)
inline

Create parser with the specified decoder/encoder and default separators.

Parameters
decoderString decoder (Url, Xml etc.)
own_decoderDecoder ownership flag
decoderString encoder (Url, Xml etc.), optional
own_encoderEncoder ownership flag, optional
Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 4611 of file ncbistr.hpp.

◆ CStringPairs() [3/3]

template<class TContainer >
CStringPairs< TContainer >::CStringPairs ( NStr::EUrlDecode  decode_flag,
NStr::EUrlEncode  encode_flag 
)
inline

Create parser with the selected URL-encoding/decoding options and default separators.

Parameters
decode_flagURL-decoding flag
encode_flagURL-encoding flag

Definition at line 4656 of file ncbistr.hpp.

◆ CStrTokenize()

template<class TStr , class TV , class TP = CStrDummyTokenPos, class TCount = CStrDummyTokenCount, class TReserve = CStrDummyTargetReserve<TV, TP>>
CStrTokenize< TStr, TV, TP, TCount, TReserve >::CStrTokenize ( const TString str,
const TString delim,
TFlags  flags,
CTempString_Storage storage 
)
inline

Constructor.

Parameters
strString to be tokenized.
delimSet of char delimiters used to tokenize string "str". If delimiter is empty, then input string is appended to "arr" as is.
flagsFlags governing splitting. Without NStr::fSplit_MergeDelimiters, delimiters that immediately follow each other are treated as separate delimiters - empty string(s) appear in the target output.

Definition at line 248 of file ncbistr_util.hpp.

◆ CStrTokenizeBase()

CStrTokenizeBase::CStrTokenizeBase ( const CTempString str,
const CTempString delim,
TFlags  flags,
CTempString_Storage storage 
)
inline

Definition at line 189 of file ncbistr_util.hpp.

References CStrTokenizeBase::SetDelim().

◆ CStrTokenPosAdapter()

template<class TPosContainer >
CStrTokenPosAdapter< TPosContainer >::CStrTokenPosAdapter ( TPosContainer *  token_pos)
inline

If token_pos construction parameter is NULL all calls are ignored.

Definition at line 376 of file ncbistr_util.hpp.

◆ CTempString() [1/10]

CTempString::CTempString ( const char *  str)
inline

Definition at line 422 of file tempstr.hpp.

References NCBI_TEMPSTR_MAKE_COPY, and str().

◆ CTempString() [2/10]

CTempString::CTempString ( const char *  str,
size_type  len 
)
inline

Definition at line 448 of file tempstr.hpp.

References NCBI_TEMPSTR_MAKE_COPY.

◆ CTempString() [3/10]

CTempString::CTempString ( const char *  str,
size_type  pos,
size_type  len 
)

Use CTempString(const char* str + pos, size_type len - pos) instead.

Definition at line 7332 of file ncbistr.cpp.

◆ CTempString() [4/10]

CTempString::CTempString ( const CTempString str)
inline

Definition at line 475 of file tempstr.hpp.

References NCBI_TEMPSTR_MAKE_COPY.

◆ CTempString() [5/10]

CTempString::CTempString ( const CTempString str,
size_type  pos 
)
inline

Definition at line 483 of file tempstr.hpp.

References NCBI_TEMPSTR_MAKE_COPY, and str().

◆ CTempString() [6/10]

CTempString::CTempString ( const CTempString str,
size_type  pos,
size_type  len 
)
inline

Definition at line 494 of file tempstr.hpp.

References len, NCBI_TEMPSTR_MAKE_COPY, and str().

◆ CTempString() [7/10]

CTempString::CTempString ( const string str)
inline

Definition at line 456 of file tempstr.hpp.

References NCBI_TEMPSTR_MAKE_COPY.

◆ CTempString() [8/10]

CTempString::CTempString ( const string str,
size_type  len 
)

Use CTempString(const string& str, 0, size_type len) instead.

Definition at line 7338 of file ncbistr.cpp.

◆ CTempString() [9/10]

CTempString::CTempString ( const string str,
size_type  pos,
size_type  len 
)
inline

Definition at line 464 of file tempstr.hpp.

References len, NCBI_TEMPSTR_MAKE_COPY, and str().

◆ CTempString() [10/10]

CTempString::CTempString ( void  )
inline

Definition at line 412 of file tempstr.hpp.

Referenced by CTempString::find(), CTempString::rfind(), and CTempString::substr().

◆ CTempString_Storage()

CTempString_Storage::CTempString_Storage ( void  )

Definition at line 7398 of file ncbistr.cpp.

◆ CTempStringEx() [1/9]

CTempStringEx::CTempStringEx ( const char *  str)
inline

Definition at line 921 of file tempstr.hpp.

◆ CTempStringEx() [2/9]

CTempStringEx::CTempStringEx ( const char *  str,
size_type  len 
)
inline

Definition at line 926 of file tempstr.hpp.

◆ CTempStringEx() [3/9]

CTempStringEx::CTempStringEx ( const char *  str,
size_type  len,
EZeroAtEnd  zero_at_end 
)
inline

Definition at line 931 of file tempstr.hpp.

◆ CTempStringEx() [4/9]

CTempStringEx::CTempStringEx ( const CTempString str)
inline

Definition at line 946 of file tempstr.hpp.

◆ CTempStringEx() [5/9]

CTempStringEx::CTempStringEx ( const CTempString str,
size_type  pos 
)
inline

Definition at line 958 of file tempstr.hpp.

◆ CTempStringEx() [6/9]

CTempStringEx::CTempStringEx ( const CTempString str,
size_type  pos,
size_type  len 
)
inline

Definition at line 963 of file tempstr.hpp.

◆ CTempStringEx() [7/9]

CTempStringEx::CTempStringEx ( const string str)
inline

Definition at line 936 of file tempstr.hpp.

◆ CTempStringEx() [8/9]

CTempStringEx::CTempStringEx ( const string str,
size_type  pos,
size_type  len 
)
inline

Definition at line 941 of file tempstr.hpp.

◆ CTempStringEx() [9/9]

CTempStringEx::CTempStringEx ( void  )
inline

Definition at line 917 of file tempstr.hpp.

Referenced by CTempStringEx::substr().

◆ CTempStringList()

CTempStringList::CTempStringList ( CTempString_Storage storage)
inline

Definition at line 94 of file ncbistr_util.hpp.

◆ CTempXStr() [1/8]

template<typename _TChar >
CTempXStr< _TChar >::CTempXStr ( const _TChar *  str)
inline

Definition at line 75 of file ncbi_xstr.hpp.

◆ CTempXStr() [2/8]

template<typename _TChar >
CTempXStr< _TChar >::CTempXStr ( const _TChar *  str,
size_t  len 
)
inline

Definition at line 79 of file ncbi_xstr.hpp.

◆ CTempXStr() [3/8]

template<typename _TChar >
CTempXStr< _TChar >::CTempXStr ( const _TChar *  str,
size_t  pos,
size_t  len 
)
inline

◆ CTempXStr() [4/8]

template<typename _TChar >
CTempXStr< _TChar >::CTempXStr ( const basic_string< _TChar > &  str)
inline

Definition at line 95 of file ncbi_xstr.hpp.

◆ CTempXStr() [5/8]

template<typename _TChar >
CTempXStr< _TChar >::CTempXStr ( const basic_string< _TChar > &  str,
size_t  len 
)
inline

Definition at line 99 of file ncbi_xstr.hpp.

◆ CTempXStr() [6/8]

template<typename _TChar >
CTempXStr< _TChar >::CTempXStr ( const basic_string< _TChar > &  str,
size_t  pos,
size_t  len 
)
inline

◆ CTempXStr() [7/8]

template<typename _TChar >
CTempXStr< _TChar >::CTempXStr ( const CTempXStr< _TChar > &  lw)
inline

Definition at line 69 of file ncbi_xstr.hpp.

◆ CTempXStr() [8/8]

template<typename _TChar >
CTempXStr< _TChar >::CTempXStr ( void  )
inline

Definition at line 65 of file ncbi_xstr.hpp.

◆ CTextJoiner()

template<size_t num_prealloc, typename TIn = string, typename TOut = basic_string<typename TIn::value_type>>
CTextJoiner< num_prealloc, TIn, TOut >::CTextJoiner ( )
inline

Definition at line 64 of file text_joiner.hpp.

◆ CWrapDestStringList()

NStr::CWrapDestStringList::CWrapDestStringList ( list< string > &  l)
inline

Definition at line 3281 of file ncbistr.hpp.

◆ data() [1/2]

template<typename _TChar >
const _TChar* CTempXStr< _TChar >::data ( void  ) const
inline

◆ data() [2/2]

const char * CTempString::data ( void  ) const
inline

Return a pointer to the array represented.

As with std::basic_string<>, this is not guaranteed to be NULL terminated.

Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 313 of file tempstr.hpp.

References CTempString::m_String.

Referenced by CDelta_ext::AddAndSplit(), CDelta_ext::AddLiteral(), SAccGuide::AddRule(), CWriteDB_Impl::AddSequence(), CWriteDB::AddSequence(), CBuildDatabase::AddSequences(), NStr::CWrapDestStringList::Append(), CNCBlobKey::Assign(), CTempString::assign(), CTL_Cmd::AssignCmdParam(), CPrintJobInfo::BeginJobEvent(), CleanAndCompress(), CTempString::compare(), NStr::CompareCase(), NStr::CompareNocase(), CGapsEditor::ConvertNs2Gaps(), CWGSDb_Impl::DetermineFeatLocIdType(), CDiffText::Diff(), CExtraEncoder::Encode(), FindNextEntryBuf(), CFlatXrefQVal::Format(), fta_if_wgs_acc(), g_FixMisplacedPID(), CRR_Util::GetFieldValueConverted(), CCSraAlignIterator::GetMatchAlign(), CWGSFeatureIterator::GetSeq_feat(), CNCDistributionConf::GetSlotByNetCacheKey(), CSeq_id::IdentifyAccession(), CNCBlobKeyLight::KeyForLogs(), CNCBlobKeyLight::KeyVersion(), CCSRARefSeqInfo::LoadAnnotPileupChunk(), CBamRefSeqInfo::LoadPileupChunk(), CCSraAlignIterator::MakeFullMismatch(), CDBParamVariant::MakeName(), CDBParamVariant::MakePlainName(), CPubseqGatewayApp::OnAccessionVersionHistory(), CPubseqGatewayApp::OnAckAlert(), CPubseqGatewayApp::OnGet(), CPubseqGatewayApp::OnGetBlob(), CPubseqGatewayApp::OnGetNA(), CPubseqGatewayApp::OnResolve(), CPubseqGatewayApp::OnShutdown(), PQuickStringLess::operator()(), operator+(), CRR_Field< TTraits >::operator=(), CNCBlobKeyLight::operator=(), CTempString::operator==(), CNCBlobKeyLight::PackBlobKey(), CNetServProtoParserBase::ParseArguments(), CNetServProtoParserBase::ParseCommand(), CDiagCompileInfo::ParseCurrFunctName(), CPrintJobInfo::PrintXput(), CPrintJobInfo::ProcessJobEventField(), CPrintJobInfo::ProcessJobInfoField(), CObjectIStreamAsn::ReadDouble(), CRegexpUtil::Replace(), CAttrListParser::Reset(), s_AddParamName(), s_GetrRNAProductsSuspectRuleSet(), CTL_LangCmd::Send(), SeqDB_UnpackAmbiguities(), CRegexp::Set(), CTL_BCPInCmd::SetHints(), sFindBrackets(), SkipTitle(), SkipTitleBuf(), CTempStringEx::substr(), sx_AddAnnotBytes(), sx_AddDescrBytes(), CRowReaderStream_Excel_CSV::Tokenize(), CRowReaderStream_IANA_CSV::Tokenize(), CRowReaderStream_Excel_CSV::Translate(), CRowReaderStream_IANA_CSV::Translate(), CRR_Util::ValidateBasicTypeFieldValue(), CSrvSocketTask::WriteText(), CWriteDB_IsamIndex::x_AddString(), CWriteDB_IsamIndex::x_AddStringData(), CDB_Stream::x_Append(), CNCMessageHandler::x_AssignCmdParams(), CTL_BCPInCmd::x_AssignParams(), CPubseqGatewayApp::x_CheckAuthorization(), x_CleanAndCompress(), CDiffList::x_CleanupAndMerge_Equities(), CDiffList::x_CleanupAndMerge_SingleEdits(), CWig2tableApplication::x_CommentLine(), CWriteDB_Impl::x_ComputeHash(), CBlastDbBlob::x_Copy(), CRR_Row< TTraits >::x_CopyFields(), CRowReaderStream_NCBI_TSV::x_ExtractNames(), CTitleParser::x_FindBrackets(), CSeqDBVol::x_GetFilteredBinaryHeader(), CSeqDBVol::x_GetHdrAsn1(), CWig2tableApplication::x_GetParamName(), CWig2tableApplication::x_GetParamValue(), CWig2tableApplication::x_GetPos(), CWig2tableApplication::x_GetWord(), CSeq_id::x_IdentifyAccession(), CLatLonCountryMap::x_InitFromFile(), x_MakeTSqlString(), CNCMessageHandler::x_ReadAuthMessage(), CShortReadFastaInputSource::x_ReadFastaOneSeq(), CShortReadFastaInputSource::x_ReadFastc(), CShortReadFastaInputSource::x_ReadFastqOneSeq(), CBlastDbBlob::x_ReadRaw(), CBlastDbBlob::x_ReadString(), CRowReaderStream_IANA_CSV::x_SetFieldNames(), CWig2tableApplication::x_SkipWS(), CWig2tableApplication::x_TryGetDouble(), CWig2tableApplication::x_TryGetDoubleSimple(), CWig2tableApplication::x_TryGetPos(), and CFastaOstream::x_WriteSequence().

◆ Decode() [1/4]

TUnicodeSymbol CUtf8::Decode ( const char *&  src)
inlinestatic

Convert sequence of UTF8 code units into Unicode code point.

Parameters
srcZero-terminated buffer, in UTF8 encoding
Returns
Unicode code point
Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 5662 of file ncbistr.hpp.

References CUtf8::x_Decode().

Referenced by s_InsertSpacesBetweenTokens(), s_RemoveSpacesWithinNumbers(), CDoiLookup::Transcode(), CObjectOStreamXml::WriteEncodedChar(), and CUtf8::x_AsBasicString().

◆ Decode() [2/4]

string CStringDecoder_Url::Decode ( const CTempString  src,
EStringType  stype 
) const
virtual

Definition at line 7277 of file ncbistr.cpp.

◆ Decode() [3/4]

virtual string IStringDecoder::Decode ( const CTempString  src,
EStringType  stype 
) const
pure virtual

Decode the string.

Must throw CStringException if the source string is not valid.

Implemented in CExtraDecoder.

Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Referenced by SDiagMessage::x_ParseExtraArgs().

◆ Decode() [4/4]

TUnicodeSymbol CUtf8::Decode ( string::const_iterator &  src)
inlinestatic

Convert sequence of UTF8 code units into Unicode code point.

Parameters
srcC++ string iterator
Returns
Unicode code point

Definition at line 5666 of file ncbistr.hpp.

References CUtf8::x_Decode().

◆ DecodeFirst()

TUnicodeSymbol CUtf8::DecodeFirst ( char  ch,
SIZE_TYPE more 
)
static

Begin converting first character of UTF8 sequence into Unicode.

Parameters
chCharacter
moreIf the character is valid, - how many more characters to expect
Returns
Part of Unicode code point. Zero if the character is invalid.
Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 7154 of file ncbistr.cpp.

Referenced by impl::GetValidUTF8Len(), CObjectIStreamJson::ReadUtf8Char(), CObjectIStreamXml::ReadUtf8Char(), and CUtf8::x_Decode().

◆ DecodeNext()

TUnicodeSymbol CUtf8::DecodeNext ( TUnicodeSymbol  chU,
char  ch 
)
static

Convert next character of UTF8 sequence into Unicode.

Parameters
chCharacter
chUIncomplete Unicode code point
Returns
Accumulated Unicode code point. Zero if the character is invalid.
Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 7177 of file ncbistr.cpp.

Referenced by CObjectIStreamJson::ReadUtf8Char(), CObjectIStreamXml::ReadUtf8Char(), and CUtf8::x_Decode().

◆ Dedent()

string NStr::Dedent ( const CTempString  str,
TDedentFlags  flags = 0 
)
static

Dedent multi-line string, removing common whitespace prefix for each line.

Parameters
strString to be dedented.
flagsOptional flags to tune up how to dedent string.
Returns
String with removed common whitespace indentation.
Note
Empty lines, and lines containing whitespaces only with fDedent_NormalizeEmptyLines flag, are not used in computing common whitespaces prefix.
Assumes that whitespace prefixes are the same on each line, in other words, if a common prefix have a mix of spaces and tabulation characters, it should be the same for each line. Or this method can works incorrectly. Also, you can use Replace() first to replace tabulations and make whitespaces consistent across lines.
See also
Replace, DedentR
Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 5503 of file ncbistr.cpp.

Referenced by NStr::DedentR().

◆ DedentR()

string NStr::DedentR ( const CTempString  str)
inlinestatic

◆ Do()

template<class TStr , class TV , class TP = CStrDummyTokenPos, class TCount = CStrDummyTokenCount, class TReserve = CStrDummyTargetReserve<TV, TP>>
void CStrTokenize< TStr, TV, TP, TCount, TReserve >::Do ( TContainer target,
TPosContainer token_pos,
const TString empty_str = TString() 
)
inline

Tokenize the string using the specified set of char delimiters.

Parameters
targetOutput container. Tokens defined in "str" by using symbols from "delim" are added to the list "target".
token_posContainer for the tokens' positions in "str".
empty_strString added to target when there are no other characters between delimiters

Definition at line 264 of file ncbistr_util.hpp.

References CStrTokenizeBase::Advance(), CStrTokenizeBase::AtEnd(), CTempStringList::Clear(), CTempString::empty(), NStr::fSplit_Truncate_End, i, CTempStringList::Join(), CStrTokenizeBase::m_Delim, CStrTokenizeBase::m_Flags, CStrTokenizeBase::m_Pos, CStrTokenizeBase::m_Storage, CStrTokenizeBase::m_Str, and NPOS.

◆ DoubleToString() [1/3]

string NStr::DoubleToString ( double  value,
int  precision = -1,
TNumToStringFlags  flags = 0 
)
inlinestatic

Convert double to string.

Parameters
valueDouble value to be converted.
precisionPrecision value for conversion. If precision is more that maximum for current platform, then it will be truncated to this maximum. If it is negative, that double will be converted to number in scientific notation.
flagsHow to convert value to string. If double format flags are not specified, that next output format will be used by default:
  • fDoubleFixed, if 'precision' >= 0.
  • fDoubleGeneral, if 'precision' < 0.
Returns
  • If conversion succeeds, set errno to zero and return the converted string value.
  • Otherwise, set errno to non-zero and return empty string.
Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 5187 of file ncbistr.hpp.

References flags, precision, str(), and rapidjson::value.

Referenced by CReportParams::Add(), CObjFingerprint::AddDouble(), CSAM_CIGAR_Formatter::AddRow(), CContigAssembly::Align(), BLASTer::CalculateSelfHitScores(), CGridCommandLineInterfaceApp::Cmd_Discover(), CollectAttributes(), CPepXML::ConvertDouble(), CColumnScoringPanel::CreateControls(), CMatrixScoringPanel::CreateControls(), CHistConfigDlg::CreateControls(), CTableAnnotDataSource::CreateFeature(), BLASTer::CreateNewPairwiseAlignmentsByBlast(), CTableAnnotDataSource::CreateSnpFeature(), CTableAnnotDataSource::CreateSnps(), NStr::DoubleToString(), CGlUtils::DumpState(), CBDB_Cache::EvaluateTimeLine(), CDiagContext_Extra::Flush(), CAlnVecRow::GetColumnText(), CRealDataType::GetDefaultString(), CHistogramGlyph::GetHTMLActiveAreas(), GetPercentN(), CBDB_FieldFloat::GetString(), CBDB_FieldDouble::GetString(), CExprValue::GetString(), CVariant::GetString(), NMacroUtil::GetStringValue(), CTableDataAlnSummary::GetStringValue(), CTableDataSeq_table::GetStringValue(), CHistogramGlyph::GetTooltip(), CLDBlockGlyph::GetTooltip(), CArgAllowValuesGreaterThanOrEqual::GetUsage(), CArgAllowValuesLessThanOrEqual::GetUsage(), CArgAllowValuesBetween::GetUsage(), CArgAllow_Doubles::GetUsage(), CEditingActionDescUserObject::GetValue(), CMultiApplication::Init(), SegMaskerApplication::Init(), CDebugDumpContext::Log(), CSubSource::MakeLatLon(), MostFrequentGapSize(), CQueryParsePanel::OnIdle(), CwxPhyloSettingsDlg::OnSelectionAlphaSliderUpdated(), CNetBLASTUIDataSource::Open(), CGenBankUIDataSource::Open(), value_slice::CValueConvert< CP, float >::operator string(), value_slice::CValueConvert< CP, double >::operator string(), CQueryTreePrintFunc::operator()(), CTreeConvertNonSingleChild2ContainerFunc< TBioTreeContainer, TTreeType >::operator()(), CSrvStrStream::operator<<(), CDiagContext_Extra::Print(), printGFF3(), CArgAllow_Doubles::PrintUsageXml(), CSGQueryNodeValue::PromoteTo(), CQueryNodeValue::PromoteTo(), NSnpGui::PValueToString(), Threader::Realign(), RegistrySetDouble(), CPhyloTreeDataSource::ReRootMidpoint(), CTableQueryExec::ResolveIdentifier(), RestoreModelAttributes(), CObjConvProfile::Run(), CDbapiTestSpeedApp::RunSample(), s_AddNodeToBtc(), s_AddToLog(), s_CalcGumbelParams(), s_ConvertValue(), s_GetAlignmentTooltip(), s_GetNewick(), s_Repr_Value(), s_ScanRecursive(), s_SetAirrAlignmentInfo(), s_ToString(), s_ValToString(), CGtfImportData::Serialize(), CTimeout::Set(), CTimeSpan::Set(), CIgBlastTabularInfo::SetAirrFormatData(), CGenericSearchArgs::SetArgumentDescriptions(), CGapTriggerArgs::SetArgumentDescriptions(), CPssmEngineArgs::SetArgumentDescriptions(), CHspFilteringArgs::SetArgumentDescriptions(), CPluginValue::SetDouble(), CMacroRep::SetFunctionParameterAsFloat(), CGffAlignmentRecord::SetScore(), CGffBaseRecord::SetScore(), CBlastTabularInfo::SetScores(), CSplignArgUtil::SetupArgDescriptions(), CCompartOptions::SetupArgDescriptions(), CPhyloNodeData::Sync(), CMacroFunction_SubtreeSum::TheFunction(), CBLASTParams::ToArgVec(), CGlRect< TVPUnit >::ToString(), CLocMapper_Default::CGappedRange::ToString(), CBDB_FieldFloat::ToString(), CBDB_FieldDouble::ToString(), CCleanupAlignmentsParamsPanel::TransferDataToWindow(), CValidError_graph::ValidateGraphsOnBioseq(), CParamParser< TDescription, TParam >::ValueToString(), CGridCgiSampleApplication::VectorToString(), CObjectOStreamJson::WriteDouble2(), CObjectOStreamXml::WriteDouble2(), CAlnMultiRenderer::x_AddStatisticsRow(), CHistogramGlyph::x_DrawLinearRuler(), CHistogramGlyph::x_DrawLogRuler(), CShowBlastDefline::x_FormatDeflineTableLine(), CShowBlastDefline::x_FormatDeflineTableLineCSV(), CShowBlastDefline::x_FormatDeflineTableLineText(), CDownloadJob::x_FormatSize(), CAlnGraphic::x_GetAlnInfo(), IOperateOnTwoQuals::x_GetSourceString(), CShowBlastDefline::x_InitFormattingInfo(), CBlastAppArgs::x_IssueWarningsForIgnoredOptions(), NStr::x_NumericToString(), CDisplaySeqalign::x_PrepareRowData(), CBlastTabularInfo::x_PrintPercentIdentical(), CBlastTabularInfo::x_PrintPercentPositives(), CNetScheduleHandler::x_ProcessMsgBatchSubmit(), CXmlValueItem::x_RenderXml(), CMakeProfileDBApp::x_SetupArgDescriptions(), IMacroVar::SValue::x_WriteAsString(), CVcfWriter::x_WriteFeatureInfo(), CVcfWriter::x_WriteFeatureQual(), CBedTrackRecord::xImportKeyValuePairs(), CBedReader::xSetFeatureColorFromScore(), and CVcfReader::xSetFileFormat().

◆ DoubleToString() [2/3]

SIZE_TYPE NStr::DoubleToString ( double  value,
unsigned int  precision,
char *  buf,
SIZE_TYPE  buf_size,
TNumToStringFlags  flags = 0 
)
static

Convert double to string with specified precision and place the result in the specified buffer.

Parameters
valueDouble value to be converted.
precisionPrecision value for conversion. If precision is more that maximum for current platform, then it will be truncated to this maximum.
bufPut result of the conversion into this buffer.
buf_sizeSize of buffer, "buf".
flagsHow to convert value to string. Default output format is fDoubleFixed.
Returns
  • If conversion succeeds, set errno to zero and return the number of bytes stored in "buf", not counting the terminating '\0'.
  • Otherwise, set errno to non-zero, value of 'out_str' is undefined.

Definition at line 2362 of file ncbistr.cpp.

◆ DoubleToString() [3/3]

void NStr::DoubleToString ( string out_str,
double  value,
int  precision = -1,
TNumToStringFlags  flags = 0 
)
static

Convert double to string.

Parameters
out_strOutput string variable
valueDouble value to be converted.
precisionPrecision value for conversion. If precision is more that maximum for current platform, then it will be truncated to this maximum. If it is negative, that double will be converted to number in scientific notation.
flagsHow to convert value to string. If double format flags are not specified, that next output format will be used by default:
  • fDoubleFixed, if 'precision' >= 0.
  • fDoubleGeneral, if 'precision' < 0.
Note
  • If conversion succeeds, set errno to zero and return the converted string value in 'out_str'.
  • Otherwise, set errno to non-zero, value of 'out_str' is undefined.

Definition at line 2320 of file ncbistr.cpp.

References buffer, conv, NStr::DoubleToString(), NStr::fDoubleFixed, NStr::fDoubleGeneral, NStr::fDoublePosix, NStr::fDoubleScientific, finite, flags, format, kMaxDoubleStringSize, n, precision, and rapidjson::value.

◆ DoubleToString_Ecvt()

SIZE_TYPE NStr::DoubleToString_Ecvt ( double  value,
unsigned int  precision,
char *  buf,
SIZE_TYPE  buf_size,
int dec,
int sign 
)
static

Convert double to string with specified precision.

The result consists of three parts: significant digits, exponent and sign. For example, input value -12345.67 will produce buf = "1234567", *dec = 4, and *sign = -1. NOTE: The output character buffer is NOT zero-terminated. The buffer is NOT padded with zeros. This function DOES NOT check 'value' for being finite or not-a-number; if it is, the result is unpredictable. This function is less precise for a small fraction of values (the difference is in the last significant digit) than its 'DoubleToString' siblings, but it is much faster.

Parameters
valueDouble value to be converted.
precisionMaximum number of significant digits to preserve. If precision is greater than maximum for the current platform, it will be truncated to this maximum.
bufPut result of the conversion into this buffer.
buf_sizeSize of buffer, "buf".
decExponent
signSign of the value
Returns
The number of bytes written into "buf".

Definition at line 2451 of file ncbistr.cpp.

Referenced by CObjectOStreamAsn::WriteDouble2().

◆ DoubleToStringPosix()

SIZE_TYPE NStr::DoubleToStringPosix ( double  value,
unsigned int  precision,
char *  buf,
SIZE_TYPE  buf_size 
)
static

Convert double to string with specified precision and put the result into a character buffer, in scientific format.

NOTE: The output character buffer is NOT zero-terminated. The decimal separator is dot, always. This function DOES NOT check 'value' for being finite or not-a-number; if it is, the result is unpredictable. This function is less precise for a small fraction of values (the difference is in the last significant digit) than its 'DoubleToString' siblings, but it is much faster.

Parameters
valueDouble value to be converted.
precisionMaximum number of significant digits to preserve. If precision is greater than maximum for the current platform, it will be truncated to this maximum.
bufPut result of the conversion into this buffer.
buf_sizeSize of buffer, "buf".
Returns
The number of bytes written into "buf".

Definition at line 2662 of file ncbistr.cpp.

Referenced by CObjectOStreamAsnBinary::WriteDouble2(), CObjectOStreamJson::WriteDouble2(), and CObjectOStreamXml::WriteDouble2().

◆ empty() [1/2]

template<typename _TChar >
bool CTempXStr< _TChar >::empty ( void  ) const
inline

Definition at line 136 of file ncbi_xstr.hpp.

References CTempXStr< _TChar >::length().

◆ empty() [2/2]

bool CTempString::empty ( void  ) const
inline

Return true if the represented string is empty (i.e., the length is zero)

Definition at line 334 of file tempstr.hpp.

References CTempString::m_Length.

Referenced by CTabDelimitedValidator::_OperateRows(), CTabDelimitedValidator::_ProcessHeader(), CDefLineJoiner::Add(), CHttpFormData::AddEntry(), CReadUtil::AddGeneOntologyTerm(), CHttpFormData::AddProvider(), SAccGuide::AddRule(), CBuildDatabase::AddSequences(), CNCBlobKey::Assign(), CObjectIStreamXml::BeginClassMember(), CGRPCServerCallbacks::BeginRequest(), BOOST_AUTO_TEST_CASE(), CObjectIStreamXml::CloseStackTag(), NStr::CompareCase(), NStr::CompareNocase(), CDBLB_ServiceMapper::ConfigureFromRegistry(), CNCActiveHandler::CopyPurge(), CPerfLogGuard::CPerfLogGuard(), CSeqTableSetAnyObjField::CSeqTableSetAnyObjField(), CShortReadFastaInputSource::CShortReadFastaInputSource(), CDiff::Diff(), CStrTokenize< TStr, TV, TP, TCount, TReserve >::Do(), CFindPattern::Find(), CSourceModParser::FindMod(), fta_if_wgs_acc(), g_HttpPost(), g_HttpPut(), CDeflineGenerator::GenerateDefline(), CBlobStoreBase::GenReadQuery(), CWGSDb_Impl::GetAccSeq_id(), CWGSScaffoldIterator::GetAccSeq_id(), CWGSProteinIterator::GetAccSeq_id(), CWGSScaffoldIterator::GetGeneralOrPatentSeq_id(), CBamAlignIterator::GetMatchAlign(), CMemorySrcFileMap::GetMods(), CWGSDb_Impl::GetProtAccRanges(), CWGSProteinIterator::GetSeq_descr(), GetTwoFieldSubfield(), CSeq_feat::HasExceptionText(), CNCBlobKeyLight::IsICacheKey(), CNCBlobAccessor::IsPurged(), CCSraAlignIterator::IsSetName(), CCSraShortReadIterator::IsSetName(), CNCBlobKeyLight::IsValid(), CNCBlobKeyLight::KeyForLogs(), CStructuredCommentsReader::LoadComments(), CStructuredCommentsReader::LoadCommentsByRow(), CForeignContaminationScreenReportReader::LoadFile(), make_server(), CS2N_Guard::Message(), CWGSDb_Impl::NormalizePathOrAccession(), SRegSynonyms::NotFound(), CPubseqGatewayApp::OnGetNA(), CRowReaderStream_IANA_CSV::OnNextLine(), CRowReaderStream_NCBI_TSV::OnNextLine(), CObjectIStreamXml::OpenStackTag(), CTestNameToInfoMapLoader::operator()(), CNetServProtoParserBase::ParseCommand(), CFastaReader::ParseGapLine(), CSeq_id::ParseIDs(), CFeatureTableReader_Imp::ParseInitialFeatureLine(), CPSGS_OSGGetBlobBase::ParsePSGBlobId(), CPSGS_OSGGetBlobBase::ParsePSGId2Info(), CFastaDeflineReader::ParseRange(), ParseTrack(), CMemoryLineReader::PeekChar(), CBufferedLineReader::PeekChar(), CHttpSession_Base::Post(), CPerfLogger::Post(), CAltValidator::ProcessQueue(), CNCBlobAccessor::Purge(), CHttpSession_Base::Put(), CGFFReader::Read(), CColumnarVCFReader::ReadHeader(), CFastaReader::ReadOneSeq(), CFeatureTableReader_Imp::ReadSequinFeatureTable(), CObjectIStreamXml::ReadUndefinedAttributes(), CTabDelimitedValidator::RegisterAliases(), CRegexpUtil::Replace(), CRegexpUtil::ReplaceRange(), SGridWorkerNodeImpl::Run(), s_AddVoucherAndIsolate(), s_GetVDBSeverityTag(), s_MatchExcludeMask(), s_SplitVersion(), NStr::Sanitize(), CTL_LangCmd::Send(), CTextseq_id::Set(), CSeq_id::Set(), CPDB_seq_id::SetChainIdentifiers(), sParseAccessionPrefix(), sx_AddAnnotBytes(), sx_AddDescrBytes(), CRowReaderStream_Excel_CSV::Tokenize(), CRowReaderStream_IANA_TSV::Tokenize(), transform_range(), CRowReaderStream_IANA_CSV::Translate(), CRowReaderStream_Excel_CSV::Validate(), CRowReaderStream_IANA_CSV::Validate(), SWGSCreateInfo::x_AddDescr(), CFeatureTableReader_Imp::x_AddGBQualToFeature(), CSourceFeatureItem::x_AddQuals(), CWriteDB_IsamIndex::x_AddTextId(), CDeflineGenerator::x_AdjustProteinTitleSuffix(), CDeflineGenerator::x_AdjustProteinTitleSuffixIdx(), CSourceModParser::x_ApplyMods(), CNCMessageHandler::x_AssignCmdParams(), CDeflineGenerator::x_DescribeClones(), CDiff::x_Diff(), x_FirstWord(), x_GetDivisionProc(), x_GetDivisionProcIdx(), CAuthor::x_GetLabelV2(), CDeflineGenerator::x_GetModifiers(), CPubseqGatewayApp::x_GetSNPScaleLimit(), CPubseqGatewayApp::x_GetTimeSeries(), CBioseqIndex::x_InitDescs(), CSeqTableInfo::x_Initialize(), CBioseqIndex::x_InitSource(), CRowReaderStream_Excel_CSV::x_IsNull(), CString_constraint::x_IsWholeWordMatch(), CDB_Numeric::x_MakeFromString(), CFeatureSearchJob::x_Match(), CRegexpTemplateTester::x_Op_Skip(), CDeflineGenerator::x_OrganelleName(), CTableImportDataSource::x_ParseEntry(), CFeatureTableReader_Imp::x_ParseFeatureTableLine(), CTableImportDataSource::x_ParseQuotedEntry(), CGFFReader::x_ParseStructuredComment(), CGFFReader::x_ParseTypeComment(), CPubseqGatewayApp::x_ProcessCommonGetAndResolveParams(), CNetScheduleHandler::x_ProcessMsgBatchHeader(), CNCMessageHandler::x_PurgeToNextPeer(), CShortReadFastaInputSource::x_ReadFastaOneSeq(), CShortReadFastaInputSource::x_ReadFastc(), CShortReadFastaInputSource::x_ReadFastqOneSeq(), CFeature_table_reader::x_ReadFeatureTable(), CNCActiveHandler::x_ReadHttpDataPrefix(), CNCActiveHandler::x_ReadSyncStartExtra(), CMemorySrcFileMap::x_RegisterLine(), CDeflineGenerator::x_SetBioSrc(), CDeflineGenerator::x_SetFlags(), CDeflineGenerator::x_SetFlagsIdx(), COSGServiceMapper::x_SetRating(), CDeflineGenerator::x_SetSuffix(), CDeflineGenerator::x_SetTitleFromBioSrc(), CDeflineGenerator::x_SetTitleFromGPipe(), CDeflineGenerator::x_SetTitleFromMap(), CDeflineGenerator::x_SetTitleFromNC(), CDeflineGenerator::x_SetTitleFromNM(), CDeflineGenerator::x_SetTitleFromNR(), CDeflineGenerator::x_SetTitleFromProtein(), CDeflineGenerator::x_SetTitleFromProteinIdx(), CDeflineGenerator::x_SetTitleFromSegSeq(), CDeflineGenerator::x_SetTitleFromWGS(), CWig2tableApplication::x_SkipWS(), CNCMessageHandler::x_StartCommand(), CFeatureTableReader_Imp::x_StringToLongNoThrow(), CRegexpTemplateTester::x_SubstituteVars(), CFeatureTableReader_Imp::x_TokenizeLenient(), CRequestContext::x_UpdateStdContextProp(), CRequestContext::x_UpdateStdPassThroughProp(), and CReaderBase::xIsCommentLine().

◆ Encode() [1/2]

string CStringEncoder_Url::Encode ( const CTempString  src,
EStringType  stype 
) const
virtual

Definition at line 7290 of file ncbistr.cpp.

◆ Encode() [2/2]

virtual string IStringEncoder::Encode ( const CTempString  src,
EStringType  stype 
) const
pure virtual

Encode the string.

Implemented in CExtraEncoder.

Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

◆ EncodingToString()

string CUtf8::EncodingToString ( EEncoding  encoding)
static

Give Encoding name as string.

Parameters
encodingEEncoding enum. (Throw CStringException if passed eEncoding_Unknown.)
Returns
Encoding name

Definition at line 6778 of file ncbistr.cpp.

◆ end()

CTempString::const_iterator CTempString::end ( void  ) const
inline

◆ EndsWith() [1/2]

bool NStr::EndsWith ( const CTempString  str,
char  end,
ECase  use_case = eCase 
)
inlinestatic

Check if a string ends with a specified character value.

Parameters
strString to check.
endCharacter value to check for.
use_caseWhether to do a case sensitive compare(default is eCase), or a case-insensitive compare (eNocase) while checking.

Definition at line 5437 of file ncbistr.hpp.

References NStr::eCase, last(), str(), tolower(), and toupper().

◆ EndsWith() [2/2]

bool NStr::EndsWith ( const CTempString  str,
const CTempString  end,
ECase  use_case = eCase 
)
inlinestatic

Check if a string ends with a specified suffix value.

Parameters
strString to check.
endSuffix value to check for.
use_caseWhether to do a case sensitive compare(default is eCase), or a case-insensitive compare (eNocase) while checking.
Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 5430 of file ncbistr.hpp.

References NStr::Equal(), and str().

Referenced by CSeqTableLocColumns::AddColumn(), AddComment(), CKeywordParser::AddDataLine(), CPCRSetList::AddFwdName(), CPCRSetList::AddFwdSeq(), CCommentItem::AddPeriod(), CPCRSetList::AddRevName(), CPCRSetList::AddRevSeq(), AdjustSingleFeature(), AffilStreetEndsWith(), NMacroUtil::ApplyAuthorNames(), CExpansionRule::ApplyRule(), CEditSubpanel::ApplyToAll(), CEditSubpanel::ApplyToSelected(), CFieldChoicePanel::AutoMatchRNA(), CFieldChoicePanel::AutoMatchSrc(), BOOST_AUTO_TEST_CASE(), CalculateEffectiveTranslationLengths(), CCDSTranslationProblems::CalculateTranslationProblems(), CAutoDefMiscCommentClause::CAutoDefMiscCommentClause(), CAutoDefMobileElementClause::CAutoDefMobileElementClause(), CAutoDefParsedIntergenicSpacerClause::CAutoDefParsedIntergenicSpacerClause(), CAutoDefParsedRegionClause::CAutoDefParsedRegionClause(), CAutoSqlCustomField::CAutoSqlCustomField(), NMItemData::CheckTableNameAndColumns(), CLatLonCountryMap::CLatLonCountryMap(), CGridCommandLineInterfaceApp::Cmd_Discover(), CMsvcPrjFilesCollector::CollectSources(), CPepXML::ConvertDouble(), CValidErrItem::ConvertToErrCode(), CProjectsLstFileFilter::ConvertToMask(), CDirEntry::ConvertToOSPath(), CSrcTableColumnBaseFactory::Create(), CFeatureSeqTableColumnBaseFactory::Create(), CreateActionBiosource(), CMacroWordSubstitutionDlg::CreateControls(), CSequenceEditingEventHandler::DeleteSpecificStructuredComment(), SAppProjectT::DoCreate(), DoesCodingRegionEndWithStopCodon(), CAutoDefFeatureClause::DoesmRNAProductNameMatch(), CStringConstraint::DoesTextMatch(), EndsWithBadCharacter(), CSimpleEnvRegMapper::EnvToReg(), edirect::Execute(), CCleanup::ExtendToStopIfShortAndNotPartial(), CMapperQueryOptionsArgs::ExtractAlgorithmOptions(), CBlastDatabaseArgs::ExtractAlgorithmOptions(), CStdCmdLineArgs::ExtractAlgorithmOptions(), CSubSource::FixDateFormat(), ICitationBase::FixPages(), CName_std::FixSuffix(), CFlatSiteQVal::Format(), CFlatSubSourcePrimer::Format(), CGenbankFormatter::FormatCache(), CGBSeqFormatter::FormatDefline(), CGenbankFormatter::FormatOrigin(), CGBSeqFormatter::FormatReference(), CGBSeqFormatter::FormatSource(), g_IsMasterAccession(), g_ServerInfoToJson(), CScore_CdsInternalStops::Get(), CEditSequenceEnds::GetCommand(), CStaticDataType::GetFullCType(), NMItemData::GetFuncFromTable_Depr(), GetIStream(), SrcEditDialog::GetLabelForTitle(), CAuth_list::GetLabelV2(), CBulkLocationPanel::GetLocForBioseq(), GetRetranslateCDSCommand(), NMItemData::GetRNASpecificFields(), GetRptTypeValue(), CAutoDefModifierCombo::GetSourceDescriptionString(), GetStrainCandidates(), GetTargetedLocusNameConsensus(), CDB_BigDateTime::GetTimeFormat(), GetTitle(), CBlastQuerySourceBioseqSet::GetTitle(), CGeneralIDField::GetVal(), HasNoStop(), CProjectsLstFileFilter::InitFromString(), CLocationEditPolicy::Interpret3Policy(), CGff2Reader::IsAlignmentData(), CGff2Record::IsAlignmentRecord(), CSeqUtils::IsCoverageAnnotName(), CSymResolver::IsDefine(), SMakeProjectT::IsMakeAppFile(), SMakeProjectT::IsMakeDllFile(), SMakeProjectT::IsMakeLibFile(), IsProducedByDatatool(), NMacroUtil::IsStructVoucherPart(), CMessageHandlerThrowOnError::IsTaxidQuery(), CAutoDefFeatureClause_Base::IsuORF(), CPCRPrimerSeq::IsValid(), CRequestContext::IsValidSessionID(), JoinString(), CAutoDefFeatureClause_Base::ListClauses(), CCompoundRWRegistry::LoadBaseRegistries(), FeatUtil::MakeCodeBreak(), CAutoDefParsedIntergenicSpacerClause::MakeRegion(), ICitationBase::MaybeAddSpace(), PssmMaker::modifyQuery(), CCountries::NewFixCountry(), NMItemData::NormalizeFieldForFeatPanel(), CComment_rule::NormalizePrefix(), NSTValidateProlongValue(), SGridWorkerNodeImpl::OfflineRun(), CELinkParser< T >::OnEndElement(), CJournalPanel::OnJournalPmidTextUpdated(), CMacroWordSubstitutionDlg::OnOpenFile(), NMItemData::OnSelectFeature(), CLocationListCtrl::OnSortClick(), CTestNameToInfoMapLoader::operator()(), PPredDbTagByName::operator()(), operator<<(), CHttpCookie::Parse(), CGb_qual::ParseExperiment(), CAutoDefParsedtRNAClause::ParseString(), CMakefilePatch::PatchTreeMakefiles(), PortalBookURLToCCddBookRef(), CConnTest::PostCheck(), CConnTest::PreCheck(), CTabularFormatter_StopCodonChanges::Print(), CValXMLStream::Print(), CAutoDefFeatureClause_Base::PrintClause(), PrintSAM(), CDataTypeModule::PrintSampleDEF(), PrintSAMUnaligned(), CNewCleanup_imp::ProtrefBC(), CMsvcProjectMakefile::Redefine(), RelaxedMatch(), RemoveAffilStreetEnd(), CSubSource::RemoveCultureNotes(), COrgrefProp::RemoveOrgrefProp(), CCommentItem::RemovePeriodAfterURL(), CStrainRequest::RequireTaxname(), COrgMod::RescueInstFromParentheses(), CRetranslateCDS::RetranslateCDSCommand(), CAddGlobalCodeBreak::RetranslateCDSCommand(), CExtendCDSToStop::RetranslateCDSCommand(), CNewCleanup_imp::RnaFeatBC(), CNewCleanup_imp::RnarefBC(), CTLSApp::Run(), CRunTestApplication::Run(), CEditingBtnsPanel::RunMacroWithReport(), CStructuredCommentPanel::s_AddPoundSigns(), s_AddReplacedExt(), s_BaseDir(), CMacroFunction_AuthorFix::s_BuildName(), s_CheckValueForTID(), CCleanup::s_CleanupNameStdBC(), s_CollectRelPathes(), s_DoUSAStateCleanup(), CMacroFunction_EditStringQual::s_EditText(), ApplyCDSFrame::s_FindMatchingFrame(), CMacroFunction_ApplyCDSFrame::s_FindMatchingFrame(), IAuthorEditor::s_FixInitialsNew(), s_FormatCitGen(), s_FormatSecondaryAccessions(), s_GetAuthorNames(), s_GetMiRNAProduct(), CMacroFunction_PubFields::s_GetObjectsFromPersonID(), CCmdCreateCDS::s_GetProductSequence(), s_IsAllDigitsOrPeriods(), s_IsAllowedOrigin(), s_IsCompoundRptTypeValue(), s_IsGenbankMasterAccession(), s_IsState(), CMacroFunction_StringConstraints::s_IsSynonymFile(), s_IsUndefinedSpecies(), s_MatchesBoundary(), s_NormalizeTokens(), s_NoteFinalize(), CSingleAuthorPanel::s_ParseInitialsFromName(), s_ParseParentQual(), s_ParseTRnaFromAnticodonString(), s_QualVectorToNote(), s_RemovePeriod(), CStructuredCommentPanel::s_RemovePoundSigns(), NMacroUtil::s_SetInitials(), s_SetTrnaProduct(), s_SplitKV(), s_StringToCodeBreak(), s_TitleEndsInOrganism(), s_TitleFromSegment(), s_UpdateTarget(), s_WillContinue(), Sequence::Sequence(), CPubField::SetAuthorField(), CCleanup::SetCDSPartialsByFrameAndTranslation(), CApplyAuthorsTreeItemData::SetData(), CRNAFieldNamePanel::SetFieldName(), CDualRNAFieldNamePanel::SetFieldName(), CSourceFieldNamePanel::SetFieldName(), CDualRNAFieldNamePanel::SetFieldName2(), CAutoDefParsedClause::SetMiscRNAWord(), CAutoSqlCustomField::SetUserField(), CEditingActionDescAuthorFirstName::SetValue(), sGetReader(), CBioSource::ShouldIgnoreConflict(), NSearchFeatPanel::SplitPosOrRange(), sRunTest(), CUnculTaxTool::StandardFixes(), CMacroLib::StoreSynonymList(), CSymResolver::StripSuffix(), sUpdateCase(), CMacroFunction_ConvertStringQual::TheFunction(), CMacroFunction_ConvertRNARelQual::TheFunction(), CMacroFunction_ParseStringQual::TheFunction(), CMacroFunction_ParseRNARelQual::TheFunction(), CMacroFunction_CopyStringQual::TheFunction(), CMacroFunction_CopyRNARelQual::TheFunction(), CLocationListCtrl::TransferDataFromWindow(), CSeqTranslator::TranslateToProtein(), TrimStopsFromCompleteCDS(), SNetStorage::SConfig::Validate(), CSingleFeatValidator::ValidateCharactersInField(), CValidError_imp::ValidateCitations(), CValidError_bioseqset::ValidateNucProtSet(), CValidError_bioseq::ValidateSeqDescContext(), CValidError_imp::ValidateSubSource(), CMacroFunction_AddPubAuthor::x_AddAuthor(), CAutoDefFeatureClause_Base::x_AddOnetRNAIntergenicSpacerElement(), CNewCleanup_imp::x_AddReplaceQual(), CFeatureItem::x_AddRptUnitQual(), CDeflineGenerator::x_AdjustProteinTitleSuffix(), CDeflineGenerator::x_AdjustProteinTitleSuffixIdx(), CStreamLineReader::x_AdvanceEOLCRLF(), CTar::x_Append(), CTrackConfigManager::x_AppendKeyDisplayOptions(), CAppendModToOrg::x_ApplyToBioSource(), CGenbankFormatter::x_Authors(), CCleanupApp::x_BatchExtendCDS(), CNewCleanup_imp::x_BondEC(), CNewCleanup_imp::x_CanRemoveGenbankBlockSource(), CFeaturePropagator::x_CdsCleanupPartials(), CDiffList::x_CleanupAndMerge_SingleEdits(), CMacroInterpreter::x_ConvertFeatQualValidateArgs(), CTaxon1::x_ConvertOrgrefProps(), CCgiEntryReaderContext::x_DelimitedRead(), CImportFeatTable::x_DoImportCDS(), CAdjustFeaturesForGaps::x_DoOne(), CAutoDefFeatureClause::x_FindNoncodingFeatureKeywordProduct(), CCommentItem::x_GatherDescInfo(), CReferenceItem::x_GatherRemark(), CAutoDefFeatureClause::x_GetDescription(), CMacroEditorContext::x_GetGUIFieldForRNA(), CFlatItemFormatter::x_GetKeywords(), CAuthor::x_GetLabelV2(), CParseQualTreeItemData::x_GetParsedTextDescription(), CLocationListCtrl::x_GetRowData(), CAutoDefFeatureClause_Base::x_GetTRNAIntergenicSpacerType(), CCgiRequest::x_Init(), CGencollIdMapper::x_Init(), CConn_FTPDownloadStream::x_InitDownload(), CSearch_func::x_InWordBeforeCytochromeOrCoenzyme(), CTraversalNode::x_LoadDataFromASNNode(), CNetScheduleHandler::x_MakeSureSingleEOR(), CTraversalNode::x_MergeNames(), CGFFReader::x_MergeRecords(), CDiscRepApp::x_ParseDirectory(), CFeatureTableReader_Imp::x_ParseTrnaExtString(), CNewCleanup_imp::x_PostProcessing(), CMacroInterpreter::x_PostProcessRmvDbxref(), CMacroInterpreter::x_PostProcessSetException(), CAsn2FastaApp::x_ProcessISubdirectory(), CNSTServiceRegistry::x_ReadServiceProperties(), CGencollIdMapper::x_RecursiveSeqFix(), CCountries::x_RemoveDelimitersFromEnds(), x_RepairCountryName(), CReportTrim::x_RetranslateCDS(), CNewCleanup_imp::x_RRNANameBC(), variation_ref::CHgvsParser::x_SeqLocToStr(), CMasterContext::x_SetBaseName(), CFeatureGenerator::SImplementation::x_SetComment(), CCommentItem::x_SetCommentWithURLlinks(), CMacroAdvStringConstraintPanel< T >::x_SetControls(), CUnculturedTool::x_StandardFixes(), CMatchFeatureTableDlg::x_TokenMatch(), CCDSTranslationPanel::x_Translate(), CFeatureTableReader_Imp::x_TryToParseOffset(), CProtValidator::x_ValidateProteinName(), CGtfReadRecord::xAssignAttributesFromGff(), CBedReader::xDetermineLikelyColumnCount(), CGff3LocationMerger::xGetLocationIds(), CGff3LineReader::xInitializeAttributes(), CGtfLineReader::xInitializeAttributes(), CAlnScannerSequin::xIsSequinOffsetsLine(), CGff2Record::xNormalizedAttributeValue(), CQualParser::xParseQualifierCont(), CQualParser::xParseQualifierStart(), CVcfReader::xProcessMetaLineFilter(), CVcfReader::xProcessMetaLineFormat(), CVcfReader::xProcessMetaLineInfo(), CQualParser::xQualValAppendLine(), and CGff3Reader::xUpdateAnnotFeature().

◆ Equal() [1/4]

bool NStr::Equal ( const char *  s1,
const char *  s2,
ECase  use_case = eCase 
)
inlinestatic

Test for equality of two strings – char* version.

Parameters
s1String to be compared – operand 1.
s2String to be compared – operand 2.
use_caseWhether to do a case sensitive compare (default is eCase), or a case-insensitive compare (eNocase).
Returns
  • 0, if s1 == s2;
  • Negative integer, if s1 < s2;
  • Positive integer, if s1 > s2.
See also
EqualNocase(), Equal() versions with similar argument types.

Definition at line 5400 of file ncbistr.hpp.

References NStr::eCase, NStr::EqualCase(), and NStr::EqualNocase().

◆ Equal() [2/4]

bool NStr::Equal ( const CTempString  s1,
SIZE_TYPE  pos,
SIZE_TYPE  n,
const char *  s2,
ECase  use_case = eCase 
)
inlinestatic

Test for equality of a substring with another string.

Parameters
s1String containing the substring to be compared.
posStart position of substring to be compared.
nNumber of characters in substring to be compared.
s2String (char*) to be compared with substring.
use_caseWhether to do a case sensitive compare(eCase – default), or a case-insensitive compare (eNocase).
Returns
  • true, if s1[pos:pos+n) equals s2;
  • false, otherwise.
See also
Other forms of overloaded Equal() with differences in argument types: char* vs. CTempString[Ex]
Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 5384 of file ncbistr.hpp.

References NStr::eCase, NStr::EqualCase(), NStr::EqualNocase(), n, and CTempString::substr().

Referenced by CUnculTaxTool::AddBioSource(), CSubmissionPrepMainPanel::AddField(), CAutoDefFeatureClause::AddGene(), AddGoodImpFeat(), AddGoTermToList(), AddMiscRNAFeatures(), AddStructuredCommentToAttributes(), CSingleSequencePanel::AddToUpdateCommand(), AdjustDBLinkFieldName(), CTaxValidationAndCleanup::AdjustOrgRefsWithTaxLookupReply(), CFeatGapInfo::AdjustProteinSeq(), AlreadyHasFeature(), AnalyzeField(), CEditPubDlg::AppendToErrorMsg(), ApplyChimeraValuesTableToSeqEntry(), CGAssemblyOtherPanel::ApplyCommand(), CGAssemblyPanel::ApplyCommand(), ApplyCommentValuesTableToSeqEntry(), CGenomeInfoPanel::ApplyDescriptor(), ApplyFeatureSeqTableToSeqEntry(), SrcEditDialog::ApplySrcTableToSeqEntry(), CSpecificHostMapForFix::ApplyToOrg(), AreAllColumnValuesTheSame(), CCleanup::AreBioSourcesMergeable(), CAutoDefModifierCombo::AreFeatureClausesUnique(), Asn2gnbkCompressSpaces(), CSubSource::AutoFix(), CFieldChoicePanel::AutoMatchRNA(), CValidator::BadCharsInAuthorName(), CNewCleanup_imp::BiosourceBC(), BioSourceFromImpFeat(), BOOST_AUTO_TEST_CASE(), BOOST_FIXTURE_TEST_CASE(), BuildChimeraValuesTableFromSeqEntry(), CCDSTranslationProblems::CalculateTranslationProblems(), CAutoDefMobileElementClause::CAutoDefMobileElementClause(), CAutoDefSatelliteClause::CAutoDefSatelliteClause(), CDBInterfacesFileConnParams::CDBInterfacesFileConnParams(), CGoTermSortStruct::CGoTermSortStruct(), CheckDate(), CheckQual(), CheckStrings(), CLatLonCountryMap::CLatLonCountryMap(), CAutoDefFeatureClause_Base::ClauseFromPhrase(), CCitPatCleaner::Clean(), CCleanup::CleanupCollectionDates(), ClearGoTermValue(), CStructCommFieldValuePair::ClearVal(), CStructCommDBName::ClearVal(), CStructCommFieldName::ClearVal(), CStructuredCommentField::ClearVal(), CAutoDefFeatureClause_Base::Consolidate(), CConvertCDSToMiscFeat::Convert(), CValidErrItem::ConvertToErrCode(), SrcEditDialog::CountColumnRowConflicts(), CountColumnRowConflicts(), CountColumnValueConflicts(), CMiscSeqTableColumn::CountConflicts(), CountDefLineConflicts(), CountGoTerms(), CAutoDefFeatureClause_Base::CountUnknownGenes(), CSrcTableColumnBaseFactory::Create(), CFeatureGenePanel::CreateControls(), CSpecificHostRequest::CSpecificHostRequest(), CNewCleanup_imp::DbtagBC(), CUser_field::DeleteField(), CDbxrefPanel::DeleteTaxonRef(), CAutoDefFeatureClause_Base::DisplayAlleleName(), DoesColumnHaveValue(), CAutoDefFeatureClause::DoesmRNAProductNameMatch(), CStringConstraint::DoesTextMatch(), NStr::EndsWith(), CName_std::ExtractSuffixFromLastName(), SrcEditDialog::FindBadColumns(), CAutoDefFeatureClause::FindBestParentClause(), CComment_rule::FindFieldRuleRef(), CAutoDefFeatureClause_Base::FindGeneProductName(), FindNonUniqueStrings(), FindSeqTableColumnByName(), CSubSource::FixAltitude(), CSubSource::FixCapitalization(), CBioSource::FixEnvironmentalSample(), CSeqFeatData::FixImportKey(), CGb_qual::FixMobileElementValue(), CSubSource::FixSexQualifierValue(), COrgMod::FixStructuredVoucher(), SrcEditDialog::FixTableAfterImport(), FixTableAfterImport(), g_GetConfigFlag(), CNewCleanup_imp::GBQualSeqFeatBC(), CNewCleanup_imp::GenerefBC(), CValidError_feat::GetAccessionsFromInferenceString(), IEditingAction::GetActionCommand(), GetAvailableFields(), CBioSource::GetBioprojectLocation(), GetBiosampleStatus(), GetBioSampleStatusFromNode(), GetCitSubmit(), CSubPrep_panel::GetCitSubPub(), CConvertCdsToMiscFeat::GetCommand(), CConvertFeatDlg::GetCommand(), CEditPubDlg::GetCommand(), CVirusNonCodingFeaturesPanel::GetCommand(), CTMgr_ClientInfo::GetContextAttr(), CAutoDefSourceGroup::GetDefaultExcludeSp(), CEditObjectSeq_desc::GetDescriptorType(), GetEmblBlockXref(), CValidErrorFormat::GetFeatureContentLabel(), GetFieldDiffs(), GetFieldDiffsFromNameValLists(), CUser_field::GetFieldRef(), CUser_object::GetFieldRef(), CPrintOptions::GetFormatFromName(), CConvertFeatureTreeItemData::GetFunction(), CBioSource::GetGenomeByOrganelle(), GetGoTermErrors(), SrcEditDialog::GetLabelForTitle(), CMatchCDS::GetNummRNA(), CBioSource::GetOriginByString(), CStructuredCommentsReader::CStructComment::GetPrefix(), GetPrefixOrSuffixType(), CWGSDb_Impl::GetProtAccRowId(), CComment_rule::GetStructuredCommentPrefix(), GetTargetedLocusNameConsensus(), CStdAnnotTypes::GetTypeAsInt(), CStructCommFieldValuePair::GetVals(), CStructCommFieldName::GetVals(), CStructuredCommentField::GetVals(), CInferencePanel::GetValue(), CApplyStructCommentTreeItemData::GetVariables(), CAutoDefFeatureClause_Base::GroupSegmentedCDSs(), CValidError_imp::HandleTaxonomyError(), HasAmplifiedWithSpeciesSpecificPrimerNote(), HasCultureCollectionForATCCStrain(), HasMod(), HasStrainForATCCCultureCollection(), CLatLonCountryMap::IsClosestToLatLon(), IsCommonName(), CSubPrepIntroPanel::IsComplete(), CStructuredCommentField::IsEmpty(), CAutoDefFeatureClause::IsExonWithNumber(), CAutoDefFeatureClause_Base::IsGeneMentioned(), CStringConstraint::IsInRange(), CGb_qual::IsLegalInferenceDatabase(), CGb_qual::IsLegalMobileElementValue(), CAsnBinCompressed::IsLZOStream(), IsMappablePair(), IsMatchingIdMissing(), IsMet1(), CAutoDefMobileElementClause::IsOptional(), IsOrgNotFound(), CSubSource::IsPlasmidNameValid(), CStdAnnotTypes::IsPredefinedDescr(), CStdAnnotTypes::IsPredefinedDescrForType(), CAutoDefFeatureClause::IsPromoter(), CAutoDefPromoterAnd5UTRClause::IsPromoterAnd5UTR(), IsRBS(), IsSiteRef(), CStructuredCommentField::IsStructuredCommentForThisField(), COrgMod::IsStructuredVoucherValid(), CAutoDefSourceDescription::IsTrickyHIV(), CDiscrepancyContext::IsUnculturedNonOrganelleName(), CStructuredCommentField::IsValid(), CComment_rule::IsValid(), CSatelliteTypeNameColumn::IsValid(), CAutoDefFeatureClause_Base::IsValidFeatureClausePhrase(), CSubSource::IsValidSexQualifierValue(), CStdAnnotTypes::IsValidTypeStr(), CComment_rule::KeywordForPrefix(), CAutoDefFeatureClause_Base::ListClauses(), CTaxValidationAndCleanup::ListTaxLookupErrors(), CCleanup::MakeIRDFeatsFromSourceXrefs(), MakemRNAforCDS(), CExpectedError::Match(), MatchArrayString(), CEditingActionDescUserObject::Modify(), CEditingActionDescStructCommFieldName::Modify(), CEditingActionDescLocalId::Modify(), CEditingActionDescComment::Modify(), CNewCleanup_imp::MoveCitationQuals(), CNewCleanup_imp::MoveDbxrefs(), CNewCleanup_imp::MoveStandardName(), CCountries::NewFixCountry(), CCleanup::NormalizeGeneQuals(), CAutoDefFeatureClause::OkToGroupUnderByLocation(), CncRNASubPanel::OnChoice5Selected(), CVirusMoleculeQuestionsPanel::OnDataChange(), CSubmissionPrepMainPanel::OnEditSequencingTechnologyClicked(), CSrcModPanel::OnLeftUp(), CRNANamePanel::OnRNATypeSelected(), CBulkRNAAddPanel::OnSelectRNAType(), CAlignRNAAddPanel::OnSelectRNAType(), CRefGeneTrackLocListPanel::OnTypeChoiceSelected(), SKeywordChecker::operator()(), SRemovableOldname::operator()(), SRemovableOrgModNote::operator()(), STitleMatchString::operator()(), CAutoDefFeatureClause_Base::PluralizeInterval(), CGBQualPanel::PopulateGBQuals(), CComment_rule::PrefixForKeyword(), ProcessBiosampleStatusNode(), CBiosampleChkApp::ProcessOneDirectory(), CNewCleanup_imp::ProtRefEC(), CGene_ref::RefersToSameGene(), CAutoDefWithTaxonomy::RegeneratePopsetTitles(), CAutoDef::RegenerateSequenceDefLines(), RelaxedMatch(), RemoveDbxref(), CUser_object::RemoveNamedField(), CBioSource::RemoveOrgMod(), RemoveProblemsColumn(), CBioSource::RemoveSubSource(), CReorderStructuredComment::reorder_comment_by_rule(), CComment_rule::ReorderFields(), RescueProtProductQual(), impl::CDriverContext::ResetEnvSybase(), CEditingActionDescGenomeProjectId::ResetValue(), CEditingActionDescStructCommDbName::ResetValue(), RevComp(), CBiosampleChkApp::Run(), CMytestApplication::Run(), s_AffilSame(), s_AltitudeIsValid(), s_AreDifferentVariations(), s_AreFeatureClausesUnique(), s_AreFeatureLabelsSame(), s_AreGBQualsIdentical(), s_ArePrimersUnique(), s_AuthorListsSame(), s_AuthorsSame(), s_CleanCDDFeature(), CCleanup::s_CleanupGeneOntology(), CCleanup::s_CleanupGenomeAssembly(), CCleanup::s_CleanupNameStdBC(), CCleanup::s_CleanupStructuredComment(), s_CompleteGenomeNeedsChromosome(), s_CompressRunsOfSpaces(), s_DoUSAStateCleanup(), s_DuplicatesBiosource(), s_ExpandThisQual(), s_FeatureHasEvidenceOrInferenceQuals(), s_FindColumn(), CCleanup::s_FixEtAl(), s_FixncRNA(), s_FixRNAOtherByName(), s_FixtmRNA(), s_GeneralTagsMatch(), ApplyCDSFrame::s_GetFrameFromName(), s_GetMrnaProteinLink(), s_GetPrefixForStructuredComment(), s_HasMatchingGBMod(), s_HasOrgMod(), s_HtmlizeStructuredCommentData(), s_IsAllowedOrigin(), s_IsBioSample(), s_IsGenomeAnnotationStart(), s_IsIllegal(), s_IsPhage(), s_IsReportableStructuredComment(), s_IsRNASpacer(), s_IsrRNA(), s_IsState(), s_IsTPAAssemblyOkForBioseq(), s_IsValidRecombinationClass(), s_IsValidRegulatoryClass(), s_MakeCommonStringList(), s_MatchOrgname(), CMacroFunction_SetStructCommDb::s_MoveSuffixToTheEnd(), s_Name_stdsSame(), s_NameCloseEnough(), s_NameCloseEnoughC(), CGenusSpeciesFixup::s_PermuteTaxname(), s_ProcessedFromKey(), s_ProcessOrgRefMapLine(), CMacroFunction_RefreshDefline::s_RefreshDeflineCommand(), s_ReplaceListFromQuals(), s_SetMolinfoTechFromString(), s_ShouldIgnoreStructuredCommentFieldDiff(), s_TestOneWrongQual(), s_UpdateSubtype(), SetEnvSampleFixAmplifiedPrimers(), CUser_object::SetFieldRef(), CUser_field::SetFieldRef(), SetGoTermValue(), CStructuredCommentField::SetVal(), CBioSource::ShouldIgnoreConflict(), SortUniqueStrings(), NStr::StartsWith(), CDiscrepancyVisitorImpl< _Name >::Summarize(), TestBulkSpecificHostFixList(), CMacroFunction_AddDBLink::TheFunction(), CMacroFunction_ParseToStructComm::TheFunction(), CGBQualPanel::TransferDataFromWindow(), CncRNASubPanel::TransferDataFromWindow(), CSingleGbQualSubPanel::TransferDataFromWindow(), CtmRNASubPanel::TransferDataFromWindow(), CGAssemblyOtherPanel::TransferDataToWindow(), CRefGeneTrackLocListPanel::TransferDataToWindow(), CSingleGbQualSubPanel::TransferDataToWindow(), CtmRNASubPanel::TransferDataToWindow(), CGBQualStringListValidator::TransferFromWindow(), CGBQualStringListValidator::TransferToWindow(), TrimSpacesSemicolonsAndCommas(), COrg_ref::UpdateFromTable(), UpdatemRNAProduct(), CSubmissionPrepMainPanel::UpdateSeqTechCtrls(), CSubPrepFieldEditor::UpdateValues(), CCountries::USAStateCleanup(), CGeneValidator::Validate(), CMiscFeatValidator::Validate(), CAssemblyGapValidator::Validate(), CImpFeatValidator::Validate(), CValidError_imp::Validate(), CValidError_imp::ValidateAffil(), CValidError_imp::ValidateBioSource(), CValidError_bioseq::ValidateCollidingGenes(), CSubSource::ValidateLatLonCountry(), CAsnvalApp::ValidateOneDirectory(), CValidError_imp::ValidateOrgName(), CValidError_imp::ValidateOrgRef(), CValidError_imp::ValidatePubArticleNoPMID(), CValidError_imp::ValidatePubGen(), CValidError_bioseq::ValidateRepr(), CValidError_bioseq::ValidateSeqId(), CValidError_imp::ValidateSeqLoc(), CValidError_imp::ValidateSubSource(), CAutoDefAvailableModifier::ValueFound(), CCleanup::WGSCleanup(), CNewCleanup_imp::x_AddEnvSamplOrMetagenomic(), CAutoDefModifierCombo::x_AddHIVModifiers(), CFeatureItem::x_AddQualsExt(), CStrainSerotypeInfluenza::x_AddToInfluenzaNames(), CSourceRequirements::x_AddUniquenessProblems(), CFeatGapInfo::x_AdjustOrigLabel(), x_AdjustOrigLabel(), CAsnvalApp::x_AliasLogFile(), COrgGeneralPanel::x_ApplyChangesToSource(), CTaxValidationAndCleanup::x_ApplySpecificHostMap(), CAppendModToOrg::x_ApplyToBioSource(), CFixOrgModInst::x_ApplyToBioSource(), CSubmissionWizard::x_ApplyUserDescriptorToRecord(), CNewCleanup_imp::x_BondEC(), CNewCleanup_imp::x_CanRemoveGenbankBlockSource(), CValidError_bioseq::x_CheckOrigProteinAndTranscriptIds(), CFeatureItem::x_CleanQuals(), CNewCleanup_imp::x_CleanupGenbankBlock(), CGb_qual::x_CleanupRptAndReplaceSeq(), CAutoDefModifierCombo::x_CleanUpTaxName(), CValidError_bioseq::x_CompareStrings(), CTaxon1::x_ConvertOrgrefProps(), CSeq_id_Resolver__LRG::x_Create(), CSubPrep_panel::x_CreateMoleculeOptions(), CEnvironmentRegistry::x_Enumerate(), CGencollIdMapper::x_FillChromosomeIds(), CUrlArgs::x_Find(), CTblEditDlg::x_FindBadImportColumns(), CPrefixDeflinedlg::x_FindModifierBasedOnLabel(), CConvertFeatureBase::x_FindOption(), CTaxon2_data::x_FindProperty(), CTaxon2_data::x_FindPropertyConst(), CNewCleanup_imp::x_FixStructuredCommentKeywords(), CStrainSerotypeInfluenza::x_FixupOrganismNames(), CGenomeProjectItem::x_GatherInfo(), CAutoDefFeatureClause::x_GetDescription(), CAutoDef::x_GetFeatureClauseProductEnding(), CGenbankFormatter::x_GetFeatureSpanAndScriptStart(), CAutoDefFeatureClause::x_GetFeatureTypeWord(), CFeatureItem::x_GetFtableNameAlias(), CAutoDefFeatureClause::x_GetGenericInterval(), CAutoDef::x_GetHumanSTRFeatureClauses(), CRNANamePanel::x_GetMultiElementName(), CNAUtils::x_GetNAMetaData(), CAltitudePanel::x_GetNumber(), CAutoDefFeatureClause::x_GetProductName(), CAutoDefGeneClause::x_GetProductName(), CModifySeqId::x_GetRemoveOriginalIdCommand(), CRelaxedLookupDlg::x_GetSearchTerms(), CRNANamePanel::x_GetSingleElementName(), CStrainSerotypeInfluenza::x_GetStrainSerotypeConflicts(), CCDSTranslationProblems::x_GetTranslExceptProblems(), CNewCleanup_imp::x_HandleTrnaProductGBQual(), CTaxValidationAndCleanup::x_InterpretTaxonomyError(), CAutoDef::x_Is5SList(), CCDSTranslationProblems::x_IsThreeBaseNonsense(), CUser_object::x_IsUnreviewedType(), CUser_object::x_IsUnverifiedType(), CAutoDefFeatureClause_Base::x_LastIntervalChangeBeforeEnd(), CSubPrepIntroPanel::x_LaunchSubmitEditor(), CGencollIdMapper::x_MakeSpecForSeq(), CDB_ODBC_ConnParams::x_MapPairToParam(), CAutoDefFeatureClause_Base::x_MeetAltSpliceRules(), CNewCleanup_imp::x_MovedNamedValuesInStrain(), CGencollIdMapper::x_NCBI34_Guess(), CGencollIdMapper::x_NCBI34_Map_IdFix(), CAutoDefFeatureClause_Base::x_OkToConsolidate(), CNewCleanup_imp::x_OrgModBC(), CNAUtils::x_ParseNAMetaData(), CNewCleanup_imp::x_RemoveOldFeatures(), CNewCleanup_imp::x_SeqFeatCDSGBQualBC(), CNewCleanup_imp::x_SeqFeatRnaGBQualBC(), CBioseqContext::x_SetId(), CBioSourcePanel::x_SetOrganismInfo(), CLocAndGCodePanel::x_SetOrigin(), CValidError_bioseq::x_SetupCommonFlags(), CAutoDefFeatureClause::x_ShowTypewordFirst(), CNewCleanup_imp::x_SplitDbtag(), CCorrectRNAStrandDlg::x_StrandFromString(), CNewCleanup_imp::x_SubSourceBC(), x_TestList(), x_TestPair(), CMatchFeatureTableDlg::x_TokenMatch(), CValidError_bioseq::x_TranscriptIDsMatch(), CStrainSerotypeInfluenza::x_TrimmingOrganismNames(), CIdResolver::x_TryProcessLRG(), CEditObjectSeq_feat::x_UpdatemRNA(), CValidError_align::x_ValidateAlignPercentIdentity(), CCdregionValidator::x_ValidateConflict(), CSingleFeatValidator::x_ValidateGbquals(), CSingleFeatValidator::x_ValidateGeneXRef(), CSingleFeatValidator::x_ValidateNonGene(), CSingleFeatValidator::x_ValidateOldLocusTag(), CPeptideValidator::x_ValidatePeptideOnCodonBoundary(), CSingleFeatValidator::x_ValidateReplaceQual(), CValidError_desc::x_ValidateStructuredComment(), CValidError_desc::x_ValidateStructuredCommentSuffix(), CRNAValidator::x_ValidateTrnaCodons(), CSeqTableGridPanel::x_ValuesOkForNewColumn(), CVcfReader::xAssignVariantSource(), CVcfReader::xAssignVariationAlleleSet(), CVcfReader::xAssignVariationIds(), CSrcWriter::xFormatTabDelimited(), and CVcfReader::xProcessFilter().

◆ Equal() [3/4]

bool NStr::Equal ( const CTempString  s1,
SIZE_TYPE  pos,
SIZE_TYPE  n,
const CTempString  s2,
ECase  use_case = eCase 
)
inlinestatic

Test for equality of a substring with another string.

Parameters
s1String containing the substring to be compared.
posStart position of substring to be compared.
nNumber of characters in substring to be compared.
s2String to be compared with substring.
use_caseWhether to do a case sensitive compare (default is eCase), or a case-insensitive compare (eNocase).
Returns
  • 0, if s1[pos:pos+n) == s2;
  • Negative integer, if s1[pos:pos+n) < s2;
  • Positive integer, if s1[pos:pos+n) > s2.
See also
Other forms of overloaded Equal() with differences in argument types: char* vs. CTempString[Ex]

Definition at line 5392 of file ncbistr.hpp.

References NStr::eCase, NStr::EqualCase(), NStr::EqualNocase(), n, and CTempString::substr().

◆ Equal() [4/4]

bool NStr::Equal ( const CTempStringEx  s1,
const CTempStringEx  s2,
ECase  use_case = eCase 
)
inlinestatic

Test for equality of two strings.

Parameters
s1String to be compared – operand 1.
s2String to be compared – operand 2.
use_caseWhether to do a case sensitive compare (default is eCase), or a case-insensitive compare (eNocase).
Returns
  • true, if s1 equals s2;
  • false, otherwise.
See also
EqualNocase(), Equal() versions with similar argument types.

Definition at line 5406 of file ncbistr.hpp.

References NStr::eCase, NStr::EqualCase(), and NStr::EqualNocase().

◆ EqualCase() [1/4]

bool NStr::EqualCase ( const char *  s1,
const char *  s2 
)
inlinestatic

Case-sensitive equality of two strings – char* version.

Parameters
s1String to be compared – operand 1.
s2String to be compared – operand 2.
Returns
  • true, if s1 equals s2
  • false, otherwise
See also
EqualCase(), Equal() versions with same argument types.

Definition at line 5337 of file ncbistr.hpp.

References n, and NStr::strncmp().

◆ EqualCase() [2/4]

bool NStr::EqualCase ( const CTempString  s1,
SIZE_TYPE  pos,
SIZE_TYPE  n,
const char *  s2 
)
inlinestatic

Case-sensitive equality of a substring with another string.

Parameters
s1String containing the substring to be compared.
posStart position of substring to be compared.
nNumber of characters in substring to be compared.
s2String (char*) to be compared with substring.
Returns
  • true, if s1[pos:pos+n) equals s2;
  • false, otherwise
See also
Other forms of overloaded EqualCase() with differences in argument types: char* vs. CTempString[Ex]
Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 5325 of file ncbistr.hpp.

References n, and CTempString::substr().

Referenced by CSrcTableDbxrefColumn::AddToBioSource(), NMacroUtil::ApplyFirstName(), NMacroUtil::ApplyMiddleInitial(), COrgMod::CheckMultipleVouchers(), CCleanup::CleanupAffil(), CUnculturedTool::CorrectBioSource(), CCulturedTool::CorrectBioSource(), CEditHistory::CreateControls(), NStr::Equal(), IEditingActionFeat::Find(), CEditingActionFeatGeneLocusPlain::Find(), CEditingActionFeatGeneLocusRna::Find(), IEditingActionFeat::FindFeatForAnotherFeat(), COrgMod::FindInstitutionCode(), FindMatchInOrgRef(), NMacroUtil::FindNcbiAutofixUserObject(), IEditingActionFeat::FindOrCreateProtFeat(), FixStateAbbreviationsInAffil(), fta_seqid_same(), fta_StringMatch(), CAutoAddDBLink::Get(), CSrcTableDbxrefColumn::GetFromBioSource(), CMacroAdvStringConstraintPanel< T >::GetTextConstraint(), CGeneralIDField::GetVal(), CBankITCommentField::GetVals(), CLocalIDField::GetVals(), CMacroAdvStringConstraintPanel< T >::GetVars(), CSubSource::IsAltitudeValid(), CLocalIDField::IsEmpty(), CValidError_bioseq::IsFlybaseDbxrefs(), IsGeneOntology(), IsProductMatch(), CEditingActionFileId::IsSetValue(), CEditingActionGeneralIdTag::IsSetValue(), CValidator::IsValidDbxref(), LocusTagCheck(), CCountries::NewFixCountry(), CNewCleanup_imp::OrgnameBC(), ParseAccessionRange(), CColumnarVCFReader::ReadVariantsForChrs(), CMacroFunction_FixPubCaps::s_FixCapitalizationInAuthor(), CMacroFunction_FixPubCaps::s_FixCapitalizationInElement(), CMacroFunction_FixPubCaps::s_FixCapsInPubAffil_Affil(), CMacroFunction_FixPubCaps::s_FixCapsInPubAffil_City(), CMacroFunction_FixPubCaps::s_FixCapsInPubAffil_Country(), CMacroFunction_FixPubCaps::s_FixCapsInPubAffil_Div(), CMacroFunction_FixPubCaps::s_FixCapsInPubAffil_Street(), CMacroFunction_FixPubCaps::s_FixCapsInPubAffil_Sub(), CMacroFunction_MakeBoldXrefs::s_GetBarcodeId(), NSearchFeatPanel::s_GetFeatureLabel(), CMacroFunction_MakeBoldXrefs::s_HasBarcodeDbXref(), s_MatchSeqIds(), CMacroFunction_AuthorFix::s_MoveMiddleToFirst(), CMacroFunction_RemoveQual::s_RemoveFields(), CMacroFunction_AuthorFix::s_TruncateMiddleInitials(), CApplyTableItemData::SetData(), CApplyStrCommTableTreeItemData::SetData(), CApplyRNATableTreeItemData::SetData(), IEditMacroFunction::SetQualStringValue(), CBioSource::ShouldIgnoreConflict(), CCitSubUpdater::sx_GetCitSubForSequence(), CMacroFunction_FixFormat::TheFunction(), CMacroFunction_FixPubCaps::TheFunction(), CCDSTranslationPanel::TransferDataToWindow(), CtRNAProductPanel::TransferDataToWindow(), CUserFieldStringListValidator::TransferFromWindow(), CUserFieldStringListValidator::TransferToWindow(), CGeneValidator::Validate(), CProtValidator::Validate(), CValidError_imp::ValidateBioSource(), CValidError_bioseq::ValidateCompleteGenome(), CValidError_desc::ValidateDblink(), CValidError_bioseqset::ValidateNucProtSet(), CValidError_bioseqset::ValidatePopSet(), CValidError_bioseq::ValidateSeqDescContext(), CValidError_bioseq::ValidateSeqFeatContext(), CValidError_imp::ValidateSubAffil(), CSortedProteins::View(), CMacroFunction_ApplyStrucVoucherPart::x_ApplyPart(), CFixAffilCap::x_ApplyToCAffil(), CUpdateTLSNameDlg::x_CountTLSNameConflicts(), CMacroFunction_FixPubCaps::x_FixCapsInPubAffilCountry(), CMacroFunction_FixProteinFormat::x_FixProteinNames(), CMacroFunction_ParsedText::x_GetParseOptions(), CMacroFunction_RemoveOutside::x_GetRemoveTextOptions(), CMacroFunction_ParsedText::x_GetSpecialField(), CEditingActionBiosourceTaxnameAfterBinomial::x_GetTextAfterNomial(), CSrcTaxnameAfterBinomialColumn::x_GetTextAfterNomial(), CCreateGeneModelTask::x_GetUpdatedGeneCommand(), COrgGeneralPanel::x_HasTaxnameChanged(), CFileIDField::x_IsNCBIFILEId(), CSearch_func::x_IsPrefixPlusNumbers(), CSequenceUpdater::x_RemoveDescriptorsFromImportedProducts(), CMacroFunction_ApplyFeature::x_SetLocation(), CStrainSerotypeInfluenza::x_UpdateStrainSerotype(), CSingleFeatValidator::x_ValidateGbquals(), CProtValidator::x_ValidateProteinName(), CSingleFeatValidator::x_ValidateSeqFeatLoc(), CSingleFeatValidator::x_ValidateSeqFeatProduct(), and CValidError_desc::x_ValidateStructuredComment().

◆ EqualCase() [3/4]

bool NStr::EqualCase ( const CTempString  s1,
SIZE_TYPE  pos,
SIZE_TYPE  n,
const CTempString  s2 
)
inlinestatic

Case-sensitive equality of a substring with another string.

Parameters
s1String containing the substring to be compared.
posStart position of substring to be compared.
nNumber of characters in substring to be compared.
s2String to be compared with substring.
Returns
  • true, if s1[pos:pos+n) equals s2;
  • false, otherwise
See also
Other forms of overloaded EqualCase() with differences in argument types: char* vs. CTempString[Ex]

Definition at line 5331 of file ncbistr.hpp.

References n, and CTempString::substr().

◆ EqualCase() [4/4]

bool NStr::EqualCase ( const CTempStringEx  s1,
const CTempStringEx  s2 
)
inlinestatic

Case-sensitive equality of two strings.

Parameters
s1String to be compared – operand 1.
s2String to be compared – operand 2.
Returns
  • true, if s1 equals s2
  • false, otherwise
See also
EqualCase(), Equal() versions with same argument types.

Definition at line 5347 of file ncbistr.hpp.

◆ EqualNocase() [1/4]

bool NStr::EqualNocase ( const char *  s1,
const char *  s2 
)
inlinestatic

Case-insensitive equality of two strings – char* version.

Parameters
s1String to be compared – operand 1.
s2String to be compared – operand 2.
Returns
  • true, if s1 equals s2 (case-insensitive compare);
  • false, otherwise.
See also
EqualCase(), Equal() versions with same argument types.

Definition at line 5365 of file ncbistr.hpp.

References n, and NStr::strncasecmp().

◆ EqualNocase() [2/4]

bool NStr::EqualNocase ( const CTempString  s1,
SIZE_TYPE  pos,
SIZE_TYPE  n,
const char *  s2 
)
inlinestatic

Case-insensitive equality of a substring with another string.

Parameters
s1String containing the substring to be compared.
posStart position of substring to be compared.
nNumber of characters in substring to be compared.
s2String (char*) to be compared with substring.
Returns
  • true, if s1[pos:pos+n) equals s2 (case-insensitive compare);
  • false, otherwise.
See also
Other forms of overloaded EqualNocase() with differences in argument types: char* vs. CTempString[Ex]
Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 5353 of file ncbistr.hpp.

References NStr::CompareNocase(), n, and CTempString::substr().

Referenced by CCgiResponse::AcceptRangesBytes(), NMacroUtil::ActionTypeToExistingTextOption(), CExportTableDlg::AddBioSource(), CPseudoPanel::AddCommand(), CExportTableDlg::AddDblinkToTable(), AddFeatureToSeqTable(), CReadUtil::AddGeneOntologyTerm(), CModHandler::AddMods(), CBulkOtherAddPanel::AddOneCommand(), CAlignOtherAddPanel::AddOneCommand(), CStrainRequest::AddReply(), CSourceRequirements::AddRequirement(), SAccGuide::AddRule(), AddStructuredCommentToAttributes(), CGenericStructuredCommentColumn::AddToComment(), CGbQualColumn::AddToFeature(), AddValueToTable(), CValidError_align::AlignmentScorePercentIdOk(), AlreadyHasFeature(), CApplyFBOL::apply(), CPrefixAuthority::apply_to(), ApplyDBLinkValuesTableToSeqEntry(), CBarcodeTool::ApplyDbxrefs(), CSourceModParser::ApplyMods(), ApplySrcTableToSeqEntry(), CRemoveFeaturesDlg::ApplyToCSeq_entry(), CAddCitSubForUpdate::ApplyToCSeq_entry(), CCorrectIntervalOrder::ApplyToCSeq_entry(), CRemoveEmptyGenomeProjectsDB::ApplyToUserObject(), AreAnyColumnValuesPresent(), AttributeNamesAreEquivalent(), CDiscrepancyVisitorImpl< _Name >::Autofix(), CFieldChoicePanel::AutoMatchFeat(), CFieldChoicePanel::AutoMatchSrc(), CValidator::BadCharsInAuthorLastName(), BDB_CreateEnv(), CNewCleanup_imp::BiosourceBC(), BOOST_AUTO_TEST_CASE(), BuildDBLinkValuesTableFromSeqEntry(), CCDSTranslationProblems::CalculateTranslationProblems(), CAlignStrandSorter::CAlignStrandSorter(), CReadDispatcher::CannotProcess(), CannotProcess(), CCgiResponse::CanSendTrailer(), CaseNCompareEqual(), CAutoDefMobileElementClause::CAutoDefMobileElementClause(), CCloneConcordancySorter::CCloneConcordancySorter(), CDbvarClinicalAsstSorter::CDbvarClinicalAsstSorter(), CDbvarPilotSorter::CDbvarPilotSorter(), CDbvarQualitySorter::CDbvarQualitySorter(), CDbvarSamplesetTypeSorter::CDbvarSamplesetTypeSorter(), CDbvarValidationSorter::CDbvarValidationSorter(), CFlatFileTextItem::CFlatFileTextItem(), CGRCStatusSorter::CGRCStatusSorter(), check_est_sts_gss_tpa_kwds(), CComment_rule::CheckFieldValue(), CPrimerTableCommandConverter::CheckForMixedValues(), CValidError_bioseq::CheckForMultipleStructuredComments(), COrgMod::CheckMultipleVouchers(), CSeqTechDlg::CheckSequencingTechnology(), CkQualMatchToken(), CLatLonCountryId::Classify(), CCleanup::CleanupAffil(), CDBLinkTableCommandConverter::ClearAllValues(), CStructuredCommentCommandConverter::ClearAllValues(), CSrcTableTaxonIdColumn::ClearInBioSource(), CGenericStructuredCommentColumn::ClearInComment(), CGbQualColumn::ClearInFeature(), CMiscSeqTableColumn::CMiscSeqTableColumn(), CBiosampleFieldDiff::CompareAllButSequenceID(), pub_report::CompareAuthorNames(), CConvertImpToProt::Convert(), Convert_BioTreeContainer_Seq_id(), Convert_GC_Assembly_Seq_id(), ConvertRegulatoryFeature(), NMacroUtil::ConvertStringtoCapitalOption(), CFieldHandlerFactory::Create(), CFeatureSeqTableColumnBaseFactory::Create(), CSrcTableColumnBaseFactory::Create(), CreateActionBiosource(), CLDS2_DataLoaderCF::CreateAndRegister(), CCgiApplication::CreateContextWithFlags_Default(), CSeqTechDlg::CreateControls(), CGBQualPanel::CreateControls(), CGenericPropsPanel::CreateControls(), CSingleGbQualSubPanel::CreateControls(), CGraphTrackFactory::CreateTracks(), CSeqIdGuesser::CSeqIdGuesser(), CNewCleanup_imp::DbtagBC(), CSequenceEditingEventHandler::DeleteSpecificStructuredComment(), CSampleNetCacheClient::DemoPutRead(), DoesSingleStringMatchConstraint(), CExploreProcess::DoOneBioseq(), NStr::Equal(), CSeq_id_Textseq_Info::TKey::EqualAcc(), CMQueryFunctionValue::Evaluate(), CSGQueryFunctionCompare::Evaluate(), CSequenceEditingEventHandler::ExportStructuredCommentsTable(), ExtractGnomonModelNum(), FillAccsBySource(), CEditingActionDescUserObject::Find(), CEditingActionDescLocalId::Find(), CEditingActionDescComment::Find(), CComment_set::FindCommentRuleEx(), COrgMod::FindInstitutionCode(), FindMatchInOrgRef(), CSeq_id_General_Tree::FindOrCreate(), CEditingActionDescUserObject::FindRelated(), pub_report::FirstOrLastAuthorMatches(), CSubSource::FixDateFormat(), COrgMod::FixHostCapitalization(), CSeqFeatData::FixImportKey(), CSubSource::FixIsolationSourceCapitalization(), CSubSource::FixSexQualifierValue(), COrgMod::FixStructuredVoucher(), CName_std::FixSuffix(), SrcEditDialog::FixTableAfterImport(), FixTableAfterImport(), CSubSource::FixTissueTypeCapitalization(), Flat2AsnCheck(), CFlatXrefQVal::Format(), CGenbankFormatter::FormatFeature(), CGBSeqFormatter::FormatGenomeProject(), fta_add_hist(), fta_check_mga_keywords(), fta_check_old_locus_tags(), fta_is_con_div(), fta_remove_tls_keywords(), fta_remove_tsa_keywords(), fta_tls_keywords_check(), fta_tpa_keywords_check(), fta_tsa_keywords_check(), COrgMod::FuzzyStrainMatch(), g_OSG_GetPreferredAddress(), CNewCleanup_imp::GBQualBC(), CNewCleanup_imp::GBQualSeqFeatBC(), CNewCleanup_imp::GeneFeatBC(), get_auth_consortium(), CPSGDataLoader_Impl::GetAnnotRecordsNAOnce(), GetBarcodeId(), GetBioSampleStatusFromNode(), GetBioseqDiffs(), GetClassType(), CAddGlobalCodeBreak::GetCommand(), CConvertFeatDlg::GetCommand(), CEditSequenceEnds::GetCommand(), CExtendPartialFeatDlg::GetCommand(), CGeneFeatFromOtherFeatDlg::GetCommand(), CRemoveGeneXrefs::GetCommand(), CSeqTechDlg::GetCommand(), CSuppressGenes::GetCommand(), CReplaceEntirePubPanel::GetCommand(), CPrimerTableCommandConverter::GetCommandFromValuesTable(), CStructuredCommentCommandConverter::GetCommandFromValuesTable(), CSubPrep_panel::GetConverterForFieldName(), CCountries::GetCorrectedCountryCapitalization(), CFeatGlyph::GetCustomColorIdx(), CUpdateSeqPanel::GetData(), GetDBLinkIDs(), NMItemData::GetDelimiterDescr(), CMacroFeatsOnSeqPanel::GetDescription(), CEditObjectSeq_desc::GetDescriptorType(), CEditObjectFeaturePropagate::GetEditCommand(), CFlatFileViewContext::GetEditObject(), GetEmblBlockXref(), GetEmblGBBlock(), NMItemData::GetExistingTextDescr(), NMacroUtil::GetFeatSubtype(), GetFieldFromWizardObject(), CFieldChoicePanel::GetFieldName(), CMolInfoFieldType::GetFieldType(), CFieldNamePanel::GetFieldTypeFromName(), GetFirstGBQualMatch(), CUnculturedTaxnameQual::GetFormatErrors(), CSubSrcQual::GetFormatErrors(), CGenericStructuredCommentColumn::GetFromComment(), CGbQualColumn::GetFromFeat(), CApplyAuthorsTreeItemData::GetFunction(), CApplyStrCommQualTreeItemData::GetFunction(), CAddFeatureTreeItemData::GetFunction(), CConvertRNAQualTreeItemData::GetFunction(), CConvertFeatureTreeItemData::GetFunction(), CCopyRNAQualTreeItemData::GetFunction(), CEditFeatQualTreeItemData::GetFunction(), CEditStrCommQualTreeItemData::GetFunction(), CEditMolinfoFieldsTreeItemData::GetFunction(), CSetExceptionsTreeItemData::GetFunction(), CParseRNAQualTreeItemData::GetFunction(), CRmvFeatQualTreeItemData::GetFunction(), CRmvOutsideStrCommQualTreeItemData::GetFunction(), CRmvOutsideFeatQualTreeItemData::GetFunction(), CMacroFeatsOnSeqPanel::GetFuncWithArgs(), GetGcodeForName(), CCSRABlobId::GetGeneralIdType(), GetGeneSyns(), CDbvarQualitySorter::GetGroupIdx(), CDbvarPilotSorter::GetGroupIdx(), CDbvarSamplesetTypeSorter::GetGroupIdx(), CDbvarValidationSorter::GetGroupIdx(), CGRCStatusSorter::GetGroupIdx(), CMacroEditorContext::GetGUIAuthorName(), CMacroEditorContext::GetGUIFieldName(), GetHasFrameShift(), CBarcodeTool::GetHasKeyword(), GetHasKeyword(), GetHasOrderAssignment(), CSeqIdGuesser::GetIdStrings(), GetIsLength(), CFeatList::GetItemByDescription(), CAutoDef::GetKeywordPrefix(), CSeq_featHandler::GetLabel(), CUserFeatHandler::GetLabel(), SrcEditDialog::GetLabelForTitle(), CCit_gen::GetLabelV1(), CUrlUtils::GetLastModified(), CGraphTrack::GetLegend(), CMacroFeatsOnSeqPanel::GetLocationConstraint(), GetLowTrace(), CApplyAuthorsTreeItemData::GetMacroDescription(), CSetExceptionsTreeItemData::GetMacroDescription(), CParseBsrcToStructCommTreeItemData::GetMacroDescription(), CSourceFieldNamePanel::GetMacroFieldName(), CMTreeItemDataBuilder::GetMActionType(), CMActionTree::GetMActionTypesForTarget(), ILayoutTrackFactory::GetMatchedAnnots(), CMacroFeatsOnSeqPanel::GetMatcher(), NMItemData::GetMemberNames(), CTableDataValidateParams::GetNamedBoolField(), CStructuredCommentField::GetObjects(), CTextDescriptorField::GetObjects(), CDBLinkField::GetObjects(), CUser_object::GetObjectType(), CTableDataBioTreeContainer::GetObjectValue(), CNSTServiceRegistry::GetProlongOnRead(), CNSTServiceRegistry::GetProlongOnRelocate(), CNSTServiceRegistry::GetProlongOnWrite(), SrcEditDialog::GetQualChoices(), CConvertFeatDlg::GetQualList(), CCommentItem::GetRefTrackStatus(), CUrlUtils::GetRemoteFileSize(), CBLASTParams::GetRepeatLib(), GetReplacementSeqIds(), NMItemData::GetResolveFuncForDestFeatQuals(), NMItemData::GetResolveFuncForGeneQuals(), NMItemData::GetResolveFuncForPubQual(), NMItemData::GetResolveFuncForPubQualConst(), NMItemData::GetResolveFuncForQual(), NMItemData::GetResolveFuncForSrcFeatQuals(), NMItemData::GetResolveFuncForStrCommQual(), NMItemData::GetResolveFuncForSwapFeatQuals(), CMacroEditorContext::GetRNAProductnames(), NMItemData::GetRNASpecificFields(), NMItemData::GetRNASpecificFieldsForTableReader(), CRNAFieldNamePanel::GetRnaType(), CDualRNAFieldNamePanel::GetRnaType(), NMacroUtil::GetRNAType(), CValidatorReportCfgDlg::GetSelected(), CCgiContext::GetSelfURL(), GetSeqIdProblems(), GetSeqTableFromSeqEntry(), CNSTServiceRegistry::GetServiceProperties(), CGraphOverlayFactory::GetSettings(), CGraphTrackFactory::GetSettings(), CSegmentMapTrackFactory::GetSettings(), CSequenceTrackFactory::GetSettings(), CSixFramesTransTrackFactory::GetSettings(), CTraceGraphTrackFactory::GetSettings(), CAlignmentTrackFactory::GetSettings(), CVcfTrackFactory::GetSettings(), CCommentItem::GetStringForTLS(), CCommentItem::GetStringForTPA(), CCommentItem::GetStringForTSA(), CCommentItem::GetStringForWGS(), CStructCommentFieldPanel::GetStructCommentFields(), NMItemData::GetStructCommQualDescr(), CGC_Sequence::GetSubmitterName(), COrgMod::GetSubtypeValue(), CSubSource::GetSubtypeValue(), GetTargetedLocusName(), CT3Data::GetTaxFlags(), CTaxon1::GetTaxId4GI(), GetTaxonTag(), GetTitle(), CGuiObjectInfoVariant::GetToolTip(), CNSTServiceRegistry::GetTTL(), CPubFieldType::GetTypeForLabel(), CDBLinkFieldType::GetTypeForLabel(), CDBLinkField::GetTypeForLabel(), CGBBlockField::GetTypeForLabel(), CTaxon1::GetTypeMaterial(), NMacroUtil::GetUnverifiedType(), NMItemData::GetUpdatemRNADescription(), CAuthorizedAccessPanel::GetUser_object(), CInferencePanel::GetValue(), CEditingActionDescStatus::GetValue(), GetValueFromTable(), CStructuredCommentCommandConverter::GetValuesTableFromSeqEntry(), CApplyStrCommQualTreeItemData::GetVariables(), CSubmissionPrepMainPanel::GetWizardSrcTypeFromName(), GetWizardTypeFromName(), CSubPrep_panel::GuessWizardTypefromSeqEntry(), HasBadGenomeAssemblyName(), HasBadStartCodon(), HasBoolField(), HasContainedNote(), CSubSource::HasCultureNotes(), HasGeneIdXref(), HasHtc(), HasInternalStop(), HasIntField(), HasMisSpellFlag(), CT3Data::HasPlastids(), HasStringField(), HasUnpubWithoutTitle(), sequpd::HaveIdenticalResidues(), CSysLog::HonorRegistrySettings(), CUrlUtils::IfModifiedSince(), CTableDataBioTreeContainer::Init(), CSeqTableReader::Init(), CAutoDefOptions::InitFromUserObject(), CMacroInterpreter::InterpretDoFunctions(), IsBadSeqInstStrand(), IsBadSubmissionFirstName(), IsBadSubmissionLastName(), IsBankItSubmissionObject(), CDiscrepancyContext::IsBGPipe(), CSGFeatureDS::IsBigBed(), IsCancelled(), IsCDDName(), IsCommon(), CIntronGlyph::IsConsensus(), IsConsensusSplice(), CLatLonCountryMap::IsCountryInLatLon(), IsCrossKingdom(), CDBLinkField::IsDBLink(), IsExampleTableRowAcceptable(), IsFwdPrimerName(), IsFwdPrimerSeq(), CGenomeProjectField::IsGenomeProject(), CGenomeProjectField::IsGenomeProjectID(), pub_report::IsGenUnpublished(), CValidError_bioseq::IsHistAssemblyMissing(), CGb_qual::IsIllegalQualName(), CNewCleanup_imp::IsInternalTranscribedSpacer(), CNSTServiceRegistry::IsKnown(), IsKnownField(), IsKnownNonConsensusSplice(), CGoTermSortStruct::IsLegalGoTermType(), CFormatGuess::IsLineGvf(), CAutoDefFeatureClause::IsLTR(), IsMicroSatellite(), CLatLonCountryMap::IsNearLatLon(), CFieldChoicePanel::IsOneFieldProteinName(), IsOrgColumnName(), IsOrgModNoteName(), CRptTypePanel::IsParseable(), IsPrimarySNPName(), CMiscSeqTableColumn::IsProductField(), CDiscrepancyContext::IsPseudo(), CAutoDefFeatureClause::IsPseudo(), IsPseudo(), IsRevPrimerName(), IsRevPrimerSeq(), CEditingActionDescGenomeProjectId::IsSetValue(), CEditingActionDescStructCommDbName::IsSetValue(), COrgMod::IsStrainValid(), IsStrictConsensusSplice(), CComment_rule::IsStructuredComment(), COrgMod::IsStructuredVoucherValid(), IsSubSourceNoteName(), IsSynonymForFalse(), IsSynonymForTrue(), CValidError_imp::IsSyntheticConstruct(), CNewCleanup_imp::IsSyntheticConstruct(), IsTemporary(), CValidError_align::IsTpaAlignment(), CSGSequenceDS::IsTraceAssembly(), CCountries::IsValid(), CValidator::IsValidDbxref(), CSubSource::IsValidSubtypeName(), CSGFeatureDS::IsVcfTabix(), CSrcModCheckboxPanel::IsWellFormatted(), IsWizardObject(), CmRNACDSLinker::LinkByLabel(), CmRNACDSLinker::LinkByLabelAndLocation(), CMultiReader::LoadDescriptors(), CRulerPanel::LoadSettings(), LocusTagCheck(), CUser_object::CRefGeneTrackingAccession::MakeAccessionFromUserField(), CSeqTableGridPanel::MakeColumnReadOnly(), MakeMailReportPostReport(), CHttpCookie::Match(), MatchArrayIString(), CQualifierRequest::MatchTryValue(), MiscFeatsWithoutGene(), CEditingActionDescStructCommFieldName::Modify(), CGenericPropsPanel::ModifyPseudo(), CCountries::NewFixCountry(), CScanner::Next(), CScanner::NextASNSelector(), CScanner::NextNamedAnnot(), CProcessor::OffsetId(), CSelectFeatures::OnAccept(), CMacroPanelLoader::OnButtonClicked(), CSrcModListPanel::OnChangedTaxname(), CCompareWithBiosample::OnClickOk(), NMItemData::OnControlsAddRNAPanelSelected(), CBioseqEditor::OnCreateDescriptor(), CBioseqEditor::OnCreateRNA(), CPublicationTypePanel::OnDoiLookup(), NMItemData::OnExistingTextChanged(), CGeneralIDPanel::OnGeneralIDChoice(), CPublishedRefPanel::OnLookupClick(), NMItemData::OnProteinNameDouble(), NMItemData::OnProteinNameSingle(), CBarcodeTool::OnRemoveKeyword(), CValidatorReportCfgDlg::OnReportBtnClick(), NMItemData::OnRnaTypeChanged(), NMItemData::OnSelectFeature(), NMItemData::OnStructCommFieldChanged(), CAlignSort::SAlignExtractor::operator()(), CDoQueryTreeGetArgs::operator()(), CWhereQueryTreeGetArgs::operator()(), SCaseInsensitiveStrComp::operator()(), CSeq_id_Textseq_Info::TKey::operator==(), operator>>(), OwnerFromAffil(), CHttpCookie::Parse(), CCleanup::ParseCodeBreaks(), CHttpRetryContext::ParseHeader(), CGb_qual::ParseInferenceString(), STrackSettings::ParseSettings(), CGBQualPanel::PopulateGBQuals(), CExperimentListPanel::PopulateGBQuals(), CInferenceListPanel::PopulateGBQuals(), CCountryExtreme::PreferTo(), CBiosampleFieldDiff::Print(), CHTMLPageStat::PrintBegin(), PrintBioseqXML(), ProcessBulkBioSample(), CNewCleanup_imp::ProtFeatfBC(), CNewCleanup_imp::ProtrefBC(), CVariantDescriptors::PushBack(), CFieldHandler::QualifierNamesAreEquivalent(), QualifierNamesAreEquivalent(), ReadTimeSpan(), CHugeFileValidator::RegisterReaderHooks(), CDBLinkTableCommandConverter::RemapColumnName(), CMolInfoTableCommandConverter::RemapColumnName(), CPrimerTableCommandConverter::RemapColumnName(), RemoveAffilStreetEnd(), CSubSource::RemoveCultureNotes(), RemoveDiffByName(), CSeq_feat::RemoveExceptText(), RemoveHtgPhase(), CBioSource::RemoveNullTerms(), CQualListItemPanel::RemoveRepresentedQuals(), RemoveTaxId(), RemoveUnneededMiscFeats(), CFindASN1Dlg::ReplaceInOrg(), ReplaceStateAbbreviation(), pub_report::ReportOnePub(), pub_report::ReportTitleDiff(), pub_report::CUnpublishedReport::ReportUnpublished(), CEditingActionDescGenomeProjectId::ResetValue(), CEditingActionDescStructCommDbName::ResetValue(), CWGSClient::ResolveAcc(), CFeatureFilter::ResolveIdentifier(), ResolveSuppliedBioSampleAccession(), python::RetrieveStatementType(), CNewCleanup_imp::RnaFeatBC(), CNewCleanup_imp::RnarefBC(), s_AccessionEqual(), s_AreGoodPair(), CTrackMgrClient::s_Ask(), s_AuthorMatch(), s_BlankOrNotSpecialTaxname(), s_CheckPSGMethod(), s_CleanCDDFeature(), fix_pub::s_ConsortiaMatch(), CMacroFunction_ConvertLocStrand::s_ConvertLocationStrand(), CMacroFunction_ConvertLocType::s_ConvertLocationType(), s_DbtagIsBad(), s_DoUSAStateCleanup(), s_FastaGetOriginalID(), s_FieldHasLabel(), CFeatureFieldNamePanel::s_FillFeatQualList(), s_FindInMapAsPrefix(), s_FindInSetAsPrefix(), s_FindKeyFromFeatDefType(), ApplyCDSFrame::s_FindMatchingFrame(), CMacroFunction_ApplyCDSFrame::s_FindMatchingFrame(), CMacroFunction_FixPubCaps::s_FixCapitalizationInCountryString(), IAuthorEditor::s_FixInitialsNew(), s_FixncRNA(), s_FixQualCapitalization(), s_GbQualEqual(), CSingleFeatValidator::s_GeneRefsAreEquivalent(), s_GetBiomolValuesFromName(), NSearchFeatPanel::s_GetFeatureLabel(), s_GetFeatureSubtypeFromString(), s_GetFileSystemInfo(), CMacroFunction_ApplyCDSFrame::s_GetFrameFromName(), ApplyCDSFrame::s_GetFrameFromName(), CApplyStrCommTableTreeItemData::s_GetFunction(), s_GetImpLabel(), CMacroFunction_EditStringQual::s_GetLocFromName(), CFeatureFieldNamePanel::s_GetMacroFieldName(), CCDSGeneProtFieldNamePanel::s_GetMacroFieldName(), s_GetMActionTypesForCDSGeneProt(), s_GetMActionTypesForMisc(), s_GetMActionTypesForMolinfo(), s_GetMActionTypesForRna(), s_GetMActionTypesForTarget(), CMacroMatcherPanelBase::s_GetMatcherPanels(), s_GetOriginalID(), s_GetOriginalId(), s_GetProteinNameFromXrefOrQual(), s_GetPubmedDate(), CUnculturedTool::s_GetRank(), s_GetSpliceSite(), CMacroFunction_ConvertLocStrand::s_GetStrandFromString(), s_GetStrForStructuredComment(), s_GetTitle(), s_HasNamedQual(), s_HasRefSeqPGAPStructuredComment(), s_HideTPAPrimary(), s_IdXrefsNotReciprocal(), s_InitializeECNumberMaps(), s_IsAllowedPrefix(), CUnculturedTool::s_IsAmbiguous(), s_IsAsmAccEquiv(), s_IsAssemblyMethodValid(), s_IsBadMethod(), s_IsBool(), s_IsDifferentDbxrefs(), s_IsLocDirSub(), s_IsNonText(), CCleanup::s_IsProductOnFeat(), CValidError_imp::s_IsSalmonellaGenus(), s_IsSameSeqAnnot(), s_IsSkippableDbtag(), CMacroFunction_StringConstraints::s_IsStringMatching(), s_IsSuppressField(), s_IsTPA(), s_IsTpa(), s_IsUndefinedSpecies(), s_IsValidDirection(), s_IsValidnConsSplice(), CTableReaderMacro::s_LooksLikeHeader(), s_Matches(), s_MatchesFieldName(), s_MatchInfoMatches(), s_NormalizeTokens(), s_NotPeptideException(), CUnculturedTool::s_OrganismNotFound(), s_OrgModEqual(), s_OrgrefEquivalent(), s_OrgrefSynEqual(), s_ParseDateTime(), s_ParseEnabledFlags(), s_ParseSeqFeatTRnaString(), s_PCRSetEqual(), s_ProcessAddMasterDescr(), CWhereQueryTreeGetArgs::s_RefersToField(), CMacroFunction_RemoveQual::s_RemoveFields(), s_ReportableCollision(), s_ResolveFieldsOfChoice(), s_RnaPosition(), s_SearchInSeqText(), s_SetDBLinkFieldVals(), s_SetFieldsOfChoice(), CCleanup::s_SetProductOnFeat(), s_ShouldBeMerged(), s_ShouldIgnoreStructuredCommentFieldDiff(), s_ShouldRemoveRef(), s_ShouldUseOriginalID(), s_SortShorttRNAs(), s_SpecialRemove(), s_StandardizeNomenclature(), s_StartsWithNcrnaName(), s_StringHasSubSourcePrefix(), s_StringsAreEquivalent(), s_SubsourceEqual(), s_SuppressMultipleEquivBioSources(), s_TitleMatch(), s_TopologyFromName(), s_UpdateTarget(), s_ValidateAcc(), CAuth_list::SameCitation(), ScannGeneName(), SeqDB_SimplifyAccession(), SeqTableFromAssemblyFields(), CSeq_id::Set(), CRawSeqToDeltaByNPanel::SetAssemblyParams(), CSeqTableGridPanel::SetColumnSizesAndChoices(), CGenbankKeywordField::SetConstraint(), CMacroPanelLoader::SetCtrlValue(), CApplyStructCommentTreeItemData::SetData(), CApplyTableItemData::SetData(), CApplyStrCommTableTreeItemData::SetData(), CApplyRNATableTreeItemData::SetData(), IAddGapsInfo::SetData(), CUpdateProteinsTreeItemData::SetData(), CTableDataValidate::SetErrCode(), CSingleQualPanel::SetField(), CFeatureTypePanel::SetFieldName(), CSourceFieldNamePanel::SetFieldName(), CStructCommentFieldPanel::SetFieldName(), CMacroFeatsOnSeqPanel::SetMatcher(), CMacroLocationConstraintPanel::SetMatcher(), CMacroAdvStringConstraintPanel< T >::SetMatcher(), CCleanup::SetMrnaName(), CTableDataValidateParams::SetNamedBoolField(), CRNAFieldNamePanel::SetRnaType(), CDualRNAFieldNamePanel::SetRnaType(), CSGFeatureJob::SetSortBy(), CSubmissionPrepMainPanel::SetSourceType(), SetSubSource(), CValidError_imp::Setup(), CUrl::SetUrl(), CAuthorizedAccessPanel::SetUser_object(), CRefGeneTrackingPanel::SetUser_object(), CSrcModCheckboxPanel::SetValue(), CEditingActionDescUserObject::SetValue(), CEditingActionDescStructCommDbName::SetValue(), CEditingActionDescStatus::SetValue(), CEditingActionFeatPseudo::SetValue(), CEditingActionFeatPartial::SetValue(), CInferencePanel::SetValue(), CSingleExperimentPanel::SetValue(), CRptTypePanel::SetValue(), CSubPrep_panel::SetWizardType(), CBioSource::ShouldIgnoreConflict(), CNewCleanup_imp::SiteFeatBC(), SkipWeasel(), SortGBQuals(), SPFeatGeneral(), SpProcFeatBlk(), CHydraServer::start_element(), CPMCIDConverterServer::start_element(), CStrainRequest::StrainContainsTaxonInfo(), StringMatchIcase(), NMacroUtil::StringsAreEquivalent(), CEnumParser< TEnum, TParam >::StringToEnum(), NMacroUtil::SwapGbQualWithValues(), fix_pub::TenAuthorsProcess(), CMacroFunction_ParsedText::TheFunction(), CMacroFunction_FixFormat::TheFunction(), CMacroFunction_ConvertFeature::TheFunction(), CMacroFunction_RemoveGeneXref::TheFunction(), CMacroFunction_ApplyCDS::TheFunction(), CMacroFunction_LocationType::TheFunction(), CMacroFunction_SetPubAuthor::TheFunction(), CSequencingTechnologyPanel::TransferDataToWindow(), CSingleAssemblyTrackingPanel::TransferDataToWindow(), CSingleRefGeneTrackLocPanel::TransferDataToWindow(), CSingleAuthorPanel::TransferDataToWindow(), CncRNASubPanel::TransferDataToWindow(), CStructuredCommentPanel::TransferDataToWindow(), CUnculTaxTool::TrimSuggestions(), TypeFromLabel(), CGBQualPanel::Update_tRNA_ProductQual(), CChimeraPanel::UpdateChimera(), NMItemData::UpdateConstraintsForFeatures(), NMItemData::UpdateConstraintsForMisc(), CSingleFieldPanel< CCDSGeneProtFieldNamePanel >::UpdateMRNAbutton(), CDualFieldPanel< CCDSGeneProtFieldNamePanel >::UpdateMRNAbutton(), CSingleFieldPanel< CCDSGeneProtFieldNamePanel >::UpdateRetranslateCds(), CDualFieldPanel< CCDSGeneProtFieldNamePanel >::UpdateRetranslateCds(), CGeneModelConfig::UpdateSettings(), CEditMolinfoFieldsTreeItemData::UpdateTarget(), CRemoveDescrTreeItemData::UpdateTarget(), NMItemData::UpdateTargetForMisc(), NMItemData::UpdateTargetForMolinfo(), NMItemData::UpdateTargetForRnas(), CSubPrepFieldEditor::UpdateValues(), CBioSource::UpdateWithBioSample(), CGeneValidator::Validate(), CGapFeatValidator::Validate(), CImpFeatValidator::Validate(), CValidError_imp::Validate(), CValidError_imp::ValidateAuthorList(), CValidError_imp::ValidateAuthorsInPubequiv(), CValidError_imp::ValidateBioSource(), CValidError_imp::ValidateBioSourceForSeq(), CValidError_imp::ValidateCitations(), CValidError_bioseq::ValidateCompleteGenome(), CValidError_desc::ValidateDblink(), CValidError_imp::ValidateDbxref(), CValidError_bioseq::ValidateGBBlock(), CValidError_feat::ValidateInferenceAccession(), CSubSource::ValidateLatLonCountry(), CValidError_bioseq::ValidateMolInfoContext(), CValidError_imp::ValidateMultipleTaxIds(), CValidError_bioseqset::ValidateNucProtSet(), CValidError_imp::ValidateOrgName(), CValidError_imp::ValidateOrgRef(), CValidError_bioseq::ValidateSeqDescContext(), CValidError_descr::ValidateSeqDescr(), CValidError_bioseq::ValidateSeqFeatContext(), CValidError_bioseq::ValidateSeqIds(), CValidError_imp::ValidateSubmitBlock(), CValidError_desc::ValidateUser(), CVDBBlastUtil::VDBIdType(), CCgiApplication::VerifyCgiContext(), CCountries::WasValid(), CCleanup::WGSCleanup(), CCountries::WholeCountryFix(), CAsnvalOutput::Write(), CCgiResponse::WriteHeader(), CSequenceUpdater::x_AddCitSubToUpdatedSequence(), CFeatureItem::x_AddQualExceptions(), CBulkOtherAddPanel::x_AddQuals(), CAlignOtherAddPanel::x_AddQuals(), CSatelliteColumn::x_AddSatelliteName(), CSatelliteColumn::x_AddSatelliteType(), CAutoDefModifierCombo::x_AddSubsourceString(), CSrcModListPanel::x_AddTextSrcMods(), CFeatGapInfo::x_AdjustOrigLabel(), x_AdjustOrigLabel(), CDeflineGenerator::x_AdjustProteinTitleSuffix(), CDeflineGenerator::x_AdjustProteinTitleSuffixIdx(), COrgAdvancedPanel::x_ApplyChangesToSource(), CSourceModParser::x_ApplyMods(), IEditMacroFunction::x_AssignReturnValueFromContainer(), CGenbankFormatter::x_Authors(), CMacroInterpreter::x_AutodefCompleteValidateArgs(), CMacroInterpreter::x_AutodefValidateArgs(), CMacroFunction_StringConstraints::x_BuildNoCaseStringConstraint(), CSubSource::x_CalculateLatLonId(), CBulkOtherAddPanel::x_ChangeFeatureType(), CAlignOtherAddPanel::x_ChangeFeatureType(), CNewCleanup_imp::x_ChangeInsertionSeqToMobileElement(), CNewCleanup_imp::x_ChangeTransposonToMobileElement(), CMacroFunction_StringConstraints::x_CheckAuthorNames(), CMacroFunction_StringConstraints::x_CheckConstraintWithinClass(), CValidError_bioseq::x_CheckForMultipleComments(), CValidError_bioseq::x_CheckOrigProteinAndTranscriptIds(), CValidError_bioseq::x_CheckSingleStrandedRNAViruses(), CMacroFunction_StringConstraints::x_CheckStringConstraint(), CUnculturedTool::x_CheckSuggestedFix(), CSourceFieldNamePanel::x_ChooseTextQualifier(), CNewCleanup_imp::x_CleanEmptyFeature(), CFeatureItem::x_CleanQuals(), CSatelliteColumn::x_ClearSatelliteSubFields(), CSrcModListPanel::x_CollectTextMods(), CValidError_bioseq::x_CompareStrings(), CMacroInterpreter::x_ConvertCDSValidateArgs(), CMacroInterpreter::x_ConvertFeatQualValidateArgs(), CMacroInterpreter::x_ConvertFeatureValidateArgs(), CTaxon1::x_ConvertOrgrefProps(), CMacroInterpreter::x_ConvertRNARelQualValidateArgs(), CMacroInterpreter::x_ConvertStringQualValidateArgs(), CGBDataLoader_Native::x_CreateDriver(), CMacroBioData::x_CreateNonFeatIterator(), CVCFVariantsBase::x_DeserializeColumn(), CValidError_imp::x_DowngradeForMissingAffil(), CMacroFunction_EditStringQual::x_EditFields(), CMacroInterpreter::x_EditSubfieldValidateArgs(), CtRNAProductPanel::x_EnableInitiatorSelection(), CRNAFieldNamePanel::x_EnableNcRnaClass(), CDualRNAFieldNamePanel::x_EnableNcRnaClass(), CSeq_id_Textseq_Tree::x_Equals(), CSeq_id_Textseq_Tree::x_Erase(), CNewCleanup_imp::x_ExceptTextEC(), CNewCleanup_imp::x_ExpandCombinedQuals(), CConvertFeatureBase::x_ExtractQuals(), CGeneModelFeatJob::x_FilterStrToValue(), CHttpCookies::x_Find(), SrcEditDialog::x_FindColumn(), CLatLonCountryMap::x_FindCountryExtreme(), CMacroInterpreter::x_FindFeatureType(), CSeq_id_Textseq_Tree::x_FindMatchByAcc(), CSeq_id_Textseq_Tree::x_FindMatchByName(), CSeq_id_Textseq_Tree::x_FindRevMatchByAccNonPacked(), CSeq_id_Textseq_Tree::x_FindStrInfo(), CMacroEditingActionPanel::x_FindText(), CMacroFunction_FixPubCaps::x_FixCapsInPubAffilCountry(), CNewCleanup_imp::x_FixStructuredCommentKeywords(), CSearch_func::x_FollowedByFamily(), CValidErrorFormat::x_FormatECNumberForSubmitterReport(), CFeatureItem::x_FormatGOQualCombined(), CAlignFilter::x_FuncCall(), CSequenceUpdater::x_FuseFeatures(), CFlatGatherer::x_GatherFeaturesOnRange(), CFlatGatherer::x_GatherFeaturesOnRangeIdx(), CFlatGatherer::x_GatherFeaturesOnWholeLocation(), CFlatGatherer::x_GatherFeaturesOnWholeLocationIdx(), CLocalIdComment::x_GatherInfo(), CSourceFeatureItem::x_GatherInfo(), CGenomeProjectItem::x_GatherInfo(), CKeywordsItem::x_GatherInfo(), CGenbankGatherer::x_GatherTLS(), CGenbankGatherer::x_GatherTSA(), CNewCleanup_imp::x_GeneGBQualBC(), x_GetAccountNameBySid(), CMacroBioData::x_GetAnnotSelector(), CMacroEditorContext::x_GetAsnPathToAllBsrc(), CMacroEditorContext::x_GetAsnPathToBsrcTax(), CMacroEditorContext::x_GetAsnPathToBsrcText(), CMacroEditorContext::x_GetAsnPathToCDS(), CMacroEditorContext::x_GetAsnPathToFeatQuals(), CMacroEditorContext::x_GetAsnPathToMiscDescr(), CMacroEditorContext::x_GetAsnPathToMiscFields(), CMacroEditorContext::x_GetAsnPathToMolinfo(), CMacroEditorContext::x_GetAsnPathToRnaFieldName(), CAssemblyInfo::x_GetAssmInfo(), COrgName::x_GetAttribFlag(), CMacroEditorContext::x_GetBsrcTextFieldnames(), CCommandArgDescriptions::x_GetCommandGroupIndex(), CSubSource::x_GetDateTokens(), CAutoDefFeatureClause::x_GetExonDescription(), CAutoDef::x_GetFeatureClauses(), CStructuredCommentPanel::x_GetFields(), CFeat_qual_choice::x_GetFirstGBQualMatch(), CTableReaderMacro::x_GetFunction(), CEditMolinfoFieldsTreeItemData::x_GetFunctionFor(), CArgDescriptions::x_GetGroupIndex(), CMacroEditorContext::x_GetGUIFieldForCDS(), CMacroEditorContext::x_GetGUIFieldForGene(), CAutoDef::x_GetHumanSTRFeatureClauses(), CAutoDef::x_GetHumanSTRv2FeatureClauses(), CTableReaderMacro::x_GetIterator(), CTableReaderMacro::x_GetMatchFieldConstraint(), CMacroFunction_UpdateProteinSeqs::x_GetMatchType(), CNAUtils::x_GetNAIds(), CAutoDefNcRNAClause::x_GetProductName(), CModifySeqId::x_GetRemoveOriginalIdCommand(), CSatelliteColumn::x_GetSatelliteName(), CSatelliteColumn::x_GetSatelliteType(), CSeqTechDlg::x_GetSeqTechUserFromSeqEntry(), CSnpTrackFactory::x_GetSettings(), CFeatureTrackFactory::x_GetSettings(), CVarTrackFactory::x_GetSettings(), CMacroFunction_ParsedText::x_GetSpecialField(), CMacroFunction_FeatStrandednessConstraint::x_GetStrandednessFromName(), CPrimaryItem::x_GetStrForPrimary(), CEditingActionBiosourceTaxnameAfterBinomial::x_GetTextAfterNomial(), CSrcTaxnameAfterBinomialColumn::x_GetTextAfterNomial(), CMacroEngineParallel::x_GetThreadCount(), CCDSTranslationProblems::x_GetTranslExceptProblems(), CGeneCache::x_HasNamedQual(), x_HasNamedQual(), CSingleFeatValidator::x_HasNamedQual(), CValidError_bioseq::x_HasPGAPStructuredComment(), CAdjustForConsensusSpliceSite::x_HasProteinChanged(), CAdjustForConsensusSpliceSite::x_HasProteinChangedAt3End(), CAdjustForConsensusSpliceSite::x_HasProteinChangedAt5End(), CSeq_id::x_IdentifyTypeVariant(), CReferenceItem::x_Init(), CSeq_id::x_Init(), CHttpRequest::x_InitConnection(), CBioseqIndex::x_InitDescs(), CBioseqIndex::x_InitSource(), CMacroInterpreter::x_InsertFeatureType(), CStructuredCommentField::x_InsertFieldAtCorrectPosition(), CStructCommFieldValuePair::x_InsertFieldAtCorrectPosition(), CMiscSeqTable::x_InterpretColumnProperties(), x_IsCDDBlob(), CNewCleanup_imp::x_IsCommentRedundantWithEC(), CMacroFunction_IsPresent::x_IsContainerElementPresent(), CSingleAssemblyTrackingPanel::x_IsControlled(), CSingleRefGeneTrackLocPanel::x_IsControlled(), CRefGeneTrackingPanel::x_IsControlledField(), CAssignQueryTreeGetArgs::x_IsDBLinkField(), CGeneModelFeatJob::x_IsDbref(), CPSGS_CDDProcessor::x_IsEnabled(), CPSGS_SNPProcessor::x_IsEnabled(), CPSGS_WGSProcessor::x_IsEnabled(), CAdjustFeaturesForGaps::x_IsFeatureTypeSelected(), CAutoDef::x_IsHumanSTR(), CSatelliteTypeNameColumn::x_IsQualAMatch(), CCgiContext::x_IsSecure(), CSeqTechDlg::x_IsSpecialTech(), CAssignQueryTreeGetArgs::x_IsStructCommField(), CUserFieldListPanel::x_IsTPA(), CRefGeneTrackFieldManager::x_IsTypeString(), CGraphTrack::x_LayoutStrToValue(), CGraphOverlay::x_LoadSettings(), CSnpTrack::x_LoadSettings(), CEpigenomicsTrack::x_LoadSettings(), CGraphTrack::x_LoadSettings(), CSegmentMapTrack::x_LoadSettings(), CSequenceTrack::x_LoadSettings(), CTraceGraphTrack::x_LoadSettings(), CAlignmentTrack::x_LoadSettings(), CSixFramesTransTrack::x_LoadSettings(), CTL_Connection::x_LoadTextPtrProcs(), CMacroInterpreter::x_LocationTypeValidateArgs(), CPSGDataLoader_Impl::x_MakeLoadLocalCDDEntryRequest(), CSeqTableGridPanel::x_MakeProblemsColumnReadOnly(), CValidatePanel::x_MatchFilter(), CTableDataValidate::x_MatchFilter(), CBlastDBCmdApp::x_ModifyConfigForBatchEntry(), x_OkayToAddKeyword(), CNewCleanup_imp::x_OrgnameModBC(), CMacroInterpreter::x_ParseFieldFromRTVar(), CFeatureTrack::x_ParseSettings(), CIntronTrack::x_ParseSettings(), CVcfTrack::x_ParseSettings(), CMacroVarAsk::x_ParseString(), CMacroInterpreter::x_ParseToStructCommValidateArgs(), CNewCleanup_imp::x_PCRPrimerSetBC(), CNewCleanup_imp::x_PostBiosource(), CMacroInterpreter::x_PostProcessAddFeature(), CMacroInterpreter::x_PostProcessAddStructComment(), CMacroInterpreter::x_PostProcessApplyQualifierTable(), CMacroInterpreter::x_PostProcessConvertSetClass(), CMacroInterpreter::x_PostProcessEditMolinfo(), CMacroInterpreter::x_PostProcessRmvDbxref(), CMacroInterpreter::x_PostProcessSetException(), CCgiApplication::x_ProcessAdminRequest(), CAssignQueryTreeGetArgs::x_ProcessFunction(), CCorrectRNAStrandDlg::x_ProcessRNAStrandLine(), CNetStorageHandler::x_ProcessSetExpTime(), CNewCleanup_imp::x_ProtGBQualBC(), CAlignFilter::x_Query_Op(), IRWRegistry::x_Read(), CCgiEntryReaderContext::x_ReadMultipartHeaders(), CNewCleanup_imp::x_RemoveEmptyUserObject(), CMacroInterpreter::x_RemoveModifierValidateArgs(), CNewCleanup_imp::x_RemoveProtDescThatDupsProtName(), CMacroInterpreter::x_RemoveQualValidateArgs(), CMacroInterpreter::x_RemoveSubfieldValidateArgs(), CValidError_bioseq::x_ReportLineageConflictWithMol(), CSingleFeatValidator::x_ReportPseudogeneConflict(), CCdregionValidator::x_ReportTranslationProblems(), COrgName::x_ResetAttribFlag(), CMacroInterpreter::x_RmvDescrValidateArgs(), CDBLBClientApp::x_RunWhereIs(), CNewCleanup_imp::x_SeqFeatCDSGBQualBC(), CNewCleanup_imp::x_SeqFeatRnaGBQualBC(), CBioseqContext::x_SetAuthorizedAccess(), CDeflineGenerator::x_SetBioSrc(), CMacroFunction_ConvertFeature::x_SetConvertOptions(), CBioseqContext::x_SetDataFromUserObjects(), CMacroInterpreter::x_SetDateFieldValidateArgs(), CDescrModApply::x_SetDBLinkFieldVals(), CSubPrepFieldEditor::x_SetEditorControls(), CBioseqContext::x_SetEncode(), CExperimentListPanel::x_SetExperiments(), CMacroFunction_ParseToStructComm::x_SetFieldType(), CBioseqContext::x_SetFiletrackURL(), CDeflineGenerator::x_SetFlags(), CInferenceListPanel::x_SetInferences(), CAutoDefOptions::x_SetModifierList(), CSubPrepFieldEditor::x_SetOneValue(), CRefGeneTrackingPanel::x_SetStatus(), CDescrModApply::x_SetSubtype(), CDeflineGenerator::x_SetSuffix(), CAutoDefOptions::x_SetSuppressedFeatures(), CBioseqContext::x_SetTaxname(), CDeflineGenerator::x_SetTitleFromNM(), CDeflineGenerator::x_SetTitleFromProtein(), CDeflineGenerator::x_SetTitleFromProteinIdx(), CDataLoadersUtil::x_SetupASNCacheDataLoader(), CAutoDefFeatureClause::x_ShowTypewordFirst(), CAutoDefFeatureClause_Base::x_tRNAGeneFromProduct(), CDescrModApply::x_TryBioSourceMod(), CUnculturedTool::x_TryRankFix(), CFeatureTableReader_Imp::x_TryToParseOffset(), CFlatGatherer::x_UnorderedComments(), CMacroPanelLoader::x_UpdateCtrlsOnChoiceSelChange(), CMacroPanelLoader::x_UpdateCtrlsOnRdButtonChange(), CMacroInterpreter::x_UpdateFieldsForMatPeptide(), CRequestContext::x_UpdateStdContextProp(), CRequestContext::x_UpdateStdPassThroughProp(), x_ValidAminoAcid(), CValidError_bioseq::x_ValidateBarcode(), CSingleFeatValidator::x_ValidateExceptText(), CSingleFeatValidator::x_ValidateGbQual(), CSingleFeatValidator::x_ValidateGbquals(), CSingleFeatValidator::x_ValidateGeneId(), CSingleFeatValidator::x_ValidateImpFeatQuals(), CSingleFeatValidator::x_ValidateLocusTagGeneralMatch(), CMRNAValidator::x_ValidateMrna(), CSingleFeatValidator::x_ValidateNonImpFeat(), CSingleFeatValidator::x_ValidateOldLocusTag(), CCdregionValidator::x_ValidateParentPartialness(), CProtValidator::x_ValidateProteinName(), CValidError_bioseq::x_ValidatePubFeatures(), CCdregionValidator::x_ValidateQuals(), CSingleFeatValidator::x_ValidateReplaceQual(), CSingleFeatValidator::x_ValidateSeqFeatLoc(), CSingleFeatValidator::x_ValidateSeqFeatProduct(), CValidError_bioseq::x_ValidateSourceFeatures(), xCheckEstStsGssTpaKeywords(), CBedColumnData::xCleanColumnValues(), CBedReader::xCleanColumnValues(), CMicroArrayReader::xCleanColumnValues(), CSrcWriter::xGetOriginalId(), XMLRefs(), and CAlnScannerNexus::xProcessDimensions().

◆ EqualNocase() [3/4]

bool NStr::EqualNocase ( const CTempString  s1,
SIZE_TYPE  pos,
SIZE_TYPE  n,
const CTempString  s2 
)
inlinestatic

Case-insensitive equality of a substring with another string.

Parameters
s1String containing the substring to be compared.
posStart position of substring to be compared.
nNumber of characters in substring to be compared.
s2String to be compared with substring.
Returns
  • true, if s1[pos:pos+n) equals s2 (case-insensitive compare);
  • false, otherwise.
See also
Other forms of overloaded EqualNocase() with differences in argument types: char* vs. CTempString[Ex]

Definition at line 5359 of file ncbistr.hpp.

References NStr::CompareNocase(), n, and CTempString::substr().

◆ EqualNocase() [4/4]

bool NStr::EqualNocase ( const CTempStringEx  s1,
const CTempStringEx  s2 
)
inlinestatic

Case-insensitive equality of two strings.

Parameters
s1String to be compared – operand 1.
s2String to be compared – operand 2.
Returns
  • true, if s1 equals s2 (case-insensitive compare);
  • false, otherwise.
See also
EqualCase(), Equal() versions with same argument types.

Definition at line 5375 of file ncbistr.hpp.

References NStr::CompareNocase(), and CTempString::length().

◆ Equals() [1/3]

template<typename T >
bool PCase_Generic< T >::Equals ( const T s1,
const T s2 
) const
inline

Return TRUE if s1 == s2.

Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 5798 of file ncbistr.hpp.

References Compare().

◆ Equals() [2/3]

template<typename T >
bool PNocase_Generic< T >::Equals ( const T s1,
const T s2 
) const
inline

Return TRUE if s1 == s2.

Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 5833 of file ncbistr.hpp.

References Compare().

Referenced by PEqualNocase_Generic< T >::operator()().

◆ Equals() [3/3]

template<typename T >
bool PNocase_Conditional_Generic< T >::Equals ( const T s1,
const T s2 
) const
inline

Return TRUE if s1 == s2.

Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 5871 of file ncbistr.hpp.

References Compare().

Referenced by PEqualNocase_Conditional_Generic< T >::operator()().

◆ erase()

void CTempString::erase ( size_type  pos = 0)
inline

Truncate the string at some specified position Note: basic_string<> supports additional erase() options that we do not provide here.

Definition at line 514 of file tempstr.hpp.

References CTempString::m_Length.

Referenced by CFlatXrefQVal::Format(), g_FixMisplacedPID(), SAccGuide::x_SplitSpecial(), and CUCSCRegionReader::xSmartFieldSplit().

◆ Escape()

string NStr::Escape ( const CTempString  str,
const CTempString  metacharacters,
char  escape_char = '\\' 
)
static

Escape string (generic version).

Prefix any occurrences of the metacharacters with the escape character.

Parameters
strThe string to be escaped. @metacharacters List of characters that need to be escaped. Use NStr::Join() if you have metacharacters in list<>, vector<> or set<>.
escape_charCharacter used for escaping metacharacters. Each metacharacter will be replaced with pair "escape_char + metacharacter". Each escape character will be replaced with pair "escape_char + escape_char".
Returns
Escaped string.
See also
Unescape, PrintableString, Join

Definition at line 3852 of file ncbistr.cpp.

◆ EvaluateFirst()

static bool CUtf8::EvaluateFirst ( char  ch,
SIZE_TYPE more 
)
inlinestatic

Check that the character is valid first byte of an UTF8 byte sequence.

Parameters
chCharacter
moreNumber of additional bytes to expect
Returns
true, if this is a valid first byte

Definition at line 4160 of file ncbistr.hpp.

References CUtf8::x_EvalFirst().

Referenced by CObjectIStreamAsn::AppendStringData(), CObjectIStreamAsnBinary::FixVisibleChars(), CObjectIStreamAsn::ReadChars(), and CObjectIStreamAsn::SkipString().

◆ EvaluateNext()

static bool CUtf8::EvaluateNext ( char  ch)
inlinestatic

Check that the character is valid continuation byte of an UTF8 byte sequence.

Parameters
chCharacter
Returns
true, if this is a valid byte

Definition at line 4170 of file ncbistr.hpp.

References CUtf8::x_EvalNext().

◆ EvaluateSymbolLength()

SIZE_TYPE CUtf8::EvaluateSymbolLength ( const CTempString src)
static

Check buffer for presence of UTF-8 byte sequence and return length of first symbol.

Parameters
srcCharacter buffer
Returns
Number of bytes

Definition at line 7111 of file ncbistr.cpp.

Referenced by CObjectOStreamAsn::WriteChars(), CObjectOStreamAsnBinary::WriteChars(), CObjectOStreamAsnBinary::WriteCString(), CObjectOStreamAsn::WriteString(), and CObjectOStreamAsnBinary::WriteString().

◆ find() [1/2]

CTempString::size_type CTempString::find ( char  match,
size_type  pos = 0 
) const
inline

Find the first instance of a given character string within the current string in a forward direction, beginning at an optional offset.

Definition at line 640 of file tempstr.hpp.

References i, CTempString::length(), CTempString::m_String, match(), and CTempString::npos.

◆ find() [2/2]

CTempString::size_type CTempString::find ( const CTempString  match,
size_type  pos = 0 
) const
inline

Find the first instance of the entire matching string within the current string, beginning at an optional offset.

Definition at line 655 of file tempstr.hpp.

References CTempString::begin(), CTempString::CTempString(), CTempString::find_first_of(), CTempString::length(), match(), and CTempString::npos.

Referenced by SAccGuide::AddRule(), CEndpointKey::CEndpointKey(), CSeqTableSetAnyObjField::CSeqTableSetAnyObjField(), DoesSingleStringMatchConstraint(), g_IsDataFileOld(), CDictionaryUtil::GetMetaphone(), CCgiContext::GetSelfURL(), CSeq_id::IdentifyAccession(), make_server(), variation::Ncbieaa2HgvsAA(), CWGSDb_Impl::NormalizePathOrAccession(), CMaskFromFasta::ParseDataLine(), CFastaReader::ParseGapLine(), ParseTrack(), CAltValidator::ProcessQueue(), python::RetrieveStatementType(), s_EncodeMetadataName(), s_EndsWithStrain(), s_ParseFastaIdString(), s_ParseOSGBlob(), s_ProcessECNumberLine(), NStr::Sanitize(), variation::SeqsMatch(), CSeq_id::Set(), SkipCommentAndBlank(), CSeqFeatData::SubtypeValueToName(), VDBLogWriter(), CDeflineGenerator::x_AdjustProteinTitleSuffix(), CDeflineGenerator::x_AdjustProteinTitleSuffixIdx(), CSourceModParser::x_ApplyMods(), CDeflineGenerator::x_DescribeClones(), CDiff::x_Diff(), CDiff::x_DiffHalfMatchI(), CLatLonCountryMap::x_InitFromFile(), CDB_Numeric::x_MakeFromString(), CString_constraint::x_MatchFound(), CShortReadFastaInputSource::x_ParseDefline(), CFastaDeflineReader::x_ProcessIDs(), CCorrectRNAStrandDlg::x_ProcessRNAStrandLine(), CShortReadFastaInputSource::x_ReadFastc(), CFeature_table_reader::x_ReadFeatureTable(), CNCActiveHandler::x_ReadHttpDataPrefix(), CNCActiveHandler::x_ReadSizeToRead(), CDeflineGenerator::x_SetTitleFromBioSrc(), CDeflineGenerator::x_SetTitleFromGPipe(), CDeflineGenerator::x_SetTitleFromMap(), CDeflineGenerator::x_SetTitleFromNC(), CDeflineGenerator::x_SetTitleFromProtein(), CDeflineGenerator::x_SetTitleFromProteinIdx(), CDeflineGenerator::x_SetTitleFromWGS(), CRegexpTemplateTester::x_SubstituteVars(), and CFeatureTableReader_Imp::x_TokenizeStrict().

◆ Find() [1/5]

SIZE_TYPE NStr::Find ( const CTempString  str,
const CTempString  pattern,
ECase  use_case = eCase,
EDirection  direction = eForwardSearch,
SIZE_TYPE  occurrence = 0 
)
static

Find the pattern in the string.

Parameters
strString to search.
patternPattern to search for in "str".
use_caseWhether to do a case sensitive compare (default is eCase), or a case-insensitive compare (eNocase) while searching for the pattern.
directionDefine a search direction of the requested "occurrence" of "pattern" in "str".
occurrenceWhich occurrence of the pattern in the string to use (zero-based). NOTE: When an occurrence is found the next occurrence will be searched for starting right *after* the found pattern.
Returns
Start of the found pattern in the string. Or NPOS if there is no occurrence of the pattern in the string.
Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 2891 of file ncbistr.cpp.

Referenced by CBlkEdtFeatLocationPanel::AddCommand(), AddDefaultSentinelFeats(), AddExceptionsToShortIntron(), MoleculeIdentifier::AddFields(), CPCRSetList::AddFwdName(), CPCRSetList::AddFwdSeq(), AddMiscRNAFeatures(), CCleanup::AddPartialToProteinTitle(), CAutoDefSourceDescription::AddQual(), CSpecificHostRequest::AddReply(), CPCRSetList::AddRevName(), CPCRSetList::AddRevSeq(), COrgMod::AddStructureToVoucher(), CSrcTaxnameAfterBinomialColumn::AddToBioSource(), CReportTrim::AdjustAndTranslate(), AdjustBacterialGeneForCodingRegionWithShortIntron(), CCDSTranslationPanel::AdjustForStopCodonHyperlinkClicked(), AdjustSingleFeature(), AnalyzeField(), CExpansionRule::ApplyRule(), CRemoveFeaturesDlg::ApplyToCSeq_entry(), CCorrectIntervalOrder::ApplyToCSeq_entry(), variation_ref::CHgvsParser::AsVariationFeat(), CFieldChoicePanel::AutoMatchFeat(), CFieldChoicePanel::AutoMatchRNA(), CNewCleanup_imp::BiosourceBC(), BOOST_AUTO_TEST_CASE(), variation::CalcInstTypeForAA(), CAsnvalOutput::CAsnvalOutput(), CAutoDefFeatureClause::CAutoDefFeatureClause(), CAutoDefGeneClusterClause::CAutoDefGeneClusterClause(), CAutoDefIntergenicSpacerClause::CAutoDefIntergenicSpacerClause(), CAutoDefMiscCommentClause::CAutoDefMiscCommentClause(), CAutoDefMobileElementClause::CAutoDefMobileElementClause(), CAutoDefParsedIntergenicSpacerClause::CAutoDefParsedIntergenicSpacerClause(), CAutoDefParsedRegionClause::CAutoDefParsedRegionClause(), CAutoDefSatelliteClause::CAutoDefSatelliteClause(), CCountryExtreme::CCountryExtreme(), CSubSource::CheckDateFormat(), CPrimerTableCommandConverter::CheckForMixedValues(), CComment_rule::CheckGeneralFieldName(), CComment_rule::CheckGeneralFieldValue(), CGb_qual::CleanupRptUnitRange(), CSrcTaxnameAfterBinomialColumn::ClearInBioSource(), CMiscSeqTableColumn::CMiscSeqTableColumn(), ContainsSgml(), CConvertMiscFeatToGene::Convert(), CConvertImpToProt::Convert(), CSeq_inst::ConvertDeltaToRaw(), CCountries::CountryFixupItem(), CProjectStorage::CProjectStorage(), CSrcTableColumnBaseFactory::Create(), CFeatureSeqTableColumnBaseFactory::Create(), CSeqIdGuesser::CSeqIdGuesser(), CSubSource::DateFromCollectionDate(), CConvertCdsToMiscFeat::DetectStartStopCodons(), CShowBlastDefline::DisplayBlastDefline(), CStringConstraint::DoesTextMatch(), CNewCleanup_imp::Except_textBC(), CCmdCreateCDS::Execute(), CPatternStats::ExpandPattern(), CReportNode::Export(), CName_std::ExtractSuffixFromLastName(), CGlTextureFont::FaceFromString(), NStr::Find(), CSeqTranslator::FindBestFrame(), CSelectTargetDlg::FindBioseq(), NStr::FindCase(), COrgMod::FindInstitutionCode(), NStr::FindNoCase(), CDesktopItem::FindSearchItem(), CLocalFileRestorer::FindSMARTPrjTextView(), FindWithOptions(), CBioSource::FixEnvironmentalSample(), FixOrgNames(), CCleanup::FixRNAEditingCodingRegion(), COrgMod::FixStructuredVoucher(), FixTextInObject(), CDiscrepancySet::Format(), CFlatTrnaCodonsQVal::Format(), CGenbankFormatter::FormatCache(), CGenbankFormatter::FormatComment(), CGBSeqFormatter::FormatFeature(), g_FixMisplacedPID(), g_GetWorkerNodes(), g_WorkerNodeInfoToJson(), CNewCleanup_imp::GBQualSeqFeatBC(), IEditingAction::GetActionCommand(), GetCitBook(), GetCitBookOld(), CAddGlobalCodeBreak::GetCommand(), CAddSecondary::GetCommand(), CConvertCdsToMiscFeat::GetCommand(), CExtendCDSToStop::GetCommand(), CExtendPartialFeatDlg::GetCommand(), CFixForTransSplicing::GetCommand(), CFuseFeaturesDlg::GetCommand(), CTruncateCDS::GetCommand(), CRetranslateCDS::GetCommand(), CEditCdsFrame::GetCommand(), GetDescAlternateEmailAddress(), CValidErrorFormat::GetDescriptorContent(), CBioSource::GetDisableStrainForwarding(), CEditObjectSeq_feat::GetEditCommand(), CAutoDefFeatureClause_Base::GetFeatureClausePhrases(), CFieldChoicePanel::GetFieldName(), CFileSubpanel::GetFilename(), GetGenBankRefType(), CAlignFormatUtil::GetGiLinksList(), CSeqIdGuesser::GetIdStrings(), GetIsStructuredVoucher(), SrcEditDialog::GetLabelForTitle(), CFeatureGenePanel::GetLocationForGene(), CAutoDefFeatureClause_Base::GetMiscRNAElements(), CGb_qual::GetMobileElementValueElements(), CFastaBioseqSource::GetNext(), CCleanup::GetNormalizableGeneQualPairs(), CValidError_feat::GetPrefixAndAccessionFromInferenceAccession(), CDoiLookup::GetPubFromCrossRef(), GetReportFromMailReportTable(), NMItemData::GetResolveFuncForApplyAuthors(), NMItemData::GetResolveFuncForDestCdsGeneProtQuals(), NMItemData::GetResolveFuncForDestFeatQuals(), CRemoteBlast::GetResultSet(), GetSortOrderId(), CAutoDefModifierCombo::GetSourceDescriptionString(), GetTargetedLocusName(), CAutoDefFeatureClause_Base::GetTrnaIntergenicSpacerClausePhrases(), CInferencePanel::GetValue(), CPrimerTableCommandConverter::GetValuesTableFromSeqEntry(), CVDBBlastUtil::GetVDBSeqIdFromOID(), CGencollIdMapper::Guess(), CCleanupApp::HandleSeqEntry(), CValidError_imp::HandleTaxonomyError(), HasBadCharacter(), HasCultureCollectionForATCCStrain(), HasInternalStop(), HasOverlapNote(), variation::HasProblematicExceptions(), HasStrainForATCCCultureCollection(), CNewCleanup_imp::ImpFeatBC(), CAutoDefIntergenicSpacerClause::InitWithString(), InspectSeqFeat(), COrgMod::IsBiomaterialValid(), CSubSource::IsCorrectDateFormat(), COrgMod::IsCultureCollectionValid(), CProt_ref::IsECNumberSplit(), CAutoDefFeatureClause::IsGeneCluster(), CStringConstraint::IsInRange(), CSubSource::IsISOFormatDate(), CSubSource::IsISOFormatTime(), IsLikelyTaxname(), CFormatGuess::IsLineAgp(), CFormatGuess::IsLineAugustus(), CFormatGuess::IsLineGff3(), CRefArgs::IsListedHost(), CAutoDefModifierCombo::IsModifierInString(), IsOldComplementedName(), CSubSource::IsPlasmidNameValid(), COrgMod::IsSpecimenVoucherValid(), IsSpName(), IsTransSpliced(), CAutoDefFeatureClause_Base::IsuORF(), CPCRPrimerSeq::IsValid(), CRptUnitRangeColumn::IsValid(), IsValidEmail(), CAlignFormatUtil::IsWGSPattern(), JoinString(), ITreeMacroFunction::JSFilter(), CMatchFeatureTableDlg::LinearAutomatch(), CAutoDefFeatureClause_Base::ListClauses(), CSpecificHostRequest::ListErrors(), CTaxValidationAndCleanup::ListTaxLookupErrors(), MakeEntryForDeltaConversion(), CExpectedError::Match(), MatchArraySubString(), MatchColumnName(), CStringMatching::MatchString(), NcbiOpenURL(), CCountries::NewFixCountry(), CSubPrep_panel::OnChangeSet(), SrcEditDialog::OnExportQualsClick(), CGenericPanel::OnGenericReportFindClick(), CGenericPanel::OnGenericReportFindClick2(), CJournalPanel::OnJournalLookupIsojtaClick(), CFindASN1Dlg::OnReplaceButton(), CTextSubpanel::OnSelectButton(), PathFinder::operator()(), CInStringPred::operator()(), CCleanup::ParseCodeBreak(), CGb_qual::ParseExperiment(), CGb_qual::ParseInferenceString(), CAutoDefParsedtRNAClause::ParseString(), COrgMod::ParseStructuredVoucher(), CMakefilePatch::PatchTreeMakefiles(), CAutoDefFeatureClause_Base::PluralizeInterval(), CWordPairIndexer::PopulateWordPairIndex(), variation_ref::CVariationUtil::PrecursorToProt(), CSuspendProcessor::Process(), CAckAlertProcessor::Process(), CDeflineProcess::ProcessInitialize(), CBiosampleChkApp::ProcessOneDirectory(), CBiosampleChkApp::ProcessOneFile(), CNewCleanup_imp::ProtFeatfBC(), CNewCleanup_imp::ProtNameBC(), CNewCleanup_imp::ProtrefBC(), CNewCleanup_imp::ProtSeqBC(), CBlastInputReader::ReadOneSeq(), RelaxedMatch(), RemoteBlastDbLoader_ErrorHandler(), RemovePrefix(), RemoveStrain(), RemoveSuffix(), ReplaceIfNotFound(), CTableImportDataSource::ReplaceSpaces(), COrgMod::RescueInstFromParentheses(), CCleanupApp::Run(), CMytestApplication::Run(), CDbapiTestSpeedApp::RunSample(), CTestTranscript_PolyA::RunTest(), s_AddCDS(), s_AmbiguousMatch(), s_CalculateMatchingColumns(), s_CheckQuals_cdregion(), s_CleanupLatLon(), CCleanup::s_CleanupNameStdBC(), s_ContainsWholeWord(), s_CountBlastDbDataLoaders(), s_CreateHistCommentString(), CISOJTALookupWithCache::s_DoLookup(), CMacroFunction_EditStringQual::s_EditText(), s_EndsWithStrain(), s_FailsGenusOrSpeciesTest(), s_FindFromNocase(), s_FindWholeName(), s_FindWholeWord(), s_FixBioseqLabelProblems(), CMacroFunction_FixFormat::s_FixLatLonFormat(), s_GBSeqStrandedness(), s_GeneralTagsMatch(), s_GetErrTypeFromString(), s_GetExpansion(), s_GetInstCodeFromBioSource(), s_GetLinkoutUrl(), s_GetMolinfoMember(), s_GetProductFlagFromCDSProductNames(), s_GetTrackName(), s_GetTRNAAbbrev(), s_GetVcfAttribute(), s_HtmlizeStructuredCommentData(), fix_pub::s_IsIndexed(), CValidError_imp::s_IsSalmonellaGenus(), s_IsSameAccession(), s_IsUndefinedSpecies(), s_LimitDescrLength(), s_ListLinesWithPattern(), s_LookForOidlistInAliasFile(), s_MatchSeqIds(), s_NormalizeTokens(), s_RemoveBracketedOrgFromEnd(), s_RemoveCallbackParameter(), s_RemoveOrgFromEndOfProtein(), s_RemoveValueFromNote(), s_ReplaceArg(), s_RptUnitIsBaseRange(), s_ShortenLatLon(), s_StartsWithNcrnaName(), s_StringHasPMID(), s_TitleEndsInOrganism(), s_TruncateLatLon(), s_UnregisterDataLoader(), s_UpdateVolumesInAliasFile(), s_UseCommentBeforeSemicolon(), s_ValidateCustomDelim(), s_WarnAboutIgnoredResidues(), CRemoteAppRequest::Send(), SeqIdToIdentifier(), CTextSubpanel::SetClusters(), CAlignFormatUtil::SetCustomLinksTypes(), CBioSource::SetDisableStrainForwarding(), CFieldChoicePanel::SetFieldName(), CFeatureFieldNamePanel::SetFieldName(), CAutoDefParsedClause::SetMiscRNAWord(), SetOverlapNote(), CEntrezSearchJob::SetReleaseType(), SetTranslExcept(), CUrl::SetUrl(), CMultipleAssemblyProgramPanel::SetValue(), CSingleAssemblyMethod::SetValue(), CSingleAssemblyProgramPanel::SetValue(), CVoucherPanel::SetValue(), CRptUnitRangePanel::SetValue(), CTwoPartQualPanel::SetValue(), ShouldIgnore(), SpecificHostValueToCheck(), CExpectedError::Test(), CFormatGuess::TestFormatFasta(), CFormatGuess::TestFormatWiggle(), CMacroFunction_ReplaceStopWithSelenocysteine::TheFunction(), CRNAPanel::TransferDataFromWindow(), CPublishedRefPanel::TransferDataToWindow(), CSequencingTechnologyPanel::TransferDataToWindow(), CPmidValidator::TransferFromWindow(), CSeqTranslator::TranslateToProtein(), TraverseAndRunTestCases(), TrimInternalSemicolons(), CWordPairIndexer::TrimPunctuation(), TruncateCDSAtStop(), CTruncateCDS::TruncateProteinFeat(), CSeqTableGridPanel::UpdateColumnLabelHeight(), CGeneValidator::Validate(), CPmidValidator::Validate(), CValidError_bioseq::ValidateBioseqContext(), CValidError_imp::ValidateBioSource(), CValidError_imp::ValidateBioSourceForSeq(), CValidError_bioseq::ValidateCollidingGenes(), CValidError_desc::ValidateComment(), CValidError_bioseq::ValidateCompleteGenome(), CValidError_bioseq::ValidateDupOrOverlapFeats(), CValidError_bioseq::ValidateFeatPartialInContext(), CValidError_feat::ValidateInferenceAccession(), CSubSource::ValidateLatLonCountry(), CAsnvalApp::ValidateOneDirectory(), CValidError_imp::ValidateOrgName(), CValidError_imp::ValidateOrgRef(), CValidError_bioseqset::ValidatePopSet(), CValidError_imp::ValidatePubdesc(), CValidError_bioseq::ValidateSeqDescContext(), CValidError_bioseq::ValidateSeqFeatContext(), CValidError_imp::ValidateSubSource(), CValidError_bioseq::ValidateTwintrons(), CCleanup::x_AddLowQualityException(), CAutoDefModifierCombo::x_AddMinicircle(), CConvertGeneToRNA::x_AddOneGeneField(), CAutoDefModifierCombo::x_AddOrgModString(), CFeatureItem::x_AddQualsSite(), CFeatureItem::x_AddRptUnitQual(), CAutoDefModifierCombo::x_AddSubsourceString(), CDeflineGenerator::x_AdjustProteinTitleSuffix(), CDeflineGenerator::x_AdjustProteinTitleSuffixIdx(), CGvfWriteRecord::x_AppendAttribute(), CValidError_bioseq::x_BadMetazoanMitochondrialLength(), CCDSTranslationProblems::x_CheckCDSFrame(), CFeatureItem::x_CleanQuals(), CAutoDefModifierCombo::x_CleanUpTaxName(), SGridWorkerNodeImpl::x_ClearNode(), CTooltipFrame::x_CreateHtmlTextControl(), CNCMessageHandler::x_DoCmd_GetBList(), CImportFeatTable::x_DoImportCDS(), CGencollIdMapper::x_FindChromosomeSequence(), CTableImportDataSource::x_FindHeaderRows(), CFormatGuess::x_FindJsonStringLimits(), CAutoDefFeatureClause::x_FindNoncodingFeatureKeywordProduct(), CValidErrorFormat::x_FormatConsensusSpliceForSubmitterReport(), CDisplaySeqalign::x_FormatDefLinesHeader(), CShowBlastDefline::x_FormatDeflineTableLineCSV(), CValidErrorFormat::x_FormatGenericForSubmitterReport(), CFeatureItem::x_FormatGOQualCombined(), CAlnGraphic::x_FormatGraphOverview(), CGenomeAssemblyComment::x_GetAssemblyMethodProgramAndVersion(), CCorrectGenesDialog::x_GetConstrainedList(), CAttribTableColumnIdPanel::x_GetConstraintField(), CAutoDef::x_GetFeatureClauseProductEnding(), CSequenceSearchJob::x_GetMatches(), CAutoDefFeatureClause::x_GetNoncodingProductFeatProduct(), CSubSource::x_GetPrecision(), CAutoDefFeatureClause::x_GetProductName(), CAutoDefNcRNAClause::x_GetProductName(), CRemoveName::x_GetReplacementIds(), CAutoDefFeatureClause_Base::x_GetRnaMiscWordType(), CSeqUpdateWorker::x_GetSeqsWithIgnoredResidues(), SrcEditDialog::x_GetSourceTableChoices(), COrg_ref::x_GetTaxnameAfterFirstTwoWords(), CNcbiTestApplication::x_GetTrimmedTestName(), CNewCleanup_imp::x_HandleTrnaProductGBQual(), SAliasFileData::x_HasKeyword(), variation::CHgvsParser::x_header(), CFeatureItem::x_ImportQuals(), CReferenceItem::x_Init(), CBioseqIndex::x_InitDescs(), CAgpConverter::x_InitializeCopyOfTemplate(), CTaxValidationAndCleanup::x_InterpretTaxonomyError(), CNewCleanup_imp::x_IsDotBaseRange(), CSubSource::x_IsFixableIsoDate(), CAlnReader::x_IsGap(), CNewCleanup_imp::x_IsHyphenBaseRange(), CValidError_bioseq::x_IsMicroRNA(), CSubPrep_panel::x_IsSequencingTechnologyRequired(), CBlastAppArgs::x_IssueWarningsForIgnoredOptions(), CRemoteBlast::x_IsUnknownRID(), CTraversalNode::x_LoadDataFromASNNode(), CGencollIdMapper::x_MakeSpecForSeq(), CFeatureSearchJob::x_Match(), CAutoDefFeatureClause_Base::x_MeetAltSpliceRules(), CNewCleanup_imp::x_MendSatelliteQualifier(), CRegexpTemplateTester::x_Op_Test(), CCleanupApp::x_OpenOStream(), CNewCleanup_imp::x_OrgnameModBC(), SAliasFileData::x_Parse(), CSubSource::x_ParseDateRangeWithDelimiter(), CAgpValidateReader::x_PrintTotals(), CCleanupApp::x_ProcessFeatureOptions(), CCleanupApp::x_ProcessOneFile(), CCleanupApp::x_ProcessXOptions(), CPsiBlastInputClustalW::x_ReadAsciiMsa(), CSubSource::x_RemoveIsoTime(), CBioSource::x_RemoveNameElementDiffs(), CValidError_bioseq::x_ReportImproperPartial(), CValidError_bioseq::x_ReportInternalPartial(), CCdregionValidator::x_ReportTranslationProblems(), CProtValidator::x_ReportUninformativeNames(), CSequenceUpdater::x_RetranslateImportedCDSProduct(), CSequenceUpdater::x_RetranslateOldCDSProduct(), CConnection::x_SendXactAbort(), CNewCleanup_imp::x_SeqFeatRnaGBQualBC(), CDeflineGenerator::x_SetFlags(), CDeflineGenerator::x_SetFlagsIdx(), CBioSource::x_ShouldIgnoreNoteForBiosample(), x_SpaceToDash(), CRegexpTemplateTester::x_SubstituteVars(), CCountries::x_Tokenize(), CMatchFeatureTableDlg::x_TokenMatch(), CValidError_bioseq::x_ValidateCDSmRNAmatch(), CSingleFeatValidator::x_ValidateCompareVal(), CValidError_align::x_ValidateDendiag(), CValidError_align::x_ValidateDenseg(), CProtValidator::x_ValidateECNumbers(), CSingleFeatValidator::x_ValidateExceptText(), CGeneValidator::x_ValidateExceptText(), CCdregionValidator::x_ValidateFeatComment(), CSingleFeatValidator::x_ValidateGbQual(), CSingleFeatValidator::x_ValidateGbquals(), CCdregionValidator::x_ValidateGeneticCode(), CGeneValidator::x_ValidateMultiIntervalGene(), CValidError_bioseq::x_ValidateOverlappingRNAFeatures(), CCdregionValidator::x_ValidateProductId(), CProtValidator::x_ValidateProteinName(), CValidError_bioseq::x_ValidatePubFeatures(), CValidError_bioseq::x_ValidateSourceFeatures(), CValidError_align::x_ValidateStd(), CValidError_bioseq::x_ValidateTitle(), CGtfWriter::xAssignFeaturesTranscript(), CSrcWriter::xGetColStub(), and CFeatureTableReader::xMoveCdRegions().

◆ Find() [2/5]

static SIZE_TYPE NStr::Find ( const CTempString  str,
const CTempString  pattern,
SIZE_TYPE  start 
)
inlinestatic

Wrapper for backward-compatibility.

Definition at line 2032 of file ncbistr.hpp.

References NStr::FindCase(), and str().

◆ Find() [3/5]

SIZE_TYPE NStr::Find ( const CTempString  str,
const CTempString  pattern,
SIZE_TYPE  start,
SIZE_TYPE  end,
EOccurrence  which = eFirst,
ECase  use_case = eCase 
)
inlinestatic

Find the pattern in the specified range of a string.

Parameters
strString to search.
patternPattern to search for in "str".
startPosition in "str" to start search from. 0 means start the search from the beginning of the string.
endPosition in "str" to perform search up to. NPOS means to search to the end of the string.
whichWhen set to eFirst, this means to find the first occurrence of "pattern" in "str". When set to eLast, this means to find the last occurrence of "pattern" in "str".
use_caseWhether to do a case sensitive compare (default is eCase), or a case-insensitive compare (eNocase) while searching for the pattern.
Returns
  • The start of the first or last (depending on "which" parameter) occurrence of "pattern" in "str", within the string interval ["start", "end"], or
  • NPOS if there is no occurrence of the pattern.
See also
FindCase, FindNoCase, FindWord
Deprecated:
Use
Find(str, pattern, [use_case], [direction], [occurrence])
static const char * str(char *buf, int n)
Definition: stats.c:84
static SIZE_TYPE Find(const CTempString str, const CTempString pattern, ECase use_case=eCase, EDirection direction=eForwardSearch, SIZE_TYPE occurrence=0)
Find the pattern in the string.
Definition: ncbistr.cpp:2891

method instead. For example:

Find(str, pattern, 0, NPOS, eLast, eCase)
#define NPOS
Definition: ncbistr.hpp:133
@ eLast
Last occurrence.
Definition: ncbistr.hpp:1941
@ eCase
Case sensitive compare.
Definition: ncbistr.hpp:1205

can be replaced by

Find(str, pattern, eCase, eReverseSearch, /* 0 */)
@ eReverseSearch
Search in a backward direction.
Definition: ncbistr.hpp:1947

If you doing a search on a substring of the 'str' and ["start", "end"] search interval is not a default [0, NPOS], that mean a whole 'str' string, you may need to pass a substring instead of 'str', like

Find(CTempString(str, start, len), pattern, ....)
CTempString implements a light-weight string on top of a storage buffer whose lifetime management is ...
Definition: tempstr.hpp:65
int len

and after checking search result on NPOS, adjust it by 'start' yourself.

Definition at line 5476 of file ncbistr.hpp.

References NStr::eFirst, NStr::eForwardSearch, NStr::eReverseSearch, NStr::Find(), NPOS, and str().

◆ Find() [4/5]

const string * NStr::Find ( const list< string > &  lst,
const CTempString  val,
ECase  use_case = eCase 
)
static

Test for presence of a given string in a list or vector of strings.

Definition at line 3026 of file ncbistr.cpp.

◆ Find() [5/5]

const string * NStr::Find ( const vector< string > &  vec,
const CTempString  val,
ECase  use_case = eCase 
)
static

Definition at line 3038 of file ncbistr.cpp.

◆ find_first_not_of()

CTempString::size_type CTempString::find_first_not_of ( const CTempString  match,
size_type  pos = 0 
) const
inline

◆ find_first_of()

CTempString::size_type CTempString::find_first_of ( const CTempString  match,
size_type  pos = 0 
) const
inline

◆ find_last_not_of()

CTempString::size_type CTempString::find_last_not_of ( const CTempString  match,
size_type  pos = npos 
) const
inline

Find the last occurrence of any character not in the matching string within the current string, beginning at an optional offset.

Definition at line 610 of file tempstr.hpp.

References CTempString::begin(), CTempString::length(), match(), and CTempString::npos.

Referenced by CPoolBalancer::x_NameToKey().

◆ find_last_of()

CTempString::size_type CTempString::find_last_of ( const CTempString  match,
size_type  pos = npos 
) const
inline

Find the last occurrence of any character in the matching string within the current string, beginning at an optional offset.

Definition at line 580 of file tempstr.hpp.

References CTempString::begin(), CTempString::length(), match(), and CTempString::npos.

Referenced by CTempString::rfind().

◆ FindCase() [1/5]

SIZE_TYPE NStr::FindCase ( const CTempString  str,
const CTempString  pattern 
)
inlinestatic

Wrappers for backward-compatibility.

Definition at line 5503 of file ncbistr.hpp.

References NStr::eCase, NStr::Find(), and str().

◆ FindCase() [2/5]

SIZE_TYPE NStr::FindCase ( const CTempString  str,
const CTempString  pattern,
SIZE_TYPE  start 
)
inlinestatic

Definition at line 5509 of file ncbistr.hpp.

References NStr::eCase, NStr::Find(), NPOS, and str().

◆ FindCase() [3/5]

SIZE_TYPE NStr::FindCase ( const CTempString  str,
const CTempString  pattern,
SIZE_TYPE  start,
SIZE_TYPE  end,
EOccurrence  which = eFirst 
)
inlinestatic

Find the pattern in the specified range of a string using a case sensitive search.

Parameters
strString to search.
patternPattern to search for in "str".
startPosition in "str" to start search from – default of 0 means start the search from the beginning of the string.
endPosition in "str" to perform search up to – default of NPOS means to search to the end of the string.
whichWhen set to eFirst, this means to find the first occurrence of "pattern" in "str". When set to eLast, this means to find the last occurrence of "pattern" in "str".
Returns
  • The start of the first or last (depending on "which" parameter) occurrence of "pattern" in "str", within the string interval ["start", "end"], or
  • NPOS if there is no occurrence of the pattern.
See also
Find
Deprecated:

Use Find() method without [start:end] range.

Use one of the next methods instead:

Find(str, pattern, [use_case], [direction], [occurrence])
FindCase(str, pattern, [start])
static SIZE_TYPE FindCase(const CTempString str, const CTempString pattern, SIZE_TYPE start, SIZE_TYPE end, EOccurrence which=eFirst)
Find the pattern in the specified range of a string using a case sensitive search.
Definition: ncbistr.hpp:5490

For example:

FindCase(str, pattern, 0, NPOS, eLast)

can be replaced by

Find(str, pattern, eCase, eReverseSearch, /* 0 */)

For simpler cases without range, or with default [0, NPOS] please use

FindCase(str, pattern, [start])

But if you doing a search on a substring of the 'str' and ["start", "end"] search interval is not a default [0, NPOS], that mean a whole 'str' string, you may need to pass a substring instead of 'str', like

FindCase(CTempString(str, start, len), pattern, ....)

and after checking search result on NPOS, adjust it by 'start' yourself.

Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 5490 of file ncbistr.hpp.

References NStr::eFirst, CTempString::length(), NPOS, and str().

Referenced by CSimpleMakeFileContents::AddReadyKV(), CGetLoadProcessor::Authenticate(), NStr::Find(), CExpansionRule::Init(), SNetCacheAPIImpl::InitiateWriteCmd(), CRepeatMaskerReader::IsHeaderLine(), CRepeatMaskerReader::IsIgnoredLine(), CFormatGuess::IsInputRepeatMaskerWithHeader(), CProjBulderApp::LoadDepGraph(), CSetValidWarningSuppressor::OnWarning(), CMacroFunction_EditStringQual::s_EditText(), s_FlyCG_PtoR(), CValidError_imp::ValidatePubGen(), x_FlyCG_PtoR(), CNCActiveHandler::x_ReadCopyProlong(), CNCActiveHandler::x_ReadCopyPut(), CNCActiveHandler::x_ReadSyncGetHeader(), CNCActiveHandler::x_ReadSyncProInfoAnswer(), CNCActiveHandler::x_ReadSyncStartAnswer(), CNCActiveHandler::x_ReadSyncStartHeader(), and CProtValidator::x_ValidateProteinName().

◆ FindCase() [4/5]

const string * NStr::FindCase ( const list< string > &  lst,
const CTempString  val 
)
inlinestatic

Definition at line 5535 of file ncbistr.hpp.

References NStr::eCase, NStr::Find(), and val.

◆ FindCase() [5/5]

const string * NStr::FindCase ( const vector< string > &  vec,
const CTempString  val 
)
inlinestatic

Definition at line 5547 of file ncbistr.hpp.

References NStr::eCase, NStr::Find(), and val.

◆ FindNoCase() [1/5]

SIZE_TYPE NStr::FindNoCase ( const CTempString  str,
const CTempString  pattern 
)
inlinestatic

Wrapper for backward-compatibility.

Definition at line 5519 of file ncbistr.hpp.

References NStr::eNocase, NStr::Find(), and str().

◆ FindNoCase() [2/5]

SIZE_TYPE NStr::FindNoCase ( const CTempString  str,
const CTempString  pattern,
SIZE_TYPE  start 
)
inlinestatic

Definition at line 5525 of file ncbistr.hpp.

References NStr::eNocase, NStr::Find(), NPOS, and str().

◆ FindNoCase() [3/5]

SIZE_TYPE NStr::FindNoCase ( const CTempString  str,
const CTempString  pattern,
SIZE_TYPE  start,
SIZE_TYPE  end,
EOccurrence  which = eFirst 
)
static

Find the pattern in the specified range of a string using a case insensitive search.

Parameters
strString to search.
patternPattern to search for in "str".
startPosition in "str" to start search from – default of 0 means start the search from the beginning of the string.
endPosition in "str" to perform search up to – default of NPOS means to search to the end of the string.
whichWhen set to eFirst, this means to find the first occurrence of "pattern" in "str". When set to eLast, this means to find the last occurrence of "pattern" in "str".
Returns
  • The start of the first or last (depending on "which" parameter) occurrence of "pattern" in "str", within the string interval ["start", "end"], or
  • NPOS if there is no occurrence of the pattern.
See also
Find
Deprecated:
Use one of the next methods instead:
Find(str, pattern, [use_case], [direction], [occurrence])
FindNoCase(str, pattern, [start])
static SIZE_TYPE FindNoCase(const CTempString str, const CTempString pattern, SIZE_TYPE start, SIZE_TYPE end, EOccurrence which=eFirst)
Find the pattern in the specified range of a string using a case insensitive search.
Definition: ncbistr.cpp:2993

For example:

FindNoCase(str, pattern, 0, NPOS, eLast)

can be replaced by

Find(str, pattern, eNocase, eReverseSearch, /* 0 */)
@ eNocase
Case insensitive compare.
Definition: ncbistr.hpp:1206

For simpler cases without range, or with default [0, NPOS] please use

FindNoCase(str, pattern, [start])

But if you doing a search on a substring of the 'str' and ["start", "end"] search interval is not a default [0, NPOS], that mean a whole 'str' string, you may need to pass a substring instead of 'str', like

FindNoCase(CTempString(str, start, len), pattern, ....)

and after checking search result on NPOS, adjust it by 'start' yourself.

Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 2993 of file ncbistr.cpp.

Referenced by CBrowserUtils::AddBaseTag(), CConvertDescToFeatPubConstraint::apply(), CRemoveFeaturesDlg::ApplyToCSeq_entry(), CCorrectIntervalOrder::ApplyToCSeq_entry(), BOOST_AUTO_TEST_CASE(), CSpliceProblems::CalculateSpliceProblems(), CCdsMatchInfo::CCdsMatchInfo(), CCgiEntryReaderContext::CCgiEntryReaderContext(), CComment_rule::CheckFieldValue(), CSeqTechDlg::CheckSequencingTechnology(), CUnculTaxTool::CompareOrgnameLineage(), CCountries::ContainsMultipleCountryNames(), CUnculTaxTool::ConvertSpeciesSpecificNote(), CSrcTableColumnBaseFactory::Create(), CEditMacroDlg::CreateControls(), CConnTest::DispatcherOkay(), DoesSingleStringMatchConstraint(), CMQueryFunctionValue::Evaluate(), CPhyObjectLoader::Execute(), CTrackListCtrl::FilterValues(), CFindEditSequence::FindMatchPositions(), CSeqTextDataSource::FindSequenceFragment(), CSeqTextDataSource::FindSequenceFragmentList(), FindSuspiciousNotePhrases(), FixHumanHost(), CSeqFeatData::FixRegulatoryClassValue(), CNewCleanup_imp::GBQualSeqFeatBC(), CTraversalNode::GenerateCode(), CMacroEditorContext::GetAsnPathToAuthorFieldName(), CConvertBadCdsAndRnaToMiscFeat::getBacterialPartialNonextendable(), NSnpGui::GetBinLinks(), CBioSource::GetBioprojectLocation(), CBioSource::GetBioprojectType(), CConvertBadCdsAndRnaToMiscFeat::getCdsOverlap(), GetCitBookOld(), CSubPrep_panel::GetConverterForFieldName(), CMatchFeatureTableDlg::GetFtableIDToSeqIDMap(), CSeqUtils::GetGIString(), SrcEditDialog::GetLabelForTitle(), CRefArgs::GetQueryString(), CApplyRNAITSDlg::GetRNAITSList_AlignCoordFromDlg(), CApplyRNAITSDlg::GetRNAITSList_SeqCoordFromDlg(), CConvertBadCdsAndRnaToMiscFeat::getRnaOverlap(), CSnpTrackFactory::GetSettings(), CAlignmentTrackFactory::GetSettings(), GetSPSitesMod(), CUnculturedTool::GetSuggestedCorrection(), CMacroEngine::GetSynonymFilenames(), CFileIDField::GetVal(), CSubPrep_panel::GuessWizardTypefromSeqEntry(), CValidError_imp::HandleTaxonomyError(), HasBadWord(), CSubSource::HasCultureNotes(), CDiscrepancyContext::HasLineage(), CAuthorNamesContainer::ImportAuthorsFromFile(), SNetServiceImpl::Init(), InterpretMrnaException(), InterpretSpecificHostResult(), IsBadSeqInstStrand(), CSymResolver::IsDefine(), IsDicistronic(), IsKnownNonConsensusSplice(), CRefArgs::IsListedHost(), CAutoDefFeatureClause::IsLTR(), IsMissingRequiredClone(), CSubSource::IsPlasmidNameValid(), IsPubUnpublished(), CConvertBadCdsAndRnaToMiscFeat::IsShortrRNA(), IsShortrRNA(), CUnculTaxTool::IsSpeciesSpecific(), COrgMod::IsStructuredVoucherValid(), CCountries::IsSubstringOfStringInList(), CValidError_imp::IsSyntheticConstruct(), CAlignmentTrack::LayoutStrToValue(), CEditMacroDlg::LoadOtherMacros(), CSearch_func::Match(), MatchArrayISubString(), MoveMiddleToFirst(), NMItemData::NormalizeFieldForFeatPanel(), CUnculTaxTool::OkToTaxFix(), CMacroFlowEditor::OnFindClick(), CMrnaMatchInfo::Overlaps(), CUnculTaxTool::PreloadCache(), ProductNamesAreSimilar(), CSubSource::RemoveCultureNotes(), ReplaceInPlaceWholeWordNoCase(), ReplaceNoCase(), pub_report::ReportTitleDiff(), ReportTranslationErrors(), python::RetrieveStatementType(), CVectorScreen::Run(), CClientGenomicCollectionsSvcApplication::Run(), s_CheckPSGMethod(), s_CleanCDDFeature(), s_CleanupIsShortrRNA(), CUnculturedTool::s_CompareOrgnameLineage(), CMacroFunction_EditStringQual::s_EditText(), s_EndsWithStrain(), s_FailsGenusOrSpeciesTest(), CMacroFunction_FixProteinFormat::s_FixProteinNameFormat(), s_FormatCitGen(), s_GenerateWeblinks(), CMacroWorker::s_GetMacroSteps(), CMacroFunction_MobileElementTypeFields::s_GetMobileElemTName(), CMacroFunction_MobileElementTypeFields::s_GetMobileElemTType(), CMacroFunction_SatelliteFields::s_GetSatelliteName(), CMacroFunction_SatelliteFields::s_GetSatelliteType(), CValidError_bioseq::s_GetStrandedMolStringFromLineage(), s_HasSubSourceNote(), s_IsAssemblyMethodValid(), CAdjustForConsensusSpliceSite::s_IsBioseqGood_Strict(), s_IsGnomonModel(), s_IsVirusOrPhage(), s_NotPeptideException(), CUnculturedTool::s_OkToTaxFix(), s_ParseDateTime(), s_ParseTRnaFromAnticodonString(), s_ReadPerClientConfig(), s_ReplaceInPlaceBetweenQuotes(), s_ReplaceInPlaceWholeWordNoCase(), s_SetUpXrefPairs(), s_SvcHeader(), s_TestVCFData(), s_TranslateCds(), s_WantChimeraForSource(), CPaintSequence::Search(), CMatchesListCtrl::SelectStrongModerate(), CGeneFieldPanel::SetFieldName(), CSourceFieldNamePanel::SetFieldName(), CSubmitBlockDlg::SetPageForError(), sGetFastaFlags(), SummarizeIdProblems(), CId2ReaderBase::sx_CheckErrorFlag(), fix_pub::TenAuthorsCompare(), CFormatGuess::TestFormatNewick(), CUnculTaxTool::TrimSuggestions(), CUnculTaxTool::TryRankFix(), CIntronValidator::Validate(), CValidError_bioseq::ValidateBadGeneOverlap(), CValidError_imp::ValidateBioSource(), CValidError_imp::ValidateBioSourceForSeq(), CValidError_imp::ValidateOrgModVoucher(), CValidError_imp::ValidateOrgName(), CValidError_imp::ValidateOrgRef(), CValidError_bioseq::ValidateSeqDescContext(), CValidError_bioseq::ValidateSeqFeatContext(), CValidError_imp::ValidateSeqLoc(), CValidError_imp::ValidateSourceQualTags(), CValidError_desc::ValidateTitle(), CNCBlobStorage::WriteDbInfo(), CCgiResponse::WriteHeader(), CNewCleanup_imp::x_AddEnvSamplOrMetagenomic(), COctetStringDataType::x_AsBitString(), CCreateGeneModelTask::x_AssignIDsAndUpdateGenes(), CCdregionValidator::x_BypassCDSPartialTest(), CValidError_bioseq::x_CheckSingleStrandedRNAViruses(), CValidError_bioseq::x_CompareStrings(), CUnculturedTool::x_ConvertNote(), CNetBLAST_DMSearchJob::x_DoSearch(), CGFFReader::x_FeatureID(), CBamRefSequencesPanel::x_FillList(), CVcfRefSequencesPanel::x_FillList(), CItemSelectionPanel::x_FilterItems(), CBLAST_DB_Dialog::x_FilterItems(), CObjectListWidgetSel::x_FilterObjectList(), CMacroEditingActionPanel::x_FindItem(), CStrainSerotypeInfluenza::x_FixupOrganismNames(), CFeatureItem::x_FormatGOQualCombined(), x_GetAccountNameBySid(), CCgiEntry::x_GetCharset(), CCDSTranslationProblems::x_GetExceptionFlags(), CSatelliteColumn::x_GetSatelliteName(), CSatelliteColumn::x_GetSatelliteType(), CEditingActionBiosourceTaxnameAfterBinomial::x_GetTextAfterNomial(), CSrcTaxnameAfterBinomialColumn::x_GetTextAfterNomial(), CAutoDefModifierCombo::x_HasTypeStrainComment(), CBioseqIndex::x_InitSource(), CStrainSerotypeInfluenza::x_IsParsableInfluenzaVirusName(), CStrainRequest::x_IsUnwanted(), x_LeuCUGstart(), CEditMacroDlg::x_LoadAutofixMacro(), SDataLoaderConfig::x_LoadDataLoadersConfig(), CSubSource::x_MeetsCommonChromosomeLinkageGroupPlasmidNameRules(), CMakeBadSpecificHostTable::x_ParseErrorMessage(), CFeatureTableReader_Imp::x_ParseTrnaExtString(), CSearch_func::x_ProductContainsTerm(), CFeatGlyph::x_RedundantLabelCheck(), CVcfGlyph::x_RedundantLabelCheck(), CCulturedTool::x_RemoveIfFoundOrgModNote(), CCulturedTool::x_RemoveIfFoundSubSourceNote(), CValidError_imp::x_ReportInvalidFuzz(), CValidError_bioseq::x_ReportLineageConflictWithMol(), CCdregionValidator::x_ReportTranslationProblems(), CProtValidator::x_ReportUninformativeNames(), CDeflineGenerator::x_SetTitleFromGPipe(), CDeflineGenerator::x_SetTitleFromNC(), CDeflineGenerator::x_SetTitleFromProtein(), CDeflineGenerator::x_SetTitleFromProteinIdx(), CStrainSerotypeInfluenza::x_SplittingQualifiersAtCommas(), CStrainSerotypeInfluenza::x_SplittingStructCollections(), CStrainSerotypeInfluenza::x_TrimmingOrganismNames(), CUnculturedTool::x_TryRankFix(), CRNAValidator::x_ValidateAnticodon(), CCdregionValidator::x_ValidateBadMRNAOverlap(), CValidError_bioseq::x_ValidateCompletness(), CCdregionValidator::x_ValidateExceptText(), CSingleFeatValidator::x_ValidateGeneXRef(), CValidError_bioseq::x_ValidateMolInfoForBioSource(), CGeneValidator::x_ValidateMultiIntervalGene(), CProtValidator::x_ValidateProteinName(), CRNAValidator::x_ValidateRnaProduct(), CSingleFeatValidator::x_ValidateRptUnitVal(), CValidError_bioseq::x_ValidateTitle(), CRNAValidator::x_ValidateTrnaCodons(), xFixEMBLKeywords(), and CAlnScannerNexus::xGetKeyVal().

◆ FindNoCase() [4/5]

const string * NStr::FindNoCase ( const list< string > &  lst,
const CTempString  val 
)
inlinestatic

Definition at line 5541 of file ncbistr.hpp.

References NStr::eNocase, NStr::Find(), and val.

◆ FindNoCase() [5/5]

const string * NStr::FindNoCase ( const vector< string > &  vec,
const CTempString  val 
)
inlinestatic

Definition at line 5553 of file ncbistr.hpp.

References NStr::eNocase, NStr::Find(), and val.

◆ FindWord() [1/2]

SIZE_TYPE NStr::FindWord ( const CTempString  str,
const CTempString  word,
ECase  use_case = eCase,
EDirection  direction = eForwardSearch 
)
static

Find given word in the string.

Parameters
strString to search.
wordWord to search for in "str". The "word" can have any symbols, not letters only. Function treat it as a pattern, even it have any non-word characters.
use_caseWhether to do a case sensitive compare (default is eCase), or a case-insensitive compare (eNocase) while searching for the word.
directionDefine a search direction of the occurrence of "word" in "str".
Returns
  • Start of the found word in the string.
  • NPOS if there is no occurrence of the word in the string.

Definition at line 3060 of file ncbistr.cpp.

References isalnum().

Referenced by NStr::FindWord(), and CMiscFeatValidator::Validate().

◆ FindWord() [2/2]

static SIZE_TYPE NStr::FindWord ( const CTempString  str,
const CTempString  word,
EOccurrence  which,
ECase  use_case = eCase 
)
inlinestatic

Find given word in the string.

This function honors word boundaries:

  • starting or ending of the string,
  • any non-word character, all except [a-zA-Z0-9_].
Parameters
strString to search.
wordWord to search for in "str". The "word" can have any symbols, not letters only. Function treat it as a pattern, even it have any non-word characters.
whichWhen set to eFirst, this means to find the first occurrence of "word" in "str". When set to eLast, this means to find the last occurrence of "word" in "str".
use_caseWhether to do a case sensitive compare (default is eCase), or a case-insensitive compare (eNocase) while searching for the word.
Returns
  • The start of the first or last (depending on "which" parameter) occurrence of "word" in "str", or
  • NPOS if there is no occurrence of the word.
See also
Find
Deprecated:
Use FindWord() variant with EDirection parameter:
FindWord(str, word, [use_case], [direction])
static SIZE_TYPE FindWord(const CTempString str, const CTempString word, ECase use_case=eCase, EDirection direction=eForwardSearch)
Find given word in the string.
Definition: ncbistr.cpp:3060

Definition at line 2230 of file ncbistr.hpp.

References NStr::eFirst, NStr::eForwardSearch, NStr::eReverseSearch, NStr::FindWord(), and str().

◆ FormatVarargs()

string NStr::FormatVarargs ( const char *  format,
va_list  args 
)
static

Handle an arbitrary printf-style format string.

This method exists only to support third-party code that insists on representing messages in this format; please stick to type-checked means of formatting such as the above ToString methods and I/O streams whenever possible.

Definition at line 2846 of file ncbistr.cpp.

Referenced by ErrorPrintf().

◆ g_CTempString_plus()

string g_CTempString_plus ( const char *  str1,
size_t  len1,
const char *  str2,
size_t  len2 
)
inline

Definition at line 228 of file tempstr.hpp.

References tmp.

Referenced by operator+().

◆ g_GetNcbiString()

const char* g_GetNcbiString ( ENcbiStrings  what)

◆ Get() [1/2]

static const string& CNcbiEmptyString::Get ( void  )
inlinestatic

◆ Get() [2/2]

static const wstring& CNcbiEmptyWString::Get ( void  )
inlinestatic

Get string.

Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 86 of file ncbistr.hpp.

◆ GetCase()

template<typename T >
NStr::ECase PNocase_Conditional_Generic< T >::GetCase ( ) const
inline

◆ GetDecoder()

template<class TContainer >
IStringDecoder* CStringPairs< TContainer >::GetDecoder ( void  )
inline

Get decoder or NULL. Does not affect decoder ownership.

Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 4676 of file ncbistr.hpp.

Referenced by SDiagMessage::x_ParseExtraArgs().

◆ GetEncodedString()

const string& CEncodedString::GetEncodedString ( void  ) const
inline

Get encoded string.

Definition at line 4838 of file ncbistr.hpp.

References CEncodedString::IsEncoded(), CEncodedString::m_Encoded, and CEncodedString::m_Original.

Referenced by CRequestContext::GetEncodedSessionID().

◆ GetEncoder()

template<class TContainer >
IStringEncoder* CStringPairs< TContainer >::GetEncoder ( void  )
inline

Get encoder or NULL. Does not affect encoder ownership.

Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 4687 of file ncbistr.hpp.

◆ GetErrCode()

template<class TBase >
TErrCode CParseTemplException< TBase >::GetErrCode ( void  ) const
inline

◆ GetErrCodeString() [1/2]

template<class TBase >
virtual const char* CParseTemplException< TBase >::GetErrCodeString ( void  ) const
inlineoverridevirtual

Translate from the error code value to its string representation.

Reimplemented in CObjReaderParseException, CSeqsetParseException, CGeneralParseException, CStringException, CRegistryException, CUrlParserException, and CCgiCookieException.

Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 4405 of file ncbistr.hpp.

◆ GetErrCodeString() [2/2]

const char * CStringException::GetErrCodeString ( void  ) const
overridevirtual

Translate from the error code value to its string representation.

Reimplemented from CParseTemplException< CCoreException >.

Definition at line 7256 of file ncbistr.cpp.

Referenced by SFileTrackAPI::GetPath().

◆ GetField() [1/2]

string NStr::GetField ( const CTempString  str,
size_t  field_no,
char  delimiter,
EMergeDelims  merge = eNoMergeDelims 
)
static

Search for a field.

Parameters
strC or C++ string to search in.
field_noZero-based field number.
delimiterA single-character delimiter.
mergeWhether to merge or not adjacent delimiters. Default: not to merge.
Returns
Found field; or empty string if the required field is not found.
Note
Field 0 spans up to the delimiter or the end-of-string.

Definition at line 6510 of file ncbistr.cpp.

◆ GetField() [2/2]

string NStr::GetField ( const CTempString  str,
size_t  field_no,
const CTempString  delimiters,
EMergeDelims  merge = eNoMergeDelims 
)
static

Search for a field.

Parameters
strC or C++ string to search in.
field_noZero-based field number.
delimitersA set of single-character delimiters.
mergeWhether to merge or not adjacent delimiters. Default: not to merge.
Returns
Found field; or empty string if the required field is not found.
Note
Field 0 spans up to the first-found delimiter or the end-of-string.

Definition at line 6497 of file ncbistr.cpp.

◆ GetField_Unsafe() [1/2]

CTempString NStr::GetField_Unsafe ( const CTempString  str,
size_t  field_no,
char  delimiter,
EMergeDelims  merge = eNoMergeDelims 
)
static

Search for a field.

Avoid memory allocation at the expense of some usage safety.

Parameters
strC or C++ string to search in.
field_noZero-based field number.
delimiterA single-character delimiter.
mergeWhether to merge or not adjacent delimiters. Default: not to merge.
Returns
Found field; or empty string if the required field is not found.
Note
Field 0 spans up to the delimiter or the end-of-string.
Warning
The return value stores a pointer to the input string 'str' so the return object validity time matches lifetime of the input 'str'.

Definition at line 6536 of file ncbistr.cpp.

◆ GetField_Unsafe() [2/2]

CTempString NStr::GetField_Unsafe ( const CTempString  str,
size_t  field_no,
const CTempString  delimiters,
EMergeDelims  merge = eNoMergeDelims 
)
static

Search for a field.

Avoid memory allocation at the expense of some usage safety.

Parameters
strC or C++ string to search in.
field_noZero-based field number.
delimitersA set of single-character delimiters.
mergeWhether to merge or not adjacent delimiters. Default: not to merge.
Returns
Found field; or empty string if the required field is not found.
Note
Field 0 spans up to the first-found delimiter or the end-of-string.
Warning
The return value stores a pointer to the input string 'str' so the return object validity time matches lifetime of the input 'str'.

Definition at line 6523 of file ncbistr.cpp.

◆ GetOriginalString()

const string& CEncodedString::GetOriginalString ( void  ) const
inline

Get the original unencoded string.

Definition at line 4836 of file ncbistr.hpp.

References CEncodedString::m_Original.

Referenced by CRequestContext::Clone(), CRequestContext::GetSessionID(), and CRequestContext::SetSessionID().

◆ GetPairs() [1/2]

template<class TContainer >
TStrPairs& CStringPairs< TContainer >::GetPairs ( void  )
inline

Get non-const data.

Definition at line 4799 of file ncbistr.hpp.

◆ GetPairs() [2/2]

template<class TContainer >
const TStrPairs& CStringPairs< TContainer >::GetPairs ( void  ) const
inline

Read data.

Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 4797 of file ncbistr.hpp.

Referenced by SDiagMessage::x_ParseExtraArgs().

◆ GetPos() [1/2]

SIZE_TYPE CStrTokenizeBase::GetPos ( void  ) const
inline

Definition at line 147 of file ncbistr_util.hpp.

References CStrTokenizeBase::m_Pos.

◆ GetPos() [2/2]

template<class TBase >
string::size_type CParseTemplException< TBase >::GetPos ( void  ) const
inlinenoexcept

◆ GetSize()

SIZE_TYPE CTempStringList::GetSize ( void  ) const

Definition at line 7387 of file ncbistr.cpp.

◆ GetSymbolCount()

SIZE_TYPE CUtf8::GetSymbolCount ( const CTempString src)
static

Get the number of symbols (code points) in UTF8 string.

Parameters
srcSource UTF8 string
Returns
Number of symbols (code points)
Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 6678 of file ncbistr.cpp.

Referenced by CWString::GetSymbolNum(), and CUtf8::x_AsBasicString().

◆ GetType()

template<class TBase >
virtual const char* CParseTemplException< TBase >::GetType ( void  ) const
inlineoverridevirtual

Get exception class type.

Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 4450 of file ncbistr.hpp.

Referenced by SFileTrackAPI::GetPath().

◆ GetValidBytesCount()

SIZE_TYPE CUtf8::GetValidBytesCount ( const CTempString src)
inlinestatic

Get the number of valid UTF-8 bytes (code units) in buffer.

Parameters
srcCharacter buffer
Returns
Number of valid bytes (no exception thrown)
Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 5657 of file ncbistr.hpp.

References CTempString::begin(), and CUtf8::x_GetValidSymbolCount().

Referenced by impl::GetValidUTF8Len(), and ReadIntoUtf8().

◆ GetValidSymbolCount()

SIZE_TYPE CUtf8::GetValidSymbolCount ( const CTempString src)
inlinestatic

Get the number of valid UTF-8 symbols (code points) in buffer.

Parameters
srcCharacter buffer
Returns
Number of valid symbols (no exception thrown)
Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 5652 of file ncbistr.hpp.

References CUtf8::x_GetValidSymbolCount().

◆ GuessEncoding()

EEncoding CUtf8::GuessEncoding ( const CTempString src)
static

Guess the encoding of the C/C++ string.

It can distinguish between UTF-8, Latin1, and Win1252 only

Parameters
srcCharacter buffer
Returns
Encoding as guessed; eEncoding_Unknown if cannot guess

Definition at line 6691 of file ncbistr.cpp.

Referenced by CSubSource::FixLatLonFormat(), CHTMLHelper::HTMLDecode(), ReadIntoUtf8(), and utf8_to_string().

◆ HasZeroAtEnd()

bool CTempStringEx::HasZeroAtEnd ( void  ) const
inline

◆ HexChar()

int NStr::HexChar ( char  ch)
inlinestatic

Convert character to integer.

Parameters
chCharacter to be converted.
Returns
Integer (0..15) corresponding to the "ch" as a hex digit. Return -1 on error.
Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 5196 of file ncbistr.hpp.

References int.

Referenced by CExtraDecoder::Decode(), CNcbiEncrypt::IsEncrypted(), and s_SVURLDecode().

◆ HtmlDecode()

string NStr::HtmlDecode ( const CTempString  str,
EEncoding  encoding = eEncoding_Unknown,
THtmlDecode result_flags = NULL 
)
static

Decode HTML entities and character references.

Parameters
strString to be decoded, which contains characters or numeric HTML entities
encodingEncoding of the input string
Returns
UTF8 encoded string

Definition at line 4527 of file ncbistr.cpp.

Referenced by CDeflineGenerator::GenerateDefline(), s_CleanCDDFeature(), and s_ConvertMetaData().

◆ HtmlEncode()

string NStr::HtmlEncode ( const CTempString  str,
THtmlEncode  flags = fHtmlEnc_EncodeAll 
)
static

◆ HtmlEntity()

string NStr::HtmlEntity ( TUnicodeSymbol  uch)
static

Returns HTML entity name for this symbol if one exists (without leading ampersand and trailing semicolon); or empty string if suitable HTML entity was not found.

Definition at line 4516 of file ncbistr.cpp.

Referenced by Identifier().

◆ impl_ToCString() [1/2]

const char* impl_ToCString ( const char *  s)
inline

◆ impl_ToCString() [2/2]

const char* impl_ToCString ( const string s)
inline

Definition at line 190 of file ncbistr.hpp.

◆ Int8ToString() [1/2]

string NStr::Int8ToString ( Int8  value,
TNumToStringFlags  flags = 0,
int  base = 10 
)
inlinestatic

Convert Int8 to string.

Parameters
valueInteger value (Int8) to be converted.
flagsHow to convert value to string.
baseRadix base. Default is 10. Allowed values are 2..36. Bases 8 and 16 do not add leading '0' and '0x' accordingly. If necessary you should add it yourself.
Returns
  • If conversion succeeds, set errno to zero and return the converted string value.
  • Otherwise, set errno to non-zero and return empty string.
Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 5159 of file ncbistr.hpp.

References flags, and rapidjson::value.

Referenced by BOOST_AUTO_TEST_CASE(), CMemoryFileSegment::CMemoryFileSegment(), CTimeSpan::CTimeSpan(), CTime::DiffTimeSpan(), CReportNode::Export(), CMemoryFile::Extend(), CArchive::ExtractFileToHeap(), IMacroBioDataIter::FindInTable(), CDiscrepancySet::Format(), CIntDataType::GetDefaultString(), CBigIntDataType::GetDefaultString(), CObjectIStream::GetPosition(), CObjectOStream::GetPosition(), CDiagContext::GetProperty(), CBDB_FieldInt8::GetString(), CVariant::GetString(), NMacroUtil::GetStringValue(), CAlnStatGlyph::GetTooltip(), CArgAllow_Int8s::GetUsage(), CArgAllow_Integers::GetUsage(), CAddAssemblyGapsNTreeItemData::GetVariables(), CAddGapsNTreeItemData::GetVariables(), GetVideoId(), CDebugDumpContext::Log(), CMemoryFileMap::Map(), MTByQueries_DBSize_Warning(), CTableFormatPanel::OnListCtrlSelected(), value_slice::CValueConvert< CP, Int8 >::operator string(), CQueryTreePrintFunc::operator()(), PConvertToString< Int8 >::operator()(), CSrvStrStream::operator<<(), CJavaLogHandler::Post(), CDiagContext_Extra::Print(), CAlignFormatUtil::PrintDbReport(), CArgAllow_Int8s::PrintUsageXml(), CSGQueryNodeValue::PromoteTo(), CQueryNodeValue::PromoteTo(), CNCActiveHandler::ProxyRead(), CNCActiveHandler::ProxyReadLast(), CChunkFile::RawRead(), CSeqIdChunkFile::RawRead(), ReadTabDelimitedTable(), RecursiveXML(), CAsnElementPrimitive::RenderValue(), CPrimeNumbersJob::Run(), s_AddToLog(), s_BuildArchiveAll(), s_ConvertValue(), s_FillModuleListPSAPI(), s_TimeDump(), s_ValToString(), CBlastTabularInfo::SetFields(), CFileIO::SetFilePos(), CMacroRep::SetFunctionParameterAsInt(), CPdfObject::StartTris(), CMacroFunction_ApplyCDS::TheFunction(), CMacroFunction_SetPubDateField::TheFunction(), CMacroFunction_SubtreeSum::TheFunction(), CSeqDBVol::TiToOid(), CBDB_FieldInt8::ToString(), CObjectOStreamJson::WriteInt8(), CTL_CursorCmdExpl::x_AssignParams(), CNCMessageHandler::x_DoCmd_GetMeta(), CMacroFunction_EditStringQual::x_EditFields(), CMacroFunction_MakeLocation::x_HandleNegativeCoordinates(), NStr::x_NumericToString(), CMacroParser::x_ParseThreadCount(), CLayoutTrack::x_RenderTitleBar(), CXmlValueItem::x_RenderXml(), CNCActiveHandler::x_SendSyncGetCmd(), and IMacroVar::SValue::x_WriteAsString().

◆ Int8ToString() [2/2]

void NStr::Int8ToString ( string out_str,
Int8  value,
TNumToStringFlags  flags = 0,
int  base = 10 
)
static

Convert Int8 to string.

Parameters
out_strOutput string variable
valueInteger value (Int8) to be converted.
flagsHow to convert value to string.
baseRadix base. Default is 10. Allowed values are 2..36. Bases 8 and 16 do not add leading '0' and '0x' accordingly. If necessary you should add it yourself.
Note
  • If conversion succeeds, set errno to zero and return the converted string value in 'out_str'.
  • Otherwise, set errno to non-zero, value of 'out_str' is undefined.

Definition at line 2035 of file ncbistr.cpp.

◆ IntToString() [1/4]

string NStr::IntToString ( int  value,
TNumToStringFlags  flags = 0,
int  base = 10 
)
inlinestatic

Convert int to string.

Parameters
valueInteger value to be converted.
flagsHow to convert value to string.
baseRadix base. Default is 10. Allowed values are 2..36. Bases 8 and 16 do not add leading '0' and '0x' accordingly. If necessary you should add it yourself.
Returns
  • If conversion succeeds, set errno to zero and return the converted string value.
  • Otherwise, set errno to non-zero and return empty string.
Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 5084 of file ncbistr.hpp.

References flags, and rapidjson::value.

Referenced by CTabDelimitedValidator::_ReportXML(), CAlnMixSequences::Add(), CReportParams::Add(), CMaskInfoRegistry::Add(), CGffAlignRecord::AddDeletion(), CGffAlignRecord::AddForwardShift(), CTL_BCPInCmd::AddHint(), CPagerView::AddImageString(), CPagerView::AddInactiveImageString(), CGffAlignRecord::AddInsertion(), CExonFromCds::AddIntron(), CBlastUsageReport::AddParam(), CGffAlignRecord::AddReverseShift(), CSAM_CIGAR_Formatter::AddRow(), CTableAnnotDataSource::AddSeqLoc(), CLinkUtils::AddSequenceLinks(), CGBenchVersionInfo::AddVersionString(), CSeq_annot::AddZoomLevel(), AgpRead(), AppendBioseqLabel(), CTaxNRCriteria::Apply(), CApplyFBOL::apply(), CBarcodeTool::ApplyDbxrefs(), CGffRecord::AssignSeqId(), CBlastDBSeqId::AsString(), SSatSatKeyRange::AsString(), CObjectIStreamAsn::BadStringChar(), CDUpdater::blast(), Blast_GetSeqLocInfoVector(), BlastXML_FormatReport(), BOOST_AUTO_TEST_CASE(), CDebugDumpViewer::Bpt(), CAlnMixSegments::Build(), BuildBigGoodNucProtSet(), CAlignFormatUtil::BuildUserUrl(), CPhyTreeCalc::CalcBioTree(), CalculateFormattingParams(), CAlnMapPrinter::CAlnMapPrinter(), CArchive::CArchive(), CBioseq::CBioseq(), CBlastNode::CBlastNode(), CBlastSeqVectorFromCSeq_data::CBlastSeqVectorFromCSeq_data(), CCddBookRefToBrString(), CCddBookRefToBvString(), CClusterDBSource::CClusterDBSource(), CddIdString(), CdsTrnaOverlapStr(), CGeneralToLocalId::CGeneralToLocalId(), CGoTermSortStruct::CGoTermSortStruct(), CheckAutoDefOptions(), CComment_rule::CheckFieldValue(), CComment_rule::CheckGeneralField(), CResultSet::CheckIdx(), CheckMTByQueries_QuerySize(), CCigar::CigarString(), CLocalToGeneralId::CLocalToGeneralId(), CNcbiApplogApp::Cmd_Health(), CMsvcPrjGeneralContext::CMsvcPrjGeneralContext(), CNetScheduleKeyGenerator::CNetScheduleKeyGenerator(), CTraversalMerger::CNodeLabeler::CNodeLabeler(), CNcbiTestApplication::CollectTestUnit(), CRemoveSequencesDlg::CombineLabels(), CRemoveSequencesDlg::CombineLabelsAll(), CMultiAlignerTest::CompareDomainHits(), CCgiStatistics::Compose_Result(), CSeq_id::ComposeOSLT(), DTDParser::ConsumeElementContent(), CPepXML::ConvertModifications(), pub_report::ConvertPMCtoPMID(), CPepXML::ConvertScanID(), CProgressMessage::CProgressMessage(), CRawSeqDBSource::CRawSeqDBSource(), CDB_Object::Create(), CAutodefParamsPanel::CreateControls(), CwxSeqMarkerSetDlg::CreateControls(), CAlnStatGlyph::CreateDisplayOptions(), DTDParser::CreateEmbeddedName(), CTableAnnotDataSource::CreateFeature(), CSetupFactory::CreateLookupTable(), CreateMsvcProjectMakefileName(), CDense_diag::CreateRowSeq_interval(), CStd_seg::CreateRowSeq_loc(), CSetupFactory::CreateScoreBlock(), CSparseAln::CreateSegmentIterator(), CPluginValueConstraint::CreateSeqLenRange(), CSequenceEditingEventHandler::CreateSeqSubmit(), CTableAnnotDataSource::CreateSnpFeature(), CTableAnnotDataSource::CreateSnps(), CPagerBox::CreateSubNodes(), CSmallPagerBox::CreateSubNodes(), CPagerViewButtons::CreateSubNodes(), CPagerViewJavaLess::CreateSubNodes(), XSDParser::CreateTmpEmbeddedName(), CSeq_align::CreateTranslatedDensegFromNADenseg(), CRemoveSeqId::CRemoveSeqId(), CAsnIndex::CurrentLocationAsString(), CValidErrItem::CValidErrItem(), CNewCleanup_imp::DbtagBC(), CBlastQueryInfo::DebugDump(), CBlastEffectiveLengthsOptions::DebugDump(), DebugDumpRangeCRef(), DebugDumpRangeObj(), DebugDumpRangePtr(), CHTML_area::DefineCircle(), CHTML_area::DefinePolygon(), CHTML_area::DefineRect(), CCgi2RCgiApp::DefineRefreshTags(), DeleteBlastDb(), DeltaBlockModelToString(), CCigar::DetailedCigarString(), CSampleJob::Do(), CEJournalSearch::DoOneESummary(), COpenViewManager::DoTransition(), CIDs::Encode(), CEnumParser< TEnum, TParam >::EnumToString(), CTaxon1NodeConvertVisitor< TITaxon4Each, TITaxon1Node, TITreeIterator, TBioTreeContainer >::Execute(), CPhyTreeFormatter::ExpandCollapseSubtree(), CMapperMTArgs::ExtractAlgorithmOptions(), CBlastDBExtractor::ExtractHash(), CBlastDBExtractor::ExtractMembershipInteger(), CBlastDBExtractor::ExtractOid(), CBlastDBExtractor::ExtractPig(), CBlastDBExtractor::ExtractSeqLen(), CDistMethods::FastMeTree(), CGffRecord::FeatIdString(), CGtfReadRecord::FeatureKey(), CGffAlignRecord::FinalizeMatches(), CValidError_imp::FindCollidingSerialNumbers(), CSeq_id_General_Tree::FindMatch(), CNcbiApplicationAPI::FindProgramExecutablePath(), CFindPattern::FindRepeatsOf(), CRemoteAppLauncher::FinishJob(), CFlatIntQVal::Format(), CFlatNomenclatureQVal::Format(), CFlatPubSetQVal::Format(), CFlatXrefQVal::Format(), CHTMLFormatterEx::FormatLocation(), FormatRange(), CBlastMasterNode::FormatResults(), CRegistryFile::FromConfigFile(), CTMgr_IdentityId::FromMyNCBIId(), g_GetManipulatorError(), CValidError_bioseq::GapByGapInst(), CNetScheduleKeyGenerator::Generate(), CBlastAligner::GenerateAlignments(), CNetCacheKey::GenerateBlobKey(), CWsdlTypeStrings::GenerateClassCode(), CSeqIdGenerator::GenerateID(), CTextAlnReader::GenerateID(), GenerateWinItemPrefix(), CPdfDictionary::GenShaderID(), get_accession_from_id(), GetAccessionAndDatabaseSource(), CIntronGlyph::GetAccessoryLabel(), CSparseAln::GetAlnSeqString(), NSnpGui::GetBinTooltip(), GetBiosampleData(), GetBioseqWithFootprintForNthRow(), CTSE_Split_Info::GetChunk(), CWriteUtil::GetCodeBreak(), GetColumnSectionName(), CAddSecondary::GetCommand(), CExonFromCds::GetCommand(), CObjectCoords::GetCoordinates(), CDate_std::GetDate(), CField_type::GetDBLinkFieldFromUserObject(), CPrimeNumbersJob::GetDescr(), CSetTypeStrings::GetDestructionCode(), CListTypeStrings::GetDestructionCode(), CMapTypeStrings::GetDestructionCode(), GetDirectLabel(), CPluginManager_DllResolver::GetDllName(), CPluginManager_DllResolver::GetDllNameMask(), CFileSubpanel::GetFilename(), CPdfFontHandler::GetFontName(), CFormatGuess::GetFormatName(), CObjectStackFrame::GetFrameName(), CGeneticCodeColumn::GetFromFeat(), CApplyAuthorsTreeItemData::GetFunction(), CFastaOstream::GetGapModText(), CLabelRna::GetGenBankId(), CGeneInfoFileReader::GetGeneInfoForGi(), CGeneInfoFileReader::GetGeneInfoForId(), CBLASTParams::GetGeneticCodeLabel(), CAlignFormatUtil::GetGnlID(), CObjectIStreamAsn::GetHexChar(), CTranslationGlyph::GetHTMLActiveAreas(), CAlnVecRow::GetHTMLActiveAreas(), CFeatureIdGenerator::GetIdFor(), CReorderSequencesDlg::GetIdLabel(), GetInternalStopErrorMessage(), GetInvalidSeqAlignTypeStr(), CSeq_featHandler::GetLabel(), CPhyloTreeLabel::GetLabel(), GetLabel(), CHitMatrixDataSource::GetLabel(), CRemoveSequencesDlg::GetLabel(), CFeatGlyph::GetLabel(), CDbtag::GetLabel(), CBioseq::GetLabel(), CSeq_id::GetLabel(), CInt_fuzz::GetLabel(), CCit_gen::GetLabelV1(), CBlastQuerySourceOM::GetLength(), CBlastQuerySourceBioseqSet::GetLength(), CSource_qual_choice::GetLimitedSourceQualFromBioSource(), CGuiObjectInfoSeq_align::GetLinks(), CGuiObjectInfoVariant::GetLinks(), CBlastDbDataLoader::GetLoaderNameFromArgs(), CSeqUtils::GetMappingInfo(), CSeq_annot_SplitInfo::GetName(), CEntrezgene::GetNomenclature(), GetNumberOfContexts(), CBlastDbMetadata::GetNumberOfSequences(), CPager::GetPageInfo(), CDataLoaderFactory::GetPriority(), CNcbiArguments::GetProgramName(), CBuildAlnVecJob::GetProgress(), CBuildSparseAlnJob::GetProgress(), GetProjectID(), CDiagContext::GetProperty(), CTaxon2_data::GetProperty(), CDoiLookup::GetPubFromCrossRef(), CQuerySplitter::GetQueryFactoryForChunk(), CEFetch_Request::GetQueryString(), CEFetch_Sequence_Request::GetQueryString(), CELink_Request::GetQueryString(), CESearch_Request::GetQueryString(), CESummary_Request::GetQueryString(), CSearch_func::GetRegex(), CAlnMap::GetResidueIndexMap(), CAlnVecRow::GetRowStatistics(), CAlignFormatUtil::GetScoreString(), AlignmentUtility::GetSeqIdStringForRow(), GetSeqTableFromSeqEntry(), GetSequenceNucleotideBothStrands(), GetSequenceProtein(), GetSequenceSingleNucleotideStrand(), CSixFramesTransTrackFactory::GetSettings(), CGeneModelFactory::GetSettings(), CObjectStack::GetStackPath(), CObjectStack::GetStackTraceASN(), GetStartCodonErrorMessage(), CAutoOutputFileReset::GetStream(), CBDB_FieldInt4::GetString(), CBDB_FieldInt2::GetString(), CBDB_FieldUint2::GetString(), CVariant::GetString(), CCommentItem::GetStringForRefTrack(), CWriteUtil::GetStringsForGoMarkup(), GetStructureViaHTTPAndAddToCache(), CMacroAdvStringConstraintPanel< T >::GetTextConstraint(), GetTitle(), CLDBlockGlyph::GetTooltip(), CTranslationGlyph::GetTooltip(), CGuiObjectInfoSeq_align::GetToolTip(), CGuiObjectInfoClone::GetToolTip(), CGuiObjectInfoPrimer::GetToolTip(), CGuiObjectInfoVariant::GetToolTip(), CGuiObjectInfoVariation::GetToolTip(), CGen_code_table_imp::GetTransTable(), CWriteUtil::GetTrnaAntiCodon(), CValidError_bioseq::GetTSANStretchErrors(), CResolvedTypeSet::GetType(), CDB_Object::GetTypeName(), CBuildType::GetTypeStr(), IMacroBioDataIter::GetUnMatchedTableEntries(), CAlignFormatUtil::GetURLDefault(), CAlignFormatUtil::GetURLFromRegistry(), CArgAllowMaximumFileNameLength::GetUsage(), CEditingActionBiosourceDbxref::GetValue(), CEditingActionDescUserObject::GetValue(), CEditingActionDescLocalId::GetValue(), CEditingActionFeatDbxref::GetValue(), CEditingActionFeatTranslTable::GetValue(), CAlnSpanVertModel::GetValueAt(), CApplyPubQualTreeItemData::GetVariables(), CApplyAuthorsTreeItemData::GetVariables(), CDiscrepancyAutofixTreeItemData::GetVariables(), CMultAlign::GetVariationAlignList(), CMacroAdvStringConstraintPanel< T >::GetVars(), CBlastDbMetadata::GetVersion(), CBaseClusterer::IdToString(), COMSSABase::Init(), CBlastVdbCmdApp::Init(), CCompartApp::Init(), CAppNWA::Init(), CDbapiDriverSampleApp::Init(), CThreadedApp::Init(), CSeqDBFileMemMap::Init(), CMultiApplication::Init(), CBlastDbCheckApplication::Init(), SegMaskerApplication::Init(), CSplitCacheApp::Init(), CAlnMixSequences::InitExtraRowsStartIts(), NJ_TreeAlgorithm::initializeNodes(), SLC_TreeAlgorithm::initializeNodes(), SNetCacheAPIImpl::InitiateWriteCmd(), CAlnMixSequences::InitRowsStartIts(), CSingleQualPanel::InsertField(), NStr::IntToString(), CTrackUtils::isInErrorStatus(), CGenBankLoadOptionPanel::IsInputValid(), CStringConstraint::IsInRange(), IsLocalID(), CComment_rule::IsValid(), AbstractLexer::LexerError(), StructureSet::LoadAlignmentsAndStructures(), CTraceDataProxy::LoadData(), CSGTraceGraphDS::LoadData(), StructureSet::LoadMaster(), CDataType::LocationString(), CDataValue::LocationString(), CDebugDumpContext::Log(), CAsn2AsnThread::Main(), CBlastnNode::Main(), CBlastpNode::Main(), CBlastxNode::Main(), CRPSBlastNode::Main(), CRPSTBlastnNode::Main(), CTblastnNode::Main(), RowSourceTable::makeCDRowKey(), CSearch< LEGACY, NHITS >::MakeModString(), CMSHits::MakeModString(), MakePluginManagerParamTree(), CUniqueLabelGenerator::MakeUniqueLabel(), CDiagMatcher::MatchErrCode(), CBDB_Env::MempTrickle(), CTime::MonthNumToName(), CNcbiTestParamTestCaseGenerator< ParamType, ParamIter >::next(), CDistMethods::NjTree(), CDemoApplication::NumAdderHook(), CTracingHandler::OnCommand_Range(), CCgiRequestProcessor::OnException(), CAgpRenumber::OnGapOrComponent(), CAgpToSeqEntry::OnGapOrComponent(), CQueryParsePanel::OnIdle(), CLDBlockGlyph::OnLeftDblClick(), CwxMainFrame::OnPostEventsClick(), CPreviewSetupDlg::OnScroll(), CDataMiningPanel::OnSearchFinished(), CTracingHandler::OnUpdateCommand_Range(), CGenBankUIDataSource::Open(), ctlib::Connection::Open(), value_slice::CValueConvert< CP, Int1 >::operator string(), value_slice::CValueConvert< CP, Int2 >::operator string(), value_slice::CValueConvert< CP, Int4 >::operator string(), CPhyTreeFormatter::CExpander::operator()(), CRepeatToFeat::operator()(), CSegMasker::operator()(), PConvertToString< TBlastDbId >::operator()(), PConvertToString< int >::operator()(), CSrvStrStream::operator<<(), operator<<(), operator>>(), CProjBulderApp::ParseArguments(), CObjectIStreamAsnBinary::PeekLongTag(), CJavaLogHandler::Post(), CValidError_imp::PostErr(), CLocalVDBBlast::PreprocessDBs(), CMacroRep::Print(), CDiagContext_Extra::Print(), CBlastFormatUtil::PrintDbInformation(), CAlignFormatUtil::PrintDbReport(), CBlastFormat::PrintReport(), PrintSAM(), PrintSeqIntUseBestID(), CArgDescMandatory::ProcessArgument(), CSplitCacheApp::ProcessBlob(), CSplitCacheApp::ProcessEntry(), CAltValidator::ProcessQueue(), SequenceDisplay::ProximitySort(), CNCActiveHandler::ProxyGetMeta(), CNCActiveHandler::ProxyGetSize(), CNCActiveHandler::ProxyProlong(), CNCActiveHandler::ProxyRead(), CNCActiveHandler::ProxyRemove(), CNCActiveHandler::ProxySetValid(), CNCActiveHandler::ProxyWrite(), CPsiBlastValidate::Pssm(), CFeatureTableReader_Imp::PutProgress(), CNcbiApplogApp::ReadCgiResponse(), CGeneFileUtils::ReadGeneInfo(), ReadString(), CWriteDB_Impl::RegisterMaskAlgorithm(), RegistrySetInteger(), CStd_seg::RemapToLoc(), CCgiFontTestApp::Render(), CDrawingPanel::Render(), CGridCgiApplication::RenderRefresh(), CReorderStructuredComment::reorder_comment_by_rule(), CDB_RPCEx::ReportExtra(), CDB_SQLEx::ReportExtra(), CValidError_bioseq::ReportModifInconsistentError(), CEditSequence::ReportPos(), CAlignmentAssistant::ReportPos(), CEditSequence::ReportRange(), CAlignmentAssistant::ReportRange(), CPrimeNumbersJob::Run(), CDemoSeqQaApp::Run(), CBlastdbConvertApp::Run(), CIgBlastnApp::Run(), CDbapiTest::Run(), CSdbapiTest::Run(), CCgiApplication::Run(), CAgpValidateApplication::Run(), CDbapiTestSpeedApp::RunSample(), s_AddSeqIntString(), s_AddSeqPackedPointString(), s_AddSeqPointString(), s_AddSitesToAnnot(), s_BuiltInSM(), s_CheckAgainstNullData(), s_CheckDataStatus(), s_CheckMinWordSize(), s_CheckTraceMateAlign(), s_ChrName(), s_ComputeBtopAndIdentity(), s_ConvertValue(), s_CountBlastDbDataLoaders(), s_CreateTreeLeaf(), s_DeleteMakeprofileDb(), python::s_FillDescription(), s_FormatAA(), s_FormatErrors(), s_GetAlignmentTooltip(), s_GetBareId(), s_GetCigarString(), s_GetDeflineIdString(), s_GetFeatureIdLabel(), NSearchFeatPanel::s_GetFeatureLabel(), s_GetGOText(), s_GetLabel(), s_GetLinkoutUrl(), s_GetModelEvidance(), s_GetRandomTipID(), s_GetRoundNumber(), s_GetSeq_intervalLabel(), NSearchFeatPanel::s_GetSeq_TotalRangeLabel(), s_GetSeq_TotalRangeLabel(), s_GetTaxid(), s_GetTempSortedBamFile(), s_GetTempSortedBamFileNew(), s_GetUserObjectType(), s_Init(), s_Initialize(), s_InitProxyConfig(), s_InitTestData(), s_IsGoodDescr(), s_IsMaskAlgoIdValid(), s_KeyVersionSubkeyToBlobID(), s_LOCK_Handler(), s_MakeKeyCondition(), s_MakeNewMasterSeq(), s_MakeOverflowFileName(), s_MakeTwoLeafTree(), s_MapBarTemplate(), s_MapLinkoutGenParam(), s_Render_SeqFeat(), s_ReplaceLocalId(), s_ScanRecursive(), s_SetAirrAlignmentInfo(), s_SetContainerData(), s_SetLeafIds(), s_StackWalker(), s_ToString(), CGvfWriteRecord::s_UniqueId(), s_ValidateSeqLiteral(), s_ValToString(), s_VerbosityText(), SBlastSequence::SBlastSequence(), CBrowserUtils::SendToBrowser(), SeqDB_FileIntegrityAssert(), SeqDB_SimplifySeqid(), CStructuredCommentsReader::SeqIdMatchesCommentId(), C5ColImportData::Serialize(), CBedImportData::Serialize(), CGtfImportData::Serialize(), SSnpFilter::SerializeTo(), CSeq_id::Set(), CTextseq_id::Set(), CTimeout::Set(), CIgBlastTabularInfo::SetAirrFormatData(), COffDiagonalRangeArg::SetArgumentDescriptions(), CLargestIntronSizeArgs::SetArgumentDescriptions(), CGeneticCodeArgs::SetArgumentDescriptions(), CPssmEngineArgs::SetArgumentDescriptions(), CPsiBlastArgs::SetArgumentDescriptions(), CMappingArgs::SetArgumentDescriptions(), CIgBlastArgs::SetArgumentDescriptions(), CFormattingArgs::SetArgumentDescriptions(), CMTArgs::SetArgumentDescriptions(), CRPSBlastMTArgs::SetArgumentDescriptions(), CMapperGenericSearchArgs::SetArgumentDescriptions(), CMapperLargestIntronSizeArgs::SetArgumentDescriptions(), CNCBINode::SetAttribute(), CLengthSubpanel::SetClusters(), CBlastNode::SetDataLoaderPrefix(), CTime::SetDay(), CTrackUtils::SetError(), CSingleQualPanel::SetField(), CFileIO::SetFilePos(), CSeqLocInfo::SetFrame(), CwxAlnStatOptionsDlg::SetGraphHeight(), CPluginValue::SetInteger(), CPdfObject::SetLineDashStyle(), CGffFeatureRecord::SetLocation(), CBedFeatureRecord::SetLocation(), CTar::SetMask(), CArchive::SetMask(), CWriteDB_Impl::SetMaskData(), CTime::SetMonth(), CBedFeatureRecord::SetNoThick(), CConversionResultPanel::SetObjects(), CwxPhyloSettingsDlg::SetParams(), CwxTreeLabelEdit::SetParams(), CAlnPropertiesDlg::SetParams(), CDataMiningPanel::SetRange(), CHTML_font::SetRelativeSize(), CGffAlignmentRecord::SetScore(), CGffBaseRecord::SetScore(), CBedFeatureRecord::SetScore(), CPhyloSelectionSetMgr::SetSelectionSetProperty(), python::CStmtStr::SetStr(), IMacroBioDataIter::STableToApply::SetTableToApply(), CBedFeatureRecord::SetThick(), CCompartOptions::SetupArgDescriptions(), CProSplignScoring::SetupArgDescriptions(), CProSplignOutputOptions::SetupArgDescriptions(), CSQLITE_Connection::SetupNewConnection(), IRWRegistry::SetValue(), CTime::SetYear(), sFormatInt(), sGenerateFields(), CGlBitmapFont::SizeFromInt(), CObjectIStreamAsn::SkipByteBlock(), UpdateViewer::SortByPSSM(), CGffBaseRecord::StrPhase(), CSeqTextPanel::STWH_ReportMouseOverPos(), CDUpdater::submitBlast(), CSuspect_rule::SummarizeEndDistance(), CSuspect_rule::SummarizeSearchFunc(), CPhyloNodeData::Sync(), CMacroFunction_SwapRelFeatQual::TheFunction(), CBLASTParams::ToArgVec(), CCompareSeq_locs::SIntervalComparisonResultGroup::ToString(), BlockModel::toString(), CGlRect< TVPUnit >::ToString(), CSeqDB_AliasMask::ToString(), CDUpdateStats::toString(), CCompVal::ToString(), ToString(), CBDB_FieldInt4::ToString(), CBDB_FieldInt2::ToString(), CBDB_FieldUint2::ToString(), CGeneInfo::ToString(), CGencollIdMapper::SIdSpec::ToString(), CMemberId::ToString(), CSequencingTechnologyPanel::TransferDataToWindow(), CStructuredCommentPanel::TransferDataToWindow(), CPdfObject::Tri(), IPhyloTreeRender::TTHH_GetTooltip(), CAlnMultiPane::TTHH_GetTooltip(), IPhyloTreeRender::TTHH_NeedTooltip(), CAlnMultiPane::TTHH_NeedTooltip(), CObjectIStreamAsnBinary::UnexpectedByte(), CObjectIStreamAsnBinary::UnexpectedMember(), CIntronValidator::Validate(), CGapFeatValidator::Validate(), CCreateSeqHistForTpa::ValidateAlignments(), CValidError_bioseq::ValidateBioseqContext(), CValidError_bioseq::ValidateDelta(), CValidError_bioseq::ValidateDeltaLoc(), CValidError_graph::ValidateGraphsOnBioseq(), CSubSource::ValidateLatLonCountry(), CValidError_bioseq::ValidateModifDescriptors(), CValidError_bioseq::ValidateMolInfoContext(), CValidError_bioseq::ValidateMoltypeDescriptors(), CValidError_bioseq::ValidateMultipleGeneOverlap(), CValidError_bioseq::ValidateNsAndGaps(), CValidError_bioseqset::ValidateNucProtSet(), CValidError_imp::ValidateOrgName(), CValidError_bioseq::ValidateRawConst(), CValidError_bioseq::ValidateRepr(), CValidError_bioseq::ValidateSegRef(), CValidError_bioseq::ValidateSeqFeatContext(), CValidError_bioseq::ValidateSeqGap(), CValidError_bioseq::ValidateSeqId(), CValidError_bioseq::ValidateSeqLen(), CValidError_bioseq::ValidateWGSMaster(), WindowMaskerTaxidToDb(), ILineError::WriteAsXML(), CObjectOStreamJson::WriteEnum(), CGeneFileUtils::WriteGeneInfo(), CId1FetchApp::WriteHistoryTable(), CObjectOStreamJson::WriteInt4(), CObjectOStreamAsn::WriteMemberId(), CTableImportListCtrl::WriteWidths(), CBioseq_Base_Info::x_AddExistingUserObjectTypes(), CFeatureSearchJob::x_AddFeatToResults(), CPhyTreeFormatter::x_AddFeaturesForInnerNodes(), CFeatureItem::x_AddFTableCdregionQuals(), CFeatureItem::x_AddFTableDbxref(), CGuiObjectInfoSeq_feat::x_AddGroupLocationRows(), CPageList::x_AddImageString(), CPageList::x_AddInactiveImageString(), CGuiObjectInfoSeq_feat::x_AddLocationRows(), CGuiObjectInfoSeq_feat::x_AddPositionRows(), CDBSourceItem::x_AddSPBlock(), CCpgSearchJob::x_AddToResults(), CSequenceSearchJob::x_AddToResults(), COrfSearchJob::x_AddToResults(), CAlnTableDS::x_AdjustColumns(), CMultiAligner::x_AlignProfileProfileUsingHit(), CTar::x_Append(), CTraversalMerger::CNodeLabeler::x_AppendDirectNodeLabel(), CGvfWriteRecord::x_AssignAttributeEndRange(), CGvfWriteRecord::x_AssignAttributeStartRange(), CMultiAligner::x_AttachClusterTrees(), CVecscreen::x_BuildHtmlBar(), CAlnGraphic::x_BuildHtmlTable(), CDisplaySeqalign::x_CalcUrlLinksParams(), CMacroFunction_StringConstraints::x_CheckConstraintContainer(), CMacroFunction_StringConstraints::x_CheckConstraintWithinClass(), CSQLITE_Connection::x_CheckFlagsValidity(), CTraversalNode::x_CloneWithoutCallers(), CPhyTreeFormatter::x_CollapseSubtrees(), CEditSeqId::x_CollectChangedIds(), CSequenceDataTester::x_CompareSequenceData(), CQualScoreWriter::x_ComposeHeaderEnding(), CPhyTreeCalc::x_ComputeTree(), CFeaturePanel::x_ConfigureTracks(), CODBC_Connection::x_Connect(), CMacroFunction_SwapQual::x_CopyFields(), CSGFeatureJob::x_CreateFeatSmear(), CSGFeatureJob::x_CreateFeature1(), CProjectServiceTestJob::x_CreateItems(), CwxMainFrame::x_CreateNextItem(), CPageHandler::x_CreatePrintersMarks(), CBLASTSeqToolJob::x_CreateProjectItems(), CMergeAlignmentsJob::x_CreateProjectItems(), CTaxTreeToolJob::x_CreateProjectItems(), CTreeBuilderJob::x_CreateProjectItems(), CDumpASNIndex::x_CreateRootDir(), CShowBlastDefline::x_DisplayDefline(), CShowBlastDefline::x_DisplayDeflineTableBody(), CAlnGraphic::x_DisplayMaster(), CDisplaySeqalign::x_DisplayRowData(), CDisplaySeqalign::x_DisplaySequenceIDForQueryAnchored(), CDisplaySeqalign::x_DisplaySequenceLine(), CNCMessageHandler::x_DoCmd_GetMeta(), CServer::x_DoRun(), CComponentSearchJob::x_DoSearch(), CDownloadJob::x_DownloadAndExtract(), CBinsGlyph::x_Draw(), CLDBlockGlyph::x_Draw(), CGeneGroup::x_Draw(), CLayoutGroup::x_Draw(), CAlnStatGlyph::x_DrawDensityTable(), CAlignGlyph::x_DrawInternalUnalignedRegions(), CPageHandler::x_DrawPanelLink(), CAlignGlyph::x_DrawTailGlyphs(), CPssmEngine::x_ErrorCodeToString(), CSGSegmentMapJob::x_Execute(), CPhyTreeFormatter::x_Expand(), CAlnMix::x_ExtendDSWithWidths(), CMTArgs::x_ExtractAlgorithmOptions(), CTar::x_ExtractEntry(), CShowBlastDefline::x_FillDeflineAndId(), CAlnMap::x_FindClosestSeqPos(), CMaskInfoRegistry::x_FindNextValidIdWithinRange(), CDrawingPanel::x_FindWidthDrawingArea(), CDisplaySeqalign::x_FormatAlignSortInfo(), CDisplaySeqalign::x_FormatAlnBlastInfo(), CShowBlastDefline::x_FormatClusterMemData(), CShowBlastDefline::x_FormatClusterMemDataTxt(), CDBSourceItem::x_FormatDBSourceID(), CDisplaySeqalign::x_FormatDefLinesHeader(), CShowBlastDefline::x_FormatDeflineTableLine(), CShowBlastDefline::x_FormatDeflineTableLineCSV(), CShowBlastDefline::x_FormatDeflineTableLineText(), CDisplaySeqalign::x_FormatDynamicFeaturesInfo(), CAlnGraphic::x_FormatGraphOverview(), CDisplaySeqalign::x_FormatIdentityInfo(), CFtableFormatter::x_FormatLocation(), CAlnGraphic::x_FormatScale(), CDisplaySeqalign::x_FormatSingleAlign(), CCommentItem::x_GatherDescInfo(), CGsdbComment::x_GatherInfo(), CReferenceItem::x_GatherRemark(), CGeneFileWriter::x_Gene2Accn_ProcessFile(), CPhyloTreeLabel::x_GenerateAutoLabel(), CBlastFormat::x_GenerateJSONMasterFile(), CBlastFormat::x_GenerateXML2MasterFile(), CAlnVecRow::x_GetAlignmentTooltip(), CAlnVecRow::x_GetAlignmentTooltip_General(), CAlnVecRow::x_GetAlignmentTooltip_Helper(), CGuiObjectInfoSeq_align::x_GetAlignmentTooltip_Insert(), CAlnVecRow::x_GetAlignmentTooltip_Unaligned(), CPdf::x_GetAlphaGraphicsState(), CPhyTreeFormatter::x_GetBioNode(), CFileDBEngine::x_GetCmdFileName(), CFastaOstreamEx::x_GetCodeBreak(), CCreateGeneModelTask::x_GetCommand(), CAlnVecRow::x_GetDescrTooltip(), CMacroParser::x_GetErrorLocation(), CAsn2FastaApp::x_GetFastaOstream(), CFeatGlyph::x_GetFeatureId(), CHG_Gene::x_GetGeneidLabel(), IImageGrabber::x_GetImageName(), x_GetLabel_Content(), CAlignSeqTableModel::x_GetLength(), CGuiObjectInfoSeq_feat::x_GetLocLengthRow(), CAsnElementItem::x_GetMemberId(), CTracingHandler::x_GetMethodTrace(), CUpdateSeqPanel::x_GetNameAndLength(), CShortReadFastaInputSource::x_GetNextSeqId(), CGuiObjectInfoSeq_feat::x_GetProductLengthRow(), CCachedTaxon3::x_GetReplyForOrgRef(), CAlnMultiRenderer::x_GetRowTooltip(), CDisplaySeqalign::x_GetSegs(), CAlnMap::x_GetSeqLeftSeg(), CAlnMap::x_GetSeqRightSeg(), IOperateOnTwoQuals::x_GetSourceString(), CPrimaryItem::x_GetStrForPrimary(), CAlignGlyph::x_GetTailLabelWidth(), CAlignedFeatureGraph::x_GetTooltip(), CCommonComponentScorer::x_GetUserCompList(), CTime::x_Init(), CShowBlastDefline::x_InitDefline(), CDisplaySeqalign::x_InitDefLinesHeader(), CShowBlastDefline::x_InitDeflineTable(), CShowBlastDefline::x_InitFormattingInfo(), CAsn2FastaApp::x_InitOStreams(), CPhyTreeFormatter::x_InitTreeFeatures(), CConservationScoringMethod::x_IsConserved(), CBlastAppArgs::x_IssueWarningsForIgnoredOptions(), CwxSeqTextViewOptions::x_LoadSettings(), CAgpconvertApplication::x_LoadTemplate(), CHTMLPage::x_LoadTemplateLib(), x_Lock(), x_Log(), NSnpGui::x_MakeClinVarLink(), CVDBGraphSeqIterator::x_MakeGraph(), NSnpGui::x_MakeVarVuLink(), CDisplaySeqalign::x_MapDefLine(), CProjectServiceTestJob::x_ModifyItems(), NStr::x_NumericToString(), CSixFramesTransTrack::x_OnIconClicked(), CSegmentMapTrack::x_OnJobCompleted(), CPhyTreeNodeGroupper::x_OnStepDown(), CPhyTreeNodeAnalyzer::x_OnStepDown(), CPhyTreeNodeGroupper::x_OnStepLeft(), CPhyTreeNodeAnalyzer::x_OnStepLeft(), CPhyTreeNodeGroupper::x_OnStepRight(), CPhyTreeNodeAnalyzer::x_OnStepRight(), CSeqDBVol::x_OpenAllColumns(), SAliasFileData::x_Parse(), CGFFReader::x_ParseAndPlace(), CDisplaySeqalign::x_PrepareRowData(), CBlastDBCmdApp::x_PrintBlastDatabaseInformation(), CDisplaySeqalign::x_PrintDefLine(), CDisplaySeqalign::x_PrintFeatures(), CBlastTabularInfo::x_PrintSeqalignCoverage(), CBlastTabularInfo::x_PrintSubjectCoverage(), CBlastTabularInfo::x_PrintUniqSubjectCoverage(), CXcompareAnnotsApplication::x_ProcessComparison(), CBlastOptionsBuilder::x_ProcessOneOption(), CXcompareAnnotsApplication::x_ProcessSeqAlignSetFromFile(), CObjectStack::x_PushStackPath(), variation::CHgvsParser::x_raw_seq(), x_Reg(), CGlPreviewSetupWidget::x_Render(), CXmlValueItem::x_RenderXml(), CSingleFeatValidator::x_ReportAcceptorSpliceSiteReadErrors(), CHugeFileValidator::x_ReportCollidingSerialNumbers(), CSingleFeatValidator::x_ReportDonorSpliceSiteReadErrors(), CRNAValidator::x_ReportRNATranslationProblems(), CCdregionValidator::x_ReportTranslationMismatches(), CCdregionValidator::x_ReportTranslationProblems(), CMultiAligner::x_Run(), CFeaturePanel::x_SaveSettings(), CAlignmentTrack::x_SaveSettings(), CSixFramesTransTrack::x_SaveSettings(), CFeatureSearchJob::x_SearchFeatures(), CNCActiveHandler::x_SendCopyProlongCmd(), CNCActiveHandler::x_SendCopyPutCmd(), CTSE_Info::x_SetBioseq_setId(), CFeatureGenerator::SImplementation::x_SetExceptText(), CReportEntry::x_SetHgvs(), CDeflineGenerator::x_SetSuffix(), CDeflineGenerator::x_SetTitleFromPatent(), CSubmissionWizard::x_SetTool(), CMakeProfileDBApp::x_SetupArgDescriptions(), CDB_Exception::x_StartOfWhat(), CSequenceDataTester::x_TestSingleNucleotide_Remote(), CSequenceDataTester::x_TestSingleProtein_Remote(), CSequenceDataTester::x_TestSingleSequence_Remote(), CMakeProfileDBApp::x_UpdateCobalt(), CSixFramesTransTrack::x_UpdateData(), CBLAST_DB_Dialog::x_UpdateFilterStatusText(), CSeq_annot_Info::x_UpdateName(), SSNP_Info::x_UpdateSeq_featData(), CAlignSpanView::x_UpdateStatusMessage(), CFeatTableView::x_UpdateStatusMessage(), CSixFramesTransTrack::x_UpdateTitle(), CValidError_bioseq::x_ValidateCDSmRNAmatch(), CCdregionValidator::x_ValidateGeneticCode(), CValidError_graph::x_ValidateGraphOnDeltaBioseq(), CSingleFeatValidator::x_ValidateImpFeatLoc(), CMultiAligner::x_ValidateInputMSAs(), CValidError_graph::x_ValidateMaxValues(), CValidError_graph::x_ValidateMinValues(), CSingleFeatValidator::x_ValidateSeqFeatDataType(), CValidError_align::x_ValidateStrand(), CRNAValidator::x_ValidateTrnaCodons(), CAgpValidateApplication::x_ValidateUsingFiles(), CTar::x_WriteEntryInfo(), CVcfWriter::x_WriteFeatureId(), CVcfWriter::x_WriteFeatureInfo(), CBlastFormat::x_WriteXML2(), CGff3Writer::xAssignAlignmentDensegTarget(), CGff3FlybaseWriter::xAssignAlignmentDensegTarget(), CGff3Writer::xAssignAlignmentSplicedTarget(), CGff3FlybaseWriter::xAssignAlignmentSplicedTarget(), CGff2Writer::xAssignFeatureAttributeTranslationTable(), CGff3Writer::xAssignFeatureEndpoints(), CGff3FlybaseWriter::xAssignTaxid(), CGtfReader::xCreateFeatureId(), CSrcWriter::xGatherDb(), CSrcWriter::xGatherOrgModFeat(), CSrcWriter::xGatherPcrPrimers(), CSrcWriter::xGatherSubtypeFeat(), CSrcWriter::xGatherTaxonId(), CBedTrackRecord::xImportKeyValuePairs(), CBedImportData::xInitializeRgb(), seqsubmit_split::CSeqSubSplitter::xInitOutputStream(), CGff3Reader::xNextGenericId(), CUCSCRegionReader::xParseFeature(), CUCSCRegionReader::xParseFeatureUCSCFormat(), CFeatTableEdit::xPutErrorMissingLocustag(), CFeatTableEdit::xPutErrorMissingProteinId(), CFeatTableEdit::xPutErrorMissingTranscriptId(), CBedReader::xSetFeatureColorFromItemRgb(), CBedReader::xSetFeatureTitle(), seqsubmit_split::CSeqSubSplitter::xTryProcessSeqEntries(), CGff3Writer::xWriteFeatureRecords(), CWiggleWriter::xWriteSingleGraphFixedStep(), and CTime::YearWeekNumber().

◆ IntToString() [2/4]

void NStr::IntToString ( string out_str,
int  value,
TNumToStringFlags  flags = 0,
int  base = 10 
)
static

Convert int to string.

Parameters
out_strOutput string variable.
valueInteger value to be converted.
flagsHow to convert value to string.
baseRadix base. Default is 10. Allowed values are 2..36. Bases 8 and 16 do not add leading '0' and '0x' accordingly. If necessary you should add it yourself.
Note
  • If conversion succeeds, set errno to zero and return the converted string value in 'out_str'.
  • Otherwise, set errno to non-zero, value of 'out_str' is undefined.

Definition at line 1872 of file ncbistr.cpp.

◆ IntToString() [3/4]

void NStr::IntToString ( string out_str,
unsigned int  value,
TNumToStringFlags  flags = 0,
int  base = 10 
)
inlinestatic

Definition at line 5102 of file ncbistr.hpp.

References flags, NStr::IntToString(), and rapidjson::value.

◆ IntToString() [4/4]

string NStr::IntToString ( unsigned int  value,
TNumToStringFlags  flags = 0,
int  base = 10 
)
inlinestatic

Definition at line 5093 of file ncbistr.hpp.

References flags, NStr::IntToString(), and rapidjson::value.

◆ IsBlank()

bool NStr::IsBlank ( const CTempString  str,
SIZE_TYPE  pos = 0 
)
static

Check if a string is blank (has no text).

Parameters
strString to check.
posstarting position (default 0)

Definition at line 106 of file ncbistr.cpp.

References isspace(), len, and str().

Referenced by CMiscSeqTableColumn::AddApplyObjectValue(), AddAssemblyUserFieldsFromSeqTable(), CExportTableDlg::AddBioSource(), AddBioSourceToAttributes(), CSourceRequirements::AddColumnsToSeqTable(), CPseudoPanel::AddCommand(), CExceptionPanel::AddCommand(), AddContact(), AddException(), AddExon(), CFeatureTableReader_Imp::AddFeatQual(), AddFeatureSeqTableRowToSeqEntry(), CPCRSetList::AddFwdName(), CPCRSetList::AddFwdSeq(), CReadUtil::AddGeneOntologyTerm(), AddMiscRNAFeatures(), AddModToDefline(), AddModVectorToDefline(), AddNamedrRna(), CSeqSearch::AddNucleotidePattern(), CBulkOtherAddPanel::AddOneCommand(), CBulkRNAAddPanel::AddOneCommand(), CBulkCDSAddPanel::AddOneCommand(), CAlignCDSAddPanel::AddOneCommand(), CAlignRNAAddPanel::AddOneCommand(), CAlignOtherAddPanel::AddOneCommand(), AddOrgToDefline(), CCleanup::AddPartialToProteinTitle(), CSpecificHostRequest::AddReply(), CSourceRequirements::AddRequirement(), CPCRSetList::AddRevName(), CPCRSetList::AddRevSeq(), CImportFeatTable::AddSeqAnnotToSeqEntry(), COrgMod::AddStructureToVoucher(), CAutoDefExonListClause::AddSubclause(), CSrcTableSubSourceColumn::AddToBioSource(), CSrcTableOrgModColumn::AddToBioSource(), CSrcTableDbxrefColumn::AddToBioSource(), CSrcTaxnameAfterBinomialColumn::AddToBioSource(), CSrcStructuredVoucherPartColumn::AddToBioSource(), CPartialStartColumn::AddToFeature(), CPartialStopColumn::AddToFeature(), CCommentColumn::AddToFeature(), CExceptionColumn::AddToFeature(), CGbQualColumn::AddToFeature(), CSatelliteColumn::AddToFeature(), CSatelliteTypeNameColumn::AddToFeature(), CProductColumn::AddToFeature(), CProtRefColumn::AddToFeature(), CValidError::AddValidErrItem(), AddValueToString(), AdjustBacterialGeneForCodingRegionWithShortIntron(), CAdjustForConsensusSpliceSite::AdjustCDS(), CSrcTableDbxrefColumn::AllowMultipleValues(), AlreadyHasFeature(), CHgvsParser::Apply(), ApplyChimeraValuesTableToSeqEntry(), ApplyDBLinkValuesTableToSeqEntry(), ApplyFeatureSeqTableToSeqEntry(), SrcEditDialog::ApplySrcTableToSeqEntry(), CSpecificHostMapForFix::ApplyToOrg(), AreAllColumnValuesTheSame(), AreAnyColumnValuesMissing(), AreAnyColumnValuesPresent(), CAutoDefFeatureClause_Base::AssignGeneProductNames(), CBioSourceAutoComplete::AutoFill(), CBioSource::AutoFix(), COrgMod::AutoFix(), CSubSource::AutoFix(), CProt_ref::AutoFixEC(), CFieldChoicePanel::AutoMatch(), CFieldChoicePanel::AutoMatchFeat(), CFieldChoicePanel::AutoMatchRNA(), CValidator::BadCharsInAuthorName(), CBioSource::BiosampleDiffsOkForUpdate(), BioSourceFromImpFeat(), BOOST_AUTO_TEST_CASE(), CGb_qual::BuildExperiment(), CachedTaxonomyLookupCommand(), CHugeMacroContext::CacheTaxnames(), CEditObjectSeq_feat::CanClose(), CAutoDefMobileElementClause::CAutoDefMobileElementClause(), CAutoDefParsedIntergenicSpacerClause::CAutoDefParsedIntergenicSpacerClause(), CAutoDefParsedRegionClause::CAutoDefParsedRegionClause(), CAutoDefParsedtRNAClause::CAutoDefParsedtRNAClause(), CFlatInferenceQVal::CFlatInferenceQVal(), CGoTermSortStruct::CGoTermSortStruct(), CGridRPCBaseClient< CAsnBinCompressed >::CGridRPCBaseClient(), CheckAutoDefOptions(), CSubSource::CheckCellLine(), CheckDate(), CValidError_bioseq::CheckForMultipleStructuredComments(), CComment_rule::CheckGeneralFieldName(), CheckInfluenzaDefline(), CSeq_id::CheckLocalID(), COrgMod::CheckMultipleVouchers(), CTaxValidationAndCleanup::CheckOneOrg(), CSeqTechDlg::CheckSequencingTechnology(), CSourceRequirements::CheckSourceQuals(), CLatLonCountryId::Classify(), CPubCleaner::CleanImprint(), CCleanup::CleanupAuthor(), CGb_qual::CleanupRptUnitRange(), CleanVisStringContainer(), CleanVisStringContainerJunk(), CSrcStructuredVoucherPartColumn::ClearInBioSource(), CMiscSeqTableColumn::ClearValCmd(), ConfigureParamsForPrefixCombo(), CConvertCDSToRNA::Convert(), CConvertBioSrcToRptRegion::Convert(), CConvertImpToProt::Convert(), CConvertProtToImp::Convert(), CConvertImpToCDS::Convert(), CConvertImpToGene::Convert(), CConvertToBond::Convert(), CConvertToSite::Convert(), CAuth_list::ConvertMlToStandard(), CAuthor::ConvertMlToStandard(), ConvertProteinToImp(), CCleanup::ConvertPubFeatsToPubDescs(), ConvertRegulatoryFeature(), ConvertTableColumns(), ConvertToMiscFeature(), CopyTableColumns(), SrcEditDialog::CountColumnRowConflicts(), CountColumnRowConflicts(), CountColumnValueConflicts(), CMiscSeqTableColumn::CountConflicts(), CountDefLineConflicts(), CountInternalStopCodons(), CStructuredCommentTableColumnBaseFactory::Create(), IActionPanel::CreateAction1(), IActionPanel::CreateAction2_imp(), CBiosampleChkApp::CreateBiosampleUpdateWebService(), CSeqIdFixDlg::CreateControls(), CGBQualPanel::CreateControls(), CCitationsPanel::CreateControls(), CFeatureGenePanel::CreateControls(), CGenericPropsPanel::CreateControls(), CImportFeaturePanel::CreateControls(), CQualChoicePanel::CreateEditingAction(), CreateEntryBioseq(), CSpecificHostRequest::CSpecificHostRequest(), CStrainRequest::CStrainRequest(), CSubSource::DateFromCollectionDate(), CNewCleanup_imp::DbtagBC(), CAutoDefFeatureClause_Base::DisplayAlleleName(), CLatLonCountryMap::DoCountryBoxesOverlap(), DoDiffsContainConflicts(), DoesApplyObjectMatchFieldConstraint(), DoesObjectMatchFieldConstraint(), IEditingAction::DoParseFrom(), CTaxValidationAndCleanup::DoTaxonomyUpdate(), CAliasTest::DoTest(), CName_std::ExtractSuffixFromLastName(), FeatureClauseFactory(), SrcEditDialog::FindBadColumns(), SrcEditDialog::FindBadRows(), FindBadRows(), CAutoDefFeatureClause::FindBestParentClause(), CLatLonCountryMap::FindClosestToLatLon(), CAutoDefFeatureClause_Base::FindGeneProductName(), FindInstCodeAndSpecID(), FindMatchInOrgRef(), FindModifierOnBioseq(), FindOrgNames(), CValidError_align::FindSegmentGaps(), CSubSource::FixAltitude(), COrgMod::FixCapitalization(), CSubSource::FixCapitalization(), FixCapitalizationInString(), CSubSource::FixDateFormat(), FixInitials(), CGb_qual::FixMobileElementValue(), CTaxValidationAndCleanup::FixOneSpecificHost(), CCleanup::FixRNAEditingCodingRegion(), FixStateAbbreviationsInAffil(), COrgMod::FixStructuredVoucher(), SrcEditDialog::FixTableAfterImport(), FixTableAfterImport(), FixupMouseStrain(), CFlatNumberQVal::Format(), CFlatXrefQVal::Format(), CFlatModelEvQVal::Format(), CFlatProductNamesQVal::Format(), CGenbankFormatter::FormatAccession(), CValidErrorFormat::FormatCategoryForSubmitterReport(), CValidErrorFormat::FormatCompleteSubmitterReport(), CValidErrorFormat::FormatForSubmitterReport(), fta_if_wgs_acc(), g_ApplyMods(), g_InstantiateMissingProteins(), CNewCleanup_imp::GBQualSeqFeatBC(), GenBankIndex(), GenerateInitials(), GetAccessionFromObjects(), CValidError_feat::GetAccessionsFromInferenceString(), CIdResolver::GetAccessionVersion(), IEditingAction::GetActionCommand(), GetAlternateEmailAddress(), GetAuthorString(), IActionPanel::GetAutopopulateValue(), GetBiosampleStatus(), CValidErrorFormat::GetBioseqSetLabel(), CSubmitBlockDlg::GetBlockProblems(), CSourceFieldNamePanel::GetChoices(), CSubmitBlockDlg::GetCitGen(), CSubmitBlockDlg::GetCitGenProblems(), CAutoDefFeatureClause::GetClauseType(), CAddDefLineDlg::GetCommand(), CBulkOtherAddPanel::GetCommand(), CBulkRNAAddPanel::GetCommand(), CBulkCDSAddPanel::GetCommand(), CCdsFromGeneMrnaExon::GetCommand(), CConvertCdsToMiscFeat::GetCommand(), CConvertFeatDlg::GetCommand(), CCorrectGenesDialog::GetCommand(), CExtendPartialFeatDlg::GetCommand(), CFuseFeaturesDlg::GetCommand(), CGeneFeatFromOtherFeatDlg::GetCommand(), CIGSPanel::GetCommand(), CmRNAFromGeneCdsExon::GetCommand(), CPrefixDeflinedlg::GetCommand(), CRemoveTextInsideStrDlg::GetCommand(), CRNANamePanel::GetCommand(), CSeqTechDlg::GetCommand(), CtRNAFromGene::GetCommand(), CVirusNonCodingFeaturesPanel::GetCommand(), CAlignRNAAddPanel::GetCommand(), CAlignOtherAddPanel::GetCommand(), CReplaceSingleFieldPanel::GetCommand(), CStructuredCommentCommandConverter::GetCommandFromValuesTable(), CValidErrorFormat::GetDescriptorContent(), GetDocSumLabel(), CBulkOtherAddPanel::GetErrorMessage(), CBulkRNAAddPanel::GetErrorMessage(), CBulkCDSAddPanel::GetErrorMessage(), CIGSPanel::GetErrorMessage(), CSeqTechDlg::GetErrorMessage(), CSubmitBlockDlg::GetErrors(), GetExistingTextInstruction(), NMacroUtil::GetFeatSubtype(), CValidErrorFormat::GetFeatureIdLabel(), CValidErrorFormat::GetFeatureLabel(), CStructCommentFieldPanel::GetFieldName(), CFieldChoicePanel::GetFieldName(), CFeatureFieldNamePanel::GetFieldName(), CRNAFieldNamePanel::GetFieldName(), CDualRNAFieldNamePanel::GetFieldName(), CDualRNAFieldNamePanel::GetFieldName2(), GetFieldsByName(), GetFieldValueAsString(), CIGSFlankPanel::GetFlankLabel(), CSrcTableDbxrefColumn::GetFromBioSource(), CSrcTableAllPrimersColumn::GetFromBioSource(), CGbQualColumn::GetFromFeat(), CSatelliteTypeNameColumn::GetFromFeat(), GetGoTermErrors(), CIGSFlankPanel::GetIGSLabel(), CTableDataBioTreeContainer::GetIntValue(), CPubField::GetJournal(), CInfluenzaSet::GetKey(), CBulkLocationPanel::GetLocForBioseq(), NMacroUtil::GetLocusTagFromGene(), CAutoDef::GetOneDefLine(), CAutoDef::GetOneFeatureClauseList(), GetPrimerSetSeqValues(), CCDSTranslationPanel::GetProductId(), CCleanup::GetPubdescLabels(), GetPubdescLabels(), CDoiLookup::GetPubFromCrossRef(), CPubField::GetPubTitle(), GetPubTitleAndAuthors(), SrcEditDialog::GetQualChoices(), CTableDataBioTreeContainer::GetRealValue(), CApplyRNAITSDlg::GetRNAITSList_AlignCoordFromDlg(), CApplyRNAITSDlg::GetRNAITSList_SeqCoordFromDlg(), GetSeqIdProblems(), CAlnWriter::GetSeqString(), GetSeqTableFromSeqEntry(), CAutoDefModifierCombo::GetSourceDescriptionString(), CCommentItem::GetStringForTLS(), CCommentItem::GetStringForTSA(), CCommentItem::GetStringForWGS(), CSubmitBlockDlg::GetSubmitBlock(), GetTargetedLocusName(), GetTargetedLocusNameConsensus(), CMolInfoFieldType::GetTechFromLabel(), GetTextObjectDescription(), CDiscrepancyObject::GetTextObjectDescription(), CAuthorizedAccessPanel::GetUser_object(), CRefGeneTrackingPanel::GetUser_object(), CGeneralIDField::GetVal(), GetValidatorLocationLabel(), CPubField::GetVals(), CSrcTableDbxrefColumn::GetValsFromBioSource(), CSrcTableSubSourceColumn::GetValsFromBioSource(), CSrcTableColumnBase::GetValsFromBioSource(), CSrcStructuredVoucherPartColumn::GetValsFromBioSource(), CAltitudePanel::GetValue(), CInferencePanel::GetValue(), CLatLonPanel::GetValue(), CMultipleAssemblyProgramPanel::GetValue(), CSingleAssemblyProgramPanel::GetValue(), CVoucherPanel::GetValue(), CRptTypePanel::GetValue(), CRptUnitRangePanel::GetValue(), CTwoPartQualPanel::GetValue(), CAutoDefFeatureClause_Base::GroupSegmentedCDSs(), HasAuthor(), HasCultureCollectionForATCCStrain(), HasECnumberPattern(), CValidError_imp::HasName(), HasNoAffiliation(), HasStrainForATCCCultureCollection(), CValidError_imp::HasTitle(), HasUnpubWithoutTitle(), COrg_ref::HasValidVariety(), CNewCleanup_imp::ImpFeatBC(), CImportFeatTable::ImportFeaturesFromClipboard(), CImportFeatTable::ImportFeaturesFromFile(), CTaxValidationAndCleanup::IncrementalSpecificHostMapUpdate(), CAutoDefIntergenicSpacerClause::InitWithString(), InterpretSpecificHostResult(), CSubSource::IsAltitudeValid(), CAuthorNamesPanel::IsAuthorEmpty(), IsBlankStringList(), CSubSource::IsChromosomeNameValid(), CLatLonCountryMap::IsClosestToLatLon(), CLinePreBuffer::IsCommentLine(), CSubSource::IsCorrectLatLonFormat(), IsCrossKingdom(), CCleanup::IsEmpty(), CCommentDescField::IsEmpty(), CDefinitionLineField::IsEmpty(), CFileIDField::IsEmpty(), CLocalIDField::IsEmpty(), CAutoDefFeatureClause::IsExonWithNumber(), CAttribTableColumnIdPanel::IsInputValid(), COrgMod::IsINSDCValidTypeMaterial(), CAutoDefFeatureClause::IsInsertionSequence(), CGoTermSortStruct::IsLegalGoTermType(), CGb_qual::IsLegalMobileElementValue(), CSubSource::IsLinkageGroupNameValid(), IsMappablePair(), IsMatchingIdMissing(), CLatLonCountryMap::IsNearLatLon(), CTaxValidationAndCleanup::IsOneSpecificHostValid(), CSingleAuthorPanel::IsPlaceholder(), CSubSource::IsPlasmidNameValid(), CGenericPropsPanel::IsPseudo(), CAutoDefFeatureClause::IsSatellite(), CEditingActionGeneralIdTag::IsSetValue(), COrgMod::IsStructuredVoucherValid(), COrg_ref::IsSubspeciesValid(), IsSynonymForFalse(), CComment_rule::IsValid(), CPCRPrimerSeq::IsValid(), CRptUnitRangeColumn::IsValid(), CSatelliteTypeNameColumn::IsValid(), CSrcTableGenomeColumn::IsValid(), CSrcTableOriginColumn::IsValid(), CProt_ref::IsValidECNumberFormat(), IsValidEmail(), COrg_ref::IsVarietyValid(), CLatLonPanel::IsWellFormatted(), CSrcModCheckboxPanel::IsWellFormatted(), CAutoDefExonListClause::Label(), CAutoDefFeatureClause_Base::ListClauses(), CSpecificHostRequest::ListErrors(), CTaxValidationAndCleanup::ListTaxLookupErrors(), CTbl2AsnApp::LoadAdditionalFiles(), LoadFeat(), CTextAlignObjectLoader::LoadFromStream(), CTableImportDataSource::LoadTable(), CFieldChoicePanel::LooksLikeHeader(), CDoiLookup::LookupIsojta(), CUser_object::CRefGeneTrackingAccession::MakeAccessionField(), MakeOriginalIdField(), MakeRegulatoryFeatureTest(), CCleanup::MakeSmallGenomeSet(), COrgMod::MakeStructuredVoucher(), CAutoDefOptions::MakeUserObject(), CStructuredCommentField::MakeUserObject(), CExpectedError::Match(), CReferenceItem::Matches(), MergeStringVectors(), CGenericPropsPanel::ModifyPseudo(), CCleanup::MoveFeatToProtein(), CNewCleanup_imp::MoveStandardName(), fix_pub::MULooksLikeISSN(), CSingleSequencePanel::NeedsRow(), CCleanup::NormalizeGeneQuals(), CComment_rule::NormalizePrefix(), CSelectFeatures::OnAccept(), COkCancelPanel::OnAcceptBtnClick(), CSingleRefGeneTrackLocPanel::OnAccessionTxtTextUpdated(), CBulkRNAAddPanel::OnAdd16StoComment(), CAlignRNAAddPanel::OnAdd16StoComment(), CBulkRNAAddPanel::OnAdd18SToComment(), CAlignRNAAddPanel::OnAdd18SToComment(), SrcEditDialog::OnAddQual(), CBulkFeatureAddDlgStd::OnApplyClick(), CCorrectRNAStrandDlg::OnAutocorrectStrandBtnClick(), CRemarksAndSerialNumberPanel::OnButtonClick(), CSingleCDSExceptionPanel::OnChoice14Selected(), CAppendModToOrgDlg::OnChoiceChanged(), CCompareWithBiosample::OnClickOk(), CSingleRefGeneTrackLocPanel::OnCommentTxtTextUpdated(), CSrcModPanel::OnEditorChange(), CSubmitBlockDlg::OnExportBtnClick(), CGenericPanel::OnGenericReportFindClick(), CGenericPanel::OnGenericReportFindClick2(), CSingleRefGeneTrackLocPanel::OnGiTxtTextUpdated(), CApplyRNAITSDlg::OnGoClick(), CTblEditDlg::OnImportTableClick(), CJournalPanel::OnJournalLookupIsojtaClick(), CAECRFrame::OnKeyDown(), CEditMacroDlg::OnListItemSelected(), SrcEditDialog::OnLoadqualsClick(), SrcEditDialog::OnQualchoiceSelected(), CSubPrepFieldEditor::OnRegisterHyperlinkClicked(), CCDSTranslationPanel::OnRetranslateOnOkChanged(), CTextSubpanel::OnSelectButton(), CSelectTargetDlg::OnSelTargetAcceptClick(), CSingleRefGeneTrackLocPanel::OnStartTxtTextUpdated(), CSingleRefGeneTrackLocPanel::OnStopTxtTextUpdated(), CTwoPartQualPanel::OnTextctrl28TextUpdated(), CSingleDbxref_SubPanel::OnTextctrl32TextUpdated(), CMultipleAssemblyProgramPanel::OnVersionEntered(), CApplyMods::operator()(), LessThan::operator()(), SAuthorEmpty::operator()(), SRemovableOldname::operator()(), CNewCleanup_imp::OrgnameBC(), CFastaDeflineReader::ParseDefline(), CGb_qual::ParseInferenceString(), CAutoDefParsedtRNAClause::ParseString(), COrgMod::ParseStructuredVoucher(), PiiOk(), CAutoDefFeatureClause_Base::PluralizeDescription(), CAutoDefFeatureClause_Base::PluralizeInterval(), CGBQualPanel::PopulateGBQuals(), CExperimentListPanel::PopulateGBQuals(), CInferenceListPanel::PopulateGBQuals(), CValidError_imp::PostErr(), CNewCleanup_imp::PostProtFeatfBC(), CSourceRequirements::PreferentiallyAddRequirement(), CCountryExtreme::PreferTo(), CBiosampleFieldDiff::Print(), PrintBioseqXML(), CAutoDefFeatureClause_Base::PrintClause(), ProcessBiosampleStatusNode(), CTLSContigHandler::ProcessBioseq(), CBiosampleChkApp::ProcessFileList(), CPsgPerfApplication::ProcessLine(), CBiosampleChkApp::ProcessList(), CHgvsReader::ReadSeqAnnot(), CFeatureTableReader_Imp::ReadSequinFeatureTable(), CUpdateSeq_Input::ReadSingleAccession(), CGene_ref::RefersToSameGene(), CSubPrepIntroPanel::RefreshSubmitterInfoStatus(), CBioSource::RemoveCultureNotes(), CSubSource::RemoveCultureNotes(), RemoveDbxref(), RemoveFieldNameFromString(), CCleanup::RemovePseudoProduct(), CTaxValidationAndCleanup::ReportSpecificHostErrors(), RescueProtProductQual(), ResolveSuppliedBioSampleAccession(), CNewCleanup_imp::RnarefBC(), CNewCleanup_imp::RnarefGenBC(), CBiosampleChkApp::Run(), CMacroFunction_FixFormat::s_AddAltitudeToSubSourceNote(), s_AddPrimers(), s_AddToTerms(), s_AuthListEmpty(), s_AuthorNameBlank(), CMacroFunction_AuthorFix::s_BuildName(), s_CalculateMatchingColumns(), s_CheckForSegments(), s_CheckQuals_bind(), s_CheckQuals_conflict(), s_CheckQuals_mod_base(), s_CheckQuals_ncRNA(), s_CitMatches(), CCleanup::s_CleanupGenomeAssembly(), CCleanup::s_CleanupNameStdBC(), s_CollectNumberAndUnits(), s_CopyRow(), s_CopyToStringColumn(), SGeneCdsmRnaFeats::s_CreateDBXref(), CSingleAssemblyTrackingPanel::s_CreateTPAAssemblyField(), s_DbtagIsBad(), s_DoSup(), s_FailsGenusOrSpeciesTest(), s_FieldHasNonBlankValue(), ApplyCDSFrame::s_FindMatchingFrame(), CMacroFunction_ApplyCDSFrame::s_FindMatchingFrame(), s_FindWholeName(), s_FindWholeWord(), CMacroFunction_FixPubCaps::s_FixCapitalizationInCountryString(), CMacroFunction_FixPubCaps::s_FixCapitalizationInTitle(), CCleanup::s_FixEtAl(), IAuthorEditor::s_FixInitials(), CMacroFunction_FixFormat::s_FixLatLonFormat(), s_FixncRNA(), CMacroFunction_FixProteinFormat::s_FixProteinNameFormat(), s_FixStrainForPrefix(), s_FormatCitBook(), s_FormatCitBookArt(), s_FormatCitGen(), s_FormatErrors(), s_FormatJournal(), s_FormatPatent(), s_FormatThesis(), s_GetAuthorNames(), s_GetCdregionContentLabel(), s_GetCDSLoc(), s_GetEncodeValues(), s_GetInfluenzaLabel(), s_GetInstCodeFromBioSource(), s_GetKeywordForStructuredComment(), CSrcModPanel::s_GetModifierList(), s_GetMrnaProteinLink(), CMacroFunction_PubFields::s_GetObjectsFromAffil(), CMacroFunction_PubFields::s_GetObjectsFromDate(), CMacroFunction_PubFields::s_GetObjectsFromImprint(), s_GetProductIdOrLocusTag(), s_GetSpecificHostFromBioSource(), s_GetSpecimenVoucherText(), s_GetTaxIDList(), CFixTitleCap::s_GetTitle(), s_GetTitleSuggestion(), s_GetTranscriptIdFromMrna(), s_GetValFromChildren(), s_HasCompareOrCitation(), s_HasTag(), s_IsAllDigitsOrPeriods(), s_IsAllDigitsOrSpaces(), s_IsAllNumbers(), s_IsCompoundRptTypeValue(), s_IsReportableStructuredComment(), s_IsRNASpacer(), s_IsrRNA(), s_ListChanges(), s_MatchInfoMatches(), s_Name_stdsSame(), s_OutputFeature(), s_ParseParentQual(), s_ParseTRnaFromAnticodonString(), s_ProcessInstitutionCollectionCodeLine(), s_ProcessOrgRefMapLine(), CCleanup::s_RemoveEmptyFields(), s_ReplaceListFromQuals(), s_ReportableCollision(), s_ResolveFieldsOfChoice(), s_ResolveFieldsOfClass(), s_RetrieveMessage(), s_RnaPosition(), s_SetFieldsOfChoice(), s_SetFieldsOfClass(), s_SetPrimerNames(), s_SetPrimerSeqs(), CCleanup::s_SetProductOnFeat(), s_SetTrnaProduct(), s_SettRNAProduct(), s_Start_GetFields(), s_StringHasPMID(), s_TitleEndsInOrganism(), s_TitleMatch(), s_TransferPubData(), s_UnbalancedParentheses(), CSequenceUpdater::s_UpdateSeqInst(), CRelaxedLookupDlg::SendQuery(), SeqTableFromAssemblyFields(), CCleanup::SetCDSPartialsByFrameAndTranslation(), SetChromosome(), CTextSubpanel::SetClusters(), SetCommon(), CStructuredCommentField::SetConstraint(), CApplyAuthorsTreeItemData::SetData(), CBioSource::SetDisableStrainForwarding(), SetDiv(), CSourceRequirements::SetExamples(), SetExceptFromGbqual(), SetFieldsByName(), CFtglFontManager::SetFontPath(), CIdentifiersPanel::SetIdXrefs(), SetLineage(), CAutoDefParsedClause::SetMiscRNAWord(), CSrcModPanel::SetModifierData(), SetOrgMod(), CSubmitBlockDlg::SetPageForError(), CAutodefFeatClausePanel::SetParams(), CCleanup::SetProteinName(), CRelaxedLookupDlg::SetPubdesc(), CRNA_ref::SetRnaProductName(), SetRnaProductName(), CRNAFieldNamePanel::SetRnaType(), CDualRNAFieldNamePanel::SetRnaType(), CSubmissionPrepMainPanel::SetSourceType(), CSubPrep_panel::SetSubmissionNotReady(), SetSubSource(), SetTaxname(), SetTitle(), SetTranslExcept(), CValidError_imp::Setup(), CGBBlockField::SetVal(), CGenbankKeywordField::SetVal(), CLatLonPanel::SetValue(), CEditingActionFeatTranslExcept::SetValue(), CEditingActionFeatProduct::SetValue(), CSingleSequencePanel::SetValue(), CSingleExperimentPanel::SetValue(), CTwoPartQualPanel::SetValue(), CSubPrepIntroPanel::SetWizardTypeCtrl(), sGetModInfo(), CBioSource::ShouldIgnoreConflict(), CNewCleanup_imp::SiteFeatBC(), SortGBQuals(), SpecificHostCleanupCommand(), SpecificHostValueToCheck(), SplitQuery_GetChunkSize(), SplitQuery_GetOverlapChunkSize(), sRunTest(), CAlnScannerNexus::sStripCommentsOutsideCommand(), sStripNexusComments(), CStrainRequest::StrainContainsTaxonInfo(), CDiscrepancyVisitorImpl< _Name >::Summarize(), SummarizeAffiliation(), sUpdateCase(), TaxonomyLookupCommand(), CExpectedError::Test(), CFormatGuess::TestFormatCLUSTAL(), CFormatGuess::TestFormatJson(), TestOneReplicon(), CMacroFunction_EditStringQual::TheFunction(), CMacroFunction_EditRelFeatQual::TheFunction(), CMacroFunction_FixFormat::TheFunction(), CMacroFunction_FixPubCaps::TheFunction(), CAuthorAffiliationPanel::TransferDataFromWindow(), CGBQualPanel::TransferDataFromWindow(), CSequencingTechnologyPanel::TransferDataFromWindow(), CSingleRefGeneTrackLocPanel::TransferDataFromWindow(), CFeatureGenePanel::TransferDataFromWindow(), CGenericPropsPanel::TransferDataFromWindow(), CJournalPanel::TransferDataFromWindow(), CncRNASubPanel::TransferDataFromWindow(), CRemarksAndSerialNumberPanel::TransferDataFromWindow(), CRNAPanel::TransferDataFromWindow(), CSingleCDSExceptionPanel::TransferDataFromWindow(), CSingleDbxref_SubPanel::TransferDataFromWindow(), CSingleGbQualSubPanel::TransferDataFromWindow(), CSrcModListPanel::TransferDataFromWindow(), CSubmitRemarksPanel::TransferDataFromWindow(), CTitlePanel::TransferDataFromWindow(), CtmRNASubPanel::TransferDataFromWindow(), CtRNAProductPanel::TransferDataFromWindow(), COrgAdvancedPanel::TransferDataToWindow(), CSequencingTechnologyPanel::TransferDataToWindow(), CCDSTranslationPanel::TransferDataToWindow(), CSerialTitleValidator::TransferFromWindow(), CSourceOtherPanel::TransferToOrgRef(), CCleanup::UpdateECNumbers(), CConvertFeatDlg::UpdateEditor(), COrg_ref::UpdateFromTable(), CSrcDescEditorPanel::UpdateSeqdesc(), CSubmissionPrepMainPanel::UpdateSeqTechCtrls(), UpdateTitle(), CClickableSortUniqueCount::UpdateTree(), CSubPrepFieldEditor::UpdateValues(), CBioSource::UpdateWithBioSample(), CGeneValidator::Validate(), CProtValidator::Validate(), CRNAValidator::Validate(), CMiscFeatValidator::Validate(), CImpFeatValidator::Validate(), CSerialStringListValidator::Validate(), ValidateAccessionString(), CValidError_imp::ValidateAffil(), CValidError_imp::ValidateAuthorList(), CValidError_imp::ValidateBioSource(), CValidError_imp::ValidateBioSourceForSeq(), CValidError_imp::ValidateCitSub(), CValidError_bioseq::ValidateCollidingGenes(), CValidError_desc::ValidateComment(), CValidError_bioseq::ValidateCompleteGenome(), CValidError_imp::ValidateDbxref(), CValidError_feat::ValidateInference(), CValidError_feat::ValidateInferenceAccession(), CSubSource::ValidateLatLonCountry(), CValidError_imp::ValidateLatLonCountry(), CValidError_bioseqset::ValidateNucProtSet(), CValidError_imp::ValidateOrgModVoucher(), CValidError_imp::ValidateOrgName(), CValidError_imp::ValidatePubArticleNoPMID(), CValidError_imp::ValidatePubdesc(), CValidError_bioseq::ValidateRawConst(), CValidError_desc::ValidateSeqDesc(), CValidError_bioseq::ValidateSeqDescContext(), CValidError_bioseq::ValidateSeqId(), CValidError_bioseq::ValidateSeqIds(), CValidError_imp::ValidateSourceQualTags(), CValidError_imp::ValidateSpecificHost(), CValidError_imp::ValidateStrain(), CValidError_imp::ValidateSubAffil(), CValidError_imp::ValidateSubSource(), CValidError_desc::ValidateTitle(), CCleanup::WGSCleanup(), CReferenceItem::x_AddAuthors(), CFastaOstreamEx::x_AddDeflineAttribute(), CFeatureItem::x_AddFTableCdregionQuals(), CFeatureItem::x_AddFTableRnaQuals(), CFastaOstreamEx::x_AddGBkeyAttribute(), CConvertGeneToRNA::x_AddGeneFieldsToComment(), CCleanup::x_AddLowQualityException(), CAlnReader::x_AddMods(), CFeatureTableReader_Imp::x_AddNoteToFeature(), CConvertGeneToRNA::x_AddOneGeneField(), CSourceRequirements::x_AddOneOfProblems(), CAutoDefFeatureClause_Base::x_AddOnetRNAIntergenicSpacerElement(), CFeatureTableReader_Imp::x_AddQualifierToFeature(), CFeatureItem::x_AddQualsBond(), CFeatureItem::x_AddQualsGene(), CFeatureItem::x_AddQualsProt(), CFeatureItem::x_AddQualsVariation(), CFeatureItem::x_AddQualTranslation(), CAutoDefModifierCombo::x_AddSubsourceString(), CSrcModListPanel::x_AddTextSrcMods(), CAlnReader::x_AddTitle(), CConvertFeatureBase::x_AddToComment(), CConvertCDSToPseudoGene::x_AddToGeneDescr(), CConvertCDSToPseudoGene::x_AddToGeneLocus(), CFeatGapInfo::x_AdjustOrigLabel(), x_AdjustOrigLabel(), COrgAdvancedPanel::x_ApplyChangesToSource(), CTaxValidationAndCleanup::x_ApplySpecificHostMap(), CSrcTablePrimerColumn::x_ApplyStringToPrimerSet(), CFixOrgModInst::x_ApplyToBioSource(), CFixCountryCap::x_ApplyToCAffil(), CFixAffilCap::x_ApplyToCAffil(), CStripAuthorSuffix::x_ApplyToCAuth(), CFixTitleCap::x_ApplyToPubdesc(), CCreateGeneModelTask::x_AssignIDsAndUpdateGenes(), CFlatGatherer::x_AuthorizedAccessComment(), CGenbankFormatter::x_Authors(), CFlatGatherer::x_BasemodComment(), CMacroFunction_StringConstraints::x_BuildStringConstraint(), CSubSource::x_CalculateLatLonId(), CMiscSeqTable::x_CheckDuplicateIds(), CSubPrep_panel::x_CheckSourceQuals(), CFormatGuess::x_CheckStripJsonNumbers(), CSourceFieldNamePanel::x_ChooseTextQualifier(), CNewCleanup_imp::x_CleanEmptyFeature(), CNewCleanup_imp::x_CleanEmptyGene(), CNewCleanup_imp::x_CleanEmptyProt(), CFeatureItem::x_CleanQuals(), CNewCleanup_imp::x_CleanupGenbankBlock(), CGb_qual::x_CleanupRptAndReplaceSeq(), CCDSTranslationPanel::x_CollectData(), CIdentifiersPanel::x_CollectFeatId(), CSrcModListPanel::x_CollectTextMods(), CValidError_bioseq::x_CompareStrings(), CQualScoreWriter::x_ComposeHeaderEnding(), CGenbankFormatter::x_Consortium(), CSubmitBlockDlg::x_CopyAuthors(), CSeq_id_Resolver__LRG::x_Create(), CFeatureTableReader_Imp::x_CreateGenesFromCDSs(), CBulkFeatureAddDlgStd::x_CreateImportFeatures(), CCleanupHugeAsnReader::x_CreateSmallGenomeSets(), CReferenceItem::x_CreateUniqueStr(), CConvertFeatureBase::x_ExtractQuals(), CCleanupApp::x_FeatureOptionsValid(), CSrcModListPanel::x_FillDataList(), CTblEditDlg::x_FindBadImportColumns(), CLatLonCountryMap::x_FindCountryExtreme(), CAutoDefFeatureClause::x_FindNoncodingFeatureKeywordProduct(), CStructuredCommentPanel::x_FindRow(), CCleanupApp::x_FixCDS(), CNewCleanup_imp::x_FixMiscRNA(), CValidErrorFormat::x_FormatBadInstCodeForSubmitterReport(), CValidErrorFormat::x_FormatBadSpecificHostForSubmitterReport(), CValidErrorFormat::x_FormatConsensusSpliceForSubmitterReport(), CValidErrorFormat::x_FormatECNumberForSubmitterReport(), CFlatItemFormatter::x_FormatRefJournal(), CCommentItem::x_GatherDescInfo(), CCommentItem::x_GatherFeatInfo(), CDBSourceItem::x_GatherInfo(), CNewCleanup_imp::x_GeneGBQualBC(), CSubSource::x_GenericRepliconNameValid(), CGenomeAssemblyComment::x_GetAssemblyMethodFromProgramAndVersion(), CMacroEditorContext::x_GetBsrcTextFieldnames(), CFastaOstreamEx::x_GetCDSIdString(), CCorrectGenesDialog::x_GetConstrainedList(), CAttribTableColumnIdPanel::x_GetConstraintField(), CSubSource::x_GetDateTokens(), CAutoDefFeatureClause::x_GetDescription(), CExperimentListPanel::x_GetExperiments(), CAutoDef::x_GetFeatureClauseProductEnding(), CAutoDef::x_GetFeatureClauses(), CAutoDefFeatureClause::x_GetFeatureTypeWord(), CStructuredCommentPanel::x_GetFields(), CAutoDefFeatureClause::x_GetGeneName(), CPubField::x_GetImprintField(), CInferenceListPanel::x_GetInferences(), CAltitudePanel::x_GetNumber(), CMacroFunction_PubFields::x_GetObjectsForPubField_VolIssuePage(), CAutoDef::x_GetOneNonFeatureClause(), CAutoDefModifierCombo::x_GetOrgModLabel(), CAutoDefFeatureClause::x_GetProductName(), CAutoDefNcRNAClause::x_GetProductName(), CFastaOstreamEx::x_GetRNAIdString(), CRelaxedLookupDlg::x_GetSearchTerms(), SrcEditDialog::x_GetSourceTableChoices(), CAutoDefModifierCombo::x_GetSubSourceLabel(), CBioSource::x_GetSubtypeNameValPairs(), CEditingActionBiosourceTaxnameAfterBinomial::x_GetTextAfterNomial(), CSrcTaxnameAfterBinomialColumn::x_GetTextAfterNomial(), CNewCleanup_imp::x_HandleTrnaProductGBQual(), CRefGeneTrackFieldManager::x_HasPopulatedFields(), CFlatGatherer::x_HTGSComments(), CFlatGatherer::x_IdComments(), CValidError_bioseq::x_IdXrefsNotReciprocal(), CFeatureItem::x_ImportQuals(), CReferenceItem::x_Init(), CLatLonCountryMap::x_InitFromFile(), CFeatureTableReader_Imp::x_InitId(), CFormatGuess::x_IsBlankOrNumbers(), CNewCleanup_imp::x_IsGenbankBlockEmpty(), CNewCleanup_imp::x_IsPubContentBad(), CSeqTechDlg::x_IsSpecialTech(), CGenbankFormatter::x_Journal(), CCleanupApp::x_KOptionsValid(), CSubPrepIntroPanel::x_LaunchSubmitEditor(), CFlatGatherer::x_MapComment(), CTableDataValidate::x_MatchFilter(), CAutoDefFeatureClause_Base::x_MeetAltSpliceRules(), CSubPrep_panel::x_NeedUniqueMicrosatelliteNames(), CmRNACDSLinker::x_OkForLinking(), CCleanupApp::x_OpenOStream(), CSubSource::x_ParseDateRangeWithDelimiter(), CSrcStructuredVoucherPartColumn::x_ParsePartsFromStructuredVoucher(), CFeatureTableReader_Imp::x_ParseTrnaExtString(), CNewCleanup_imp::x_PostBiosource(), CDisplaySeqalign::x_PrintFeatures(), CCleanupApp::x_ProcessFeatureOptions(), CFastaDeflineReader::x_ProcessIDs(), CMemorySrcFileMap::x_ProcessLine(), CCleanupApp::x_ProcessOneFile(), CFeatureTableReader_Imp::x_ProcessQualifier(), CNewCleanup_imp::x_ProtGBQualBC(), CGenbankFormatter::x_Remark(), CSrcTablePrimerColumn::x_RemoveEmptyValues(), CBioSource::x_RemoveNameElementDiffs(), CDescrModApply::x_ReportInvalidValue(), CValidError_bioseq::x_ReportOverlappingPeptidePair(), CMacroEngine::x_ResolveRTVar(), CMacroResolver::x_ResolveRTVar(), CNewCleanup_imp::x_SeqFeatCDSGBQualBC(), CNewCleanup_imp::x_SeqFeatRnaGBQualBC(), CCommentItem::x_SetCommentWithURLlinks(), CSubPrepFieldEditor::x_SetEditorControls(), CExperimentListPanel::x_SetExperiments(), CInferenceListPanel::x_SetInferences(), CMacroFunction_StringConstraints::x_SetModifierFlag(), CLocusItem::x_SetName(), x_SetNameFromName(), CSubPrepFieldEditor::x_SetOneValue(), CBioSourcePanel::x_SetOrganismInfo(), CValidError_bioseq::x_SetupCommonFlags(), CNewCleanup_imp::x_ShouldRemoveEmptyFeature(), CValidError_bioseq::x_ShowBioProjectWarning(), CConvertFeatureBase::x_SimpleConversion(), CGenbankFormatter::x_Title(), CMatchFeatureTableDlg::x_TokenMatch(), CIdResolver::x_TryProcessGenomicLRG(), CIdResolver::x_TryProcessLRG(), CSubPrep_panel::x_UpdateFeatureStatus(), CCDSTranslationPanel::x_UpdateForceNear(), CSrcModListPanel::x_UpdateList(), CAutodefFeatClausePanel::x_UpdateSuppressedFeatureTypeList(), CIdentifiersPanel::x_UpdateXrefDescriptions(), CMacroFunction_StringConstraints::x_ValidArguments(), CValidError_align::x_ValidateAlignPercentIdentity(), CValidError_bioseq::x_ValidateCompletness(), CProtValidator::x_ValidateECNumbers(), CSingleFeatValidator::x_ValidateExcept(), CSingleFeatValidator::x_ValidateExceptText(), CGeneValidator::x_ValidateExceptText(), CSingleFeatValidator::x_ValidateGbQual(), CSingleFeatValidator::x_ValidateGbquals(), CSingleFeatValidator::x_ValidateGeneXRef(), CValidError_graph::x_ValidateGraphLocation(), CSingleFeatValidator::x_ValidateImpFeatQuals(), CSingleFeatValidator::x_ValidateLocusTagGeneralMatch(), CSingleFeatValidator::x_ValidateNonGene(), CSingleFeatValidator::x_ValidateNonImpFeat(), CSingleFeatValidator::x_ValidateOldLocusTag(), CCdregionValidator::x_ValidateProductId(), CValidError_bioseq::x_ValidatePubFeatures(), CValidError_desc::x_ValidateStructuredComment(), CValidError_desc::x_ValidateStructuredCommentSuffix(), CRNAValidator::x_ValidateTrnaCodons(), CCleanupApp::x_XOptionsValid(), CFeatTableEdit::xAddTranscriptAndProteinIdsToCdsAndParentMrna(), CFeatTableEdit::xAddTranscriptAndProteinIdsToMrna(), CFeatTableEdit::xAddTranscriptAndProteinIdsToUnmatchedMrna(), CFeatTableEdit::xConvertToGeneralIds(), CSrcWriter::xGatherLocalId(), CGffDeconcatApp::xProcessFile(), CBedAutoSql::xProcessLine(), CGffDeconcatApp::xReadFile(), CGffDeconcatApp::xSetExtension(), and CGffDeconcatApp::xWriteFile().

◆ IsEmpty()

bool CEncodedString::IsEmpty ( void  ) const
inline

Check if the string is empty.

Definition at line 4842 of file ncbistr.hpp.

References CEncodedString::m_Original.

◆ IsEncoded()

bool CEncodedString::IsEncoded ( void  ) const
inline

Check if the original string was encoded.

Definition at line 4834 of file ncbistr.hpp.

References CEncodedString::m_Encoded.

Referenced by CEncodedString::GetEncodedString().

◆ IsIPAddress()

bool NStr::IsIPAddress ( const CTempStringEx  str)
static

Check if the string contains a valid IP address.

Definition at line 6396 of file ncbistr.cpp.

Referenced by CRequestContext::SetClientIP(), and x_FirstWord().

◆ IsLower()

bool NStr::IsLower ( const CTempString  str)
static

Checks if all letters in the given string have a lower case.

Parameters
strString to be checked.
Returns
TRUE if all letter characters in the string are lowercase according to the current C locale (std::islower()). All non-letter characters will be ignored. TRUE if empty or no letters.

Definition at line 433 of file ncbistr.cpp.

References i, isalpha(), islower(), len, and str().

◆ IsUpper()

bool NStr::IsUpper ( const CTempString  str)
static

Checks if all letters in the given string have a upper case.

Parameters
strString to be checked.
Returns
TRUE if all letter characters in the string are uppercase according to the current C locale (std::isupper()). All non-letter characters will be skipped. TRUE if empty or no letters.

Definition at line 445 of file ncbistr.cpp.

References i, isalpha(), isupper(), len, and str().

Referenced by FixAuthorCap(), CWGSDb_Impl::Lookup(), CSeq_id_PDB_Info::Normalize(), s_SplitMLAuthorName(), and CRemoveName::x_GetReplacementIds().

◆ IsWhiteSpace()

bool CUtf8::IsWhiteSpace ( TUnicodeSymbol  sym)
static

Determines if a symbol is whitespace per http://unicode.org/charts/uca/chart_Whitespace.html.

Parameters
symUnicode code point (symbol)
See also
TruncateSpacesInPlace, TruncateSpaces_Unsafe, TruncateSpaces

Definition at line 7188 of file ncbistr.cpp.

◆ JavaScriptEncode()

string NStr::JavaScriptEncode ( const CTempString  str)
static

Encode a string for JavaScript.

Replace relevant characters by predefined entities. Like to PrintableString(), but process some symbols in different way.

See also
PrintableString

Definition at line 3959 of file ncbistr.cpp.

References eLanguage_C, s_PrintableString(), and str().

Referenced by CAlignFormatUtil::GetFullIDLink(), CHTMLHelper::HTMLJavaScriptEncode(), and CAlnGraphic::x_BuildHtmlTable().

◆ Join() [1/7]

template<typename TValue >
static string NStr::Join ( const initializer_list< TValue > &  arr,
const CTempString delim 
)
inlinestatic

Definition at line 2703 of file ncbistr.hpp.

References arr, and NStr::x_Join().

◆ Join() [2/7]

template<typename TContainer >
static string NStr::Join ( const TContainer &  arr,
const CTempString delim 
)
inlinestatic

Join strings using the specified delimiter.

Parameters
arrArray of strings to be joined.
delimDelimiter used to join the string.
Returns
The strings in "arr" are joined into a single string, separated with "delim".
See also
Split

Definition at line 2697 of file ncbistr.hpp.

References arr, and NStr::x_Join().

Referenced by CTabDelimitedValidator::_OperateRows(), CFlatFileConfig::AddArgumentDescriptions(), CMsvcPrjProjectContext::AdditionalIncludeDirectories(), CMsvcPrjProjectContext::AdditionalLibraryDirectories(), CMsvcPrjProjectContext::AdditionalLinkerOptions(), CSymResolver::Append(), CConvertBadInference::apply(), CLabelRna::apply(), CECitMatch_Request::BuildSearchTerm(), CEditObjectSeq_feat::CanClose(), CCountries::CapitalizeFirstLetterOfEveryWord(), CheckForFreqRatioFile(), CProjectsLstFileFilter::CheckProject(), CollectAttributes(), CSequenceEditingEventHandler::CombineSelectedGenesIntoPseudogenes(), CAddFluComments::ConcatIds(), CGraphTrack::CreateOverlay(), CVDBAliasNode::CVDBAliasNode(), CHTML_area::DefineCircle(), CHTML_area::DefineRect(), SAppProjectT::DoCreate(), SLibProjectT::DoCreate(), SDllProjectT::DoCreate(), SMsvcProjectT::DoCreate(), CEUtilsUpdater::DoPubSearch(), SMakeProjectT::DoResolveDefs(), Section::DumpText(), CGBSeqFormatter::EndSection(), CNewCleanup_imp::Except_textBC(), CSequenceEditingEventHandler::ExportStructuredCommentsTable(), FixCapitalizationInString(), CGb_qual::FixRptTypeValue(), COrgMod::FixStrain(), CFlatGeneSynonymsQVal::Format(), CGBSeqFormatter::FormatComment(), CGBSeqFormatter::FormatContig(), CGBSeqFormatter::FormatFeature(), CGBSeqFormatter::FormatGap(), CGBSeqFormatter::FormatSequence(), CNewCleanup_imp::GBblockBC(), CCassandraFullscanPlan::Generate(), CWsdlTypeStrings::GenerateClassCode(), CProjBulderApp::GenerateUnixProjects(), CAuthListValidator::get_lastnames(), CFeatGlyph::GetAdditionalInfo(), CVcfGlyph::GetAdditionalInfo(), CVcfVariant::GetAllAlleles_display(), CVcfVariant::GetAltAlleles_orig(), CBulkCDSAddPanel::GetCommand(), CBulkCDS::GetCommandFromValuesTable(), CBulkGene::GetCommandFromValuesTable(), CCommentItem::GetComment(), CSeqDB::GetDBMetaData(), CAdvStringConstraintPanel< T >::GetDescription(), CMacroFeatsOnSeqPanel::GetDescription(), CMacroAdvStringConstraintPanel< T >::GetDescription(), CWordSubstitutionDlg::GetDescription(), CGCClient_GetAssemblyBySequenceRequest::GetFilterDisplayName(), CSnpBitfield::GetGenePropertyString(), CTableDataSUC::GetHtmlValue(), CTableDataValidate::GetHtmlValue(), CEditSequenceEnds::GetLabel(), CSeq_featHandler::GetLabel(), CRemoveSequencesDlg::GetLabel(), CRBSubpanel::GetLabel(), CMsvcSite::GetLibInclude(), CMacroLocationConstraintPanel::GetLocationConstraint(), CMacroFeatsOnSeqPanel::GetLocationConstraint(), CMacroEditingActionPanel::GetMacro(), CMacroAdvStringConstraintPanel< T >::GetMatcher(), CMsvc7RegSettings::GetMsvcSection(), GetPrimerSetNameValues(), GetSeqTableFromSeqEntry(), CWriteUtil::GetStringForGoMarkup(), CEUtilsParser::GetText(), CGuiObjectInfoVariant::GetToolTip(), CGuiObjectInfoVariation::GetToolTip(), CEditingActionFeatAnticodon::GetValue(), CBulkCDS::GetValuesTableFromSeqEntry(), CBulkGene::GetValuesTableFromSeqEntry(), CCompareWithBiosample::GetValuesTableFromSeqEntry(), CMacroCompoundConstraintPanel::GetVariables(), CProjBulderApp::Gui_ConfirmProjects(), CGapStatsApplication::Init(), CProjBulderApp::InsertDep(), JoinValues(), CBamUILoadManager::LoadSettings(), NMFncParse::LookupFncArguments(), CDoiLookup::LookupIsojta(), CCompareWithBiosample::MakeReport(), NcbiMessageBox(), CDirEntry::NormalizePath(), CCompareWithBiosample::OnAddToSample(), CCompareWithBiosample::OnAddToSource(), CGenBankLoadOptionPanel::OnRecentAccClicked(), PIsExcludedByTag::operator()(), OwnerFromAffil(), JSDParser::ParseAllOf(), JSDParser::ParseArrayContent(), JSDParser::ParseDependencies(), JSDParser::ParseMemberDefinition(), JSDParser::ParseNode(), JSDParser::ParseOneOf(), JSDParser::ParseRequired(), CLocalVDBBlast::PreprocessDBs(), CArgs::Print(), CBlastFormatterVdbApp::PrintFormattedOutput(), CNCStat::PrintToSocket(), CArgDependencyGroup::PrintUsage(), CArgDescriptions::PrintUsage(), CCommandArgDescriptions::PrintUsage(), CCgiContext::ProcessCORSRequest(), AlnUtil::ProcessDataLine(), ReplaceWellknownSeqs(), CAlignmentAssistant::ReportUnresolvedBioseqs(), CMsvcSite::ResolveDefine(), s_CleanupOrgModAndSubSourceOther_helper(), s_ComposeCodonRecognizedStr(), s_GBSeqStringCleanup(), s_GetAuthorsString(), CVCFVariantsBase::s_GetCurrentVersion(), s_NormalizeTokens(), s_PrintContainer(), fix_pub::s_ProcessConsortia(), s_ReadSpecificParams(), CMacroFunction_RemoveOrgName::s_RemoveOrgName(), s_RenderAccList(), s_ResolveSubTracks(), s_SplitMLAuthorName(), C5ColImportData::Serialize(), CBedImportData::Serialize(), CBedFeatureRecord::SetBlocks(), CTextSubpanel::SetClusters(), CFieldSubpanel::SetClusters(), CStructCommentSubpanel::SetClusters(), CUser_object::SetFieldRef(), CBedFeatureRecord::SetRgb(), CBarcodeTool::ShowReport(), AlnUtil::StripBlanks(), CDiscrepancyVisitorImpl< _Name >::Summarize(), fix_pub::TenAuthorsProcess(), CBlobStatusHistoryRecord::ToString(), CTraversalSpecFileParser::CDescFileNode::ToString(), CGAssemblyPanel::TransferDataFromWindow(), CFeatureSearchForm::Update(), CGraphOverlay::UpdateSource(), SMakeProjectT::VerifyLibDepends(), CCassNAnnotTaskFetch::Wait1(), CMakeProject::Write(), CFastaOstream::SGapModText::WriteAllModsAsFasta(), CNCServer::WriteAppSetup(), CBlastDBCmdApp::x_AddCmdOptions(), CDBSourceItem::x_AddPIRBlock(), CFeatureItem::x_AddQualExceptions(), CDBSourceItem::x_AddSPBlock(), CConsolidateLikeMods::x_ApplyToBioSource(), CMacroInterpreter::x_AutodefCompleteValidateArgs(), CMacroInterpreter::x_AutodefValidateArgs(), CMacroInterpreter::x_CaseConstraintValidateArgs(), CMiscSeqTable::x_CheckDuplicateIds(), NSNPVariationHelper::x_CommonConvertFeat(), CArgDependencyGroup::x_Evaluate(), CGBSeqFormatter::x_FormatAltSeq(), CReferenceItem::x_GatherRemark(), CVcfGlyph::x_GetClinVarToolTip(), CTL_LangCmd::x_GetDynamicID(), CBlastVdbCmdApp::x_GetFullPaths(), CVDBBlastnApp::x_GetFullVDBPaths(), CVDBTblastnApp::x_GetFullVDBPaths(), CFlatItemFormatter::x_GetKeywords(), CTableReaderMacro::x_GetMacro(), CAgpconvertApplication::x_HandleTaxArgs(), CSeq_id::x_Init(), CBlastVdbCmdApp::x_InitApplicationData(), CMacroInterpreter::x_IsPresentValidateArgs(), CRegexpUtil::x_Join(), CIntronTrack::x_LoadFeatures(), CDBConnectionFactory::x_LogConnection(), CTraversalSpecFileParser::x_ParseMemberClause(), CEutilsClient::x_ParseSearchResults(), CMacroInterpreter::x_PostProcessDiscrAutofix(), CNCMessageHandler::x_ReadCommand(), COrgName::x_ResetAttribFlag(), CGraphTrack::x_SaveSettings(), CFeatureGenerator::SImplementation::x_SetExceptText(), CTraversalPatternMatchCallback::x_TranslateArgToNode(), CTraversalPatternMatchCallback::x_TryToDeprecatePatternMatchers(), CGeneralPanel::x_UpdateDescControls(), CVcfWriter::x_WriteFeatureFilter(), CVcfWriter::x_WriteFeatureGenotypeData(), CVcfWriter::x_WriteFeatureId(), CVcfWriter::x_WriteFeatureInfo(), CAlnScannerPhylip::xImportAlignmentData(), CVcfReader::xProcessInfo(), CAlnScannerNexus::xProcessMatrix(), CGtfReader::xProcessQualifierSpecialCase(), CBedLineReader::xProcessTrackLine(), CAlnFormatGuesser::xSampleIsMultAlign(), CBedReader::xSetFeatureColorFromScore(), C5ColLineReader::xSplitLine(), CGff3LineReader::xSplitLine(), and CGtfLineReader::xSplitLine().

◆ Join() [3/7]

void CTempStringList::Join ( CTempString s) const

Definition at line 7356 of file ncbistr.cpp.

◆ Join() [4/7]

void CTempStringList::Join ( CTempStringEx s) const

Definition at line 7364 of file ncbistr.cpp.

◆ Join() [5/7]

void CTempStringList::Join ( string s) const

Definition at line 7345 of file ncbistr.cpp.

Referenced by CStrTokenize< TStr, TV, TP, TCount, TReserve >::Do().

◆ Join() [6/7]

template<typename TInputIterator >
static string NStr::Join ( TInputIterator  from,
TInputIterator  to,
const CTempString delim 
)
inlinestatic

Definition at line 2709 of file ncbistr.hpp.

References NStr::x_Join().

◆ Join() [7/7]

template<size_t num_prealloc, typename TIn , typename TOut >
void CTextJoiner< num_prealloc, TIn, TOut >::Join ( TOut *  result) const
inline

◆ JoinNumeric()

template<typename TInputIterator >
static string NStr::JoinNumeric ( TInputIterator  from,
TInputIterator  to,
const CTempString delim 
)
inlinestatic

◆ JsonDecode()

string NStr::JsonDecode ( const CTempString  str,
size_t *  n_read = NULL 
)
static

Decode a string encoded by JsonEncode.

Parameters
strThe string to encode. It must be in double quotes.
[out]n_readHow many symbols the quoted string occupied in the original string.
See also
JsonEncode
Warning
This method only supports strings encoded by JsonEncode-specific encodings.

Definition at line 4995 of file ncbistr.cpp.

Referenced by CJsonParser::ParseString().

◆ JsonEncode()

string NStr::JsonEncode ( const CTempString  str,
EJsonEncode  encoding = eJsonEnc_UTF8 
)
static

Encode a string for JSON.

Parameters
strThe string to encode.
encodingSpecifies how to encode string. There are 2 approaches, with representing whole string as UTF-8 encoded string, or leave all Unicode symbols "as is", but the resulting string will be put in double quotes.
Warning
This method is not intended to work with strings that already have UTF-8 encoding, except simple eJsonEnc_Quoted mode, that just quote a string, without any real encoding. Passed string have no information on encoding and JsonEncode() cannot detect it. So, with default eJsonEnc_UTF8 mode such strings will be re-encoded again, so you will have double UTF-8 encoded string as result, that is not what you may expect. Be aware.
Returns
JSON encoded string

Definition at line 4634 of file ncbistr.cpp.

Referenced by CTimerPerfLogGuard::AddParameter(), CTrackContainer::GetHTMLActiveAreas(), operator<<(), CHTMLPlainText::PrintBegin(), CVersionAPI::PrintJson(), SBuildInfo::PrintJson(), CVersionInfo::PrintJson(), CComponentVersionInfoAPI::PrintJson(), s_Repr_Value(), CSynRegistry::TGet(), and ToJsonString().

◆ Justify() [1/3]

list< string > & NStr::Justify ( const CTempString  str,
SIZE_TYPE  width,
list< string > &  par,
const CTempString pfx = 0,
const CTempString pfx1 = 0 
)
static

Justify the specified string into a series of lines of the same width.

Split string "str" into a series of lines, all of which (except for the final one) are to be exactly "width" characters wide (by adding extra inner spaces between words when necessary), and store the resultant lines in the list "par". Normally, all lines in "par" will begin with "pfx" (counted against "width"), but the first line can instead begin with "pfx1" if provided.

Note
Words exceeding the specified "width" will not be split between lines but occupy individual lines (which will be wider than "width").
Parameters
strString to be split into justified lines.
widthWidth of every line (except for the last one).
parResultant list of justified lines.
pfxThe prefix string added to each line, except for the first line if non-NULL "pfx1" is also set. Empty(or NULL) "pfx" causes no additions.
pfx1The prefix string for the first line, if non-NULL.
Returns
Return "par", the list of justified lines (a paragraph).
Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 5418 of file ncbistr.cpp.

Referenced by NStr::Justify(), CConnTest::PostCheck(), and CConnTest::PreCheck().

◆ Justify() [2/3]

list< string > & NStr::Justify ( const CTempString  str,
SIZE_TYPE  width,
list< string > &  par,
const CTempString  pfx,
const CTempString pfx1 = 0 
)
inlinestatic

Definition at line 5626 of file ncbistr.hpp.

References NStr::Justify(), and str().

◆ Justify() [3/3]

list< string > & NStr::Justify ( const CTempString  str,
SIZE_TYPE  width,
list< string > &  par,
const CTempString  pfx,
const CTempString  pfx1 
)
inlinestatic

Definition at line 5634 of file ncbistr.hpp.

References NStr::Justify(), and str().

◆ length() [1/2]

template<typename _TChar >
size_t CTempXStr< _TChar >::length ( void  ) const
inline

◆ length() [2/2]

CTempString::size_type CTempString::length ( void  ) const
inline

Return the length of the represented array.

Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 320 of file tempstr.hpp.

References CTempString::m_Length.

Referenced by CDelta_ext::AddLiteral(), CWriteDB_Impl::AddSequence(), CWriteDB::AddSequence(), NStr::CWrapDestStringList::Append(), CRawSeqToDeltaSeqByLoc::apply_impl(), CFastaReader::AssembleSeq(), CPrintJobInfo::BeginJobEvent(), BOOST_AUTO_TEST_CASE(), BrFcgiBookTermToEutilsTerm(), CRawSeqToDeltaSeqByLoc::ByAssemblyGapFeatures_impl(), CFastaReader::CanonicalizeString(), CFastaReader::CheckDataLine(), CSeq_id::CheckLocalID(), NStr::CommonPrefixSize(), NStr::CommonSuffixSize(), CTempString::compare(), NStr::CompareCase(), NStr::CompareNocase(), CGapsEditor::ConvertNs2Gaps(), CTempString::Copy(), CFastaReader::CreateWarningsForSeqDataInTitle(), CDiff::Diff(), CDiffText::Diff(), CExtraEncoder::Encode(), CSourceModParser::EqualKeys(), NStr::EqualNocase(), CTempString::find(), CTempString::find_first_not_of(), CTempString::find_first_of(), CTempString::find_last_not_of(), CTempString::find_last_of(), NStr::FindCase(), CFlatXrefQVal::Format(), fta_if_wgs_acc(), g_FixMisplacedPID(), CCommentItem::GetStringForRefSeqGenome(), CS2N_Guard::Message(), SCaseInsensitiveQuickLess::operator()(), operator+(), CTempString::operator==(), CFastaReader::ParseDataLine(), CFastaDeflineReader::ParseDefline(), CFastaMapper::ParseDefLine(), CFastaReader::ParseGapLine(), CFeatureTableReader_Imp::ParseInitialFeatureLine(), CFastaDeflineReader::ParseRange(), CPrintJobInfo::PrintXput(), CPrintJobInfo::ProcessJobEventField(), CPrintJobInfo::ProcessJobInfoField(), CGeneFileUtils::ReadGeneInfo(), CRegexpUtil::Replace(), CTempString::rfind(), s_ContainsWholeWord(), s_ExtractKey(), s_GetrRNAProductsSuspectRuleSet(), s_IsVDBWGSScaffold(), s_LineIndicatesOrder(), CAgpToSeqEntry::s_LocalSeqIdFromStr(), s_SetTrnaProduct(), s_TitleEndsInOrganism(), SeqDB_UnpackAmbiguities(), CPDB_seq_id::SetChainIdentifiers(), CFormatGuess::TestFormatFasta(), CDeflineGenerator::x_AdjustProteinTitleSuffix(), CDeflineGenerator::x_AdjustProteinTitleSuffixIdx(), CDiffList::x_CleanupAndMerge_Equities(), CDiffList::x_CleanupAndMerge_SingleEdits(), CDiff::x_Diff(), CDiff::x_DiffBisect(), CDiff::x_DiffHalfMatch(), CDiff::x_DiffHalfMatchI(), CVariantDescriptors::x_GetMaxFeatLengthForClinVar(), CLatLonCountryMap::x_InitFromFile(), CFeatureTableReader_Imp::x_IsWebComment(), CVCFVariantsBase::x_NullOrFilterClinVar(), CSubSource::x_ParseDateRangeWithDelimiter(), CShortReadFastaInputSource::x_ReadFastaOneSeq(), CShortReadFastaInputSource::x_ReadFastc(), CShortReadFastaInputSource::x_ReadFastqOneSeq(), CSraInputSource::x_ReadOneSeq(), CValidError_bioseq::x_ReportDuplicatePubLabels(), CDeflineGenerator::x_SetTitleFromPDB(), CRegexpTemplateTester::x_SubstituteVars(), CFeatureTableReader_Imp::x_TokenizeStrict(), CFeatureTableReader_Imp::x_TryToParseOffset(), CGff2Record::xNormalizedAttributeValue(), and CUCSCRegionReader::xSmartFieldSplit().

◆ Less() [1/3]

template<typename T >
bool PCase_Generic< T >::Less ( const T s1,
const T s2 
) const
inline

Return TRUE if s1 < s2.

Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 5791 of file ncbistr.hpp.

References Compare().

◆ Less() [2/3]

template<typename T >
bool PNocase_Generic< T >::Less ( const T s1,
const T s2 
) const
inline

Return TRUE if s1 < s2.

Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 5826 of file ncbistr.hpp.

References Compare().

Referenced by IDictionary::SAlternatesByScore::operator()().

◆ Less() [3/3]

template<typename T >
bool PNocase_Conditional_Generic< T >::Less ( const T s1,
const T s2 
) const
inline

Return TRUE if s1 < s2.

Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 5864 of file ncbistr.hpp.

References Compare().

◆ literal()

template<size_t Size>
CTempString literal ( const char(&)  str[Size])
inline

Templatized initialization from a string literal.

This version is optimized to deal specifically with constant-sized built-in arrays.

Definition at line 441 of file tempstr.hpp.

References str().

Referenced by CRawSeqToDeltaSeqByLoc::apply_impl(), AssemblyGapsToDelta(), variation_ref::AttachAssertedSequence(), variation::CVariationUtil::AttachSeq(), CBlobSplitterImpl::AttachToSkeleton(), CRawSeqToDeltaSeqByLoc::ByAssemblyGapFeatures_impl(), variation::CVariationUtil::ChangeToDelins(), variation_ref::CVariationUtil::ChangeToDelins(), variation::CVariationUtil::CCdregionIndex::GetCachedLiteralAtLoc(), CPostProcessUtils::GetLiteralAtLoc(), CCSraRefSeqIterator::GetRefLiterals(), CWGSScaffoldIterator::GetSeq_inst(), CTSE_Default_Assigner::LoadSequence(), CBlobSplitterImpl::MakeID2Chunk(), variation_ref::CVariationUtil::PrecursorToProt(), s_ValidateSeqLiteral(), variation_ref::CVariationUtil::SetReferenceSequence(), CSeqMap::SetRegionInChunk(), Split_Qscore_SeqGraph_By_DeltaSeq(), sx_MakeGapLiteral(), variation::CVariationUtil::TranslateNAtoAA(), variation_ref::CHgvsParser::CContext::Validate(), CValidError_bioseq::ValidateCompleteGenome(), CValidateVariant::ValidateIdentityInst(), variation::CHgvsParser::x_AsHgvsInstExpression(), variation_ref::CHgvsParser::x_deletion(), variation::CHgvsParser::x_deletion(), variation_ref::CHgvsParser::x_delins(), variation::CVariationUtil::x_FindOrCreateLiteral(), CVariationUtilities::x_FixAlleles(), variation_ref::CVariationUtil::x_GetLiteralAtLoc(), variation::CVariationUtil::x_GetLiteralAtLoc(), CSeqMap::x_GetSeq_data(), variation_ref::CHgvsParser::x_raw_seq(), variation::CHgvsParser::x_raw_seq(), variation::CHgvsParser::x_raw_seq_or_len(), variation::CHgvsParser::x_seq_ref(), variation_ref::CHgvsParser::x_SeqLiteralToStr(), variation::CHgvsParser::x_SeqLiteralToStr(), CWGSSeqIterator::x_SetDeltaOrData(), variation_ref::CHgvsParser::x_ssr(), and variation::CHgvsParser::x_ssr().

◆ LongToString() [1/2]

string NStr::LongToString ( long  value,
TNumToStringFlags  flags = 0,
int  base = 10 
)
inlinestatic

Convert Int to string.

Parameters
valueInteger value (long) to be converted.
flagsHow to convert value to string.
baseRadix base. Default is 10. Allowed values are 2..36. Bases 8 and 16 do not add leading '0' and '0x' accordingly. If necessary you should add it yourself.
Returns
  • If conversion succeeds, set errno to zero and return the converted string value.
  • Otherwise, set errno to non-zero and return empty string.
Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 5141 of file ncbistr.hpp.

References flags, and rapidjson::value.

Referenced by CReportParams::Add(), CEditSelectedGaps::apply_impl(), CLinkedFeatsGroup::GetTooltip(), CDebugDumpContext::Log(), CMacroStat::LogStop(), value_slice::CValueConvert< CP, long >::operator string(), CDiagContext_Extra::Print(), CTableQueryExec::ResolveIdentifier(), variation::CHgvsParser::s_IntWithFuzzToStr(), CFeatureFilterDlg::TransferDataToWindow(), CTimeSpan::x_AsSmartString_Precision(), CTimeSpan::x_AsSmartString_Smart_Big(), CTimeSpan::x_AsSmartString_Smart_Small(), and NStr::x_NumericToString().

◆ LongToString() [2/2]

void NStr::LongToString ( string out_str,
long  value,
TNumToStringFlags  flags = 0,
int  base = 10 
)
static

Convert Int to string.

Parameters
out_strOutput string variable.
valueInteger value (long) to be converted.
flagsHow to convert value to string.
baseRadix base. Default is 10. Allowed values are 2..36. Bases 8 and 16 do not add leading '0' and '0x' accordingly. If necessary you should add it yourself.
Note
  • If conversion succeeds, set errno to zero and return the converted string value in 'out_str'.
  • Otherwise, set errno to non-zero, value of 'out_str' is undefined.

Definition at line 1889 of file ncbistr.cpp.

◆ MatchEncoding()

bool CUtf8::MatchEncoding ( const CTempString src,
EEncoding  encoding 
)
static

Check the encoding of the C/C++ string.

Check that the encoding of the source is the same, or is compatible with the specified one

Parameters
srcSource string
encodingCharacter encoding form to check against
Returns
Boolean result: encoding is same or compatible

Definition at line 6752 of file ncbistr.cpp.

◆ MatchesMask()

bool NStr::MatchesMask ( CTempString  str,
CTempString  mask,
ECase  use_case = eCase 
)
static

Match "str" against the "mask".

This function does not use regular expressions. Very similar to fnmatch(3), but there are differences (see also glob(7)). There's no special treatment for a slash character '/' in this call.

Parameters
strString to match.
maskMask used to match string "str". This is a text pattern, which, along ordinary characters that must match literally corresponding symbols in the string "str", can contains also mext wildcard characters:
? - matches to any single character in the string.
* - matches to any number of characters in the string (including none).
Mask also support POSIX character classes in the forms of "[...]" or "[!...]" that must MATCH or NOT MATCH, respectively, a single character in "str". To cancel the special meaning of '*', '?' or '[', they can be prepended with a backslash '\' (the backslash in front of other characters does not change their meaning, so "\\\\" matches one graphical backslash in the "str"). Within a character class, to have its literal meaning a closing square bracket ']' must be used at the first position, whereas '?', '*', '[, and '\' stand just for themselves. Two characters separated by a minus sign '-' denote a range that can be used for contraction to include all characters in between: "[A-F]" is equivalent to "[ABCDEF]". For its literal meaning, the minus sign '-' can be used either at the very first position, or the last position before the closing bracket ']'. To have a range that begins with an exclamation point, one has to use a dummy empty range followed by that range with '!'.

Examples: "!" matches a single '!' (note that just "[!]" is invalid); "[!!]" matches any character, which is not an exclamation point '!'; "[][!]" matches ']', '[', and '!'; "[!][-]" matches any character except for ']', '[', and '-'; "[-]" matches a minus sign '-' (same as '-' just by itself); "[?*\\]" matches either '?', or '*', or a backslash '\'; "[]-\\]" matches nothing as it defines an empty range (from ']' to '\'); "\\[a]\\*" matches a literal substring "[a]*"; "[![a-]" matches any char but '[', 'a' or '-' (same as "[!-[a]"; but not "[![-a]", which defines an empty range, thus matches any char!); "[]A]" matches either ']' or 'A' (NB: "[A]]" matches a substring "A]"); "[0-9-]" matches any decimal digit or a minus sign '-' (same: "[-0-9]"); "[9-0!-$]" matches '!', '"', '#', and '$' (as first range matches nothing).

Note
In the above, each double backslash denotes a single graphical backslash character (C string notation is used).
Unlike shell globbing, "[--0]" *does* match the slash character '/' (along with '-', '.', and '0' that all fall within the range).
Parameters
use_caseWhether to do a case sensitive compare for letters (eCase – default), or a case-insensitive compare (eNocase).
Returns
Return TRUE if "str" matches "mask", and FALSE otherwise (including patter errors).
See also
CRegexp, CRegexpUtil

Definition at line 389 of file ncbistr.cpp.

References eMatch, NStr::eNocase, mask, s_MatchesMask(), and str().

Referenced by BOOST_AUTO_TEST_CASE(), SInputValidator::CheckAffinity(), SInputValidator::CheckCancel(), CSGQueryFunctionCompare::Evaluate(), CMQueryFunctionOps_Like::Evaluate(), CQueryFuncLike::Evaluate(), SAccGuide::Find(), CMaskFileName::Match(), CDirEntry::MatchesMask(), CStringMatching::MatchString(), CObjFingerprint::ParseSignature(), CRepeatLibrary::Read(), CGridCommandLineInterfaceApp::SetUp_NetCacheCmd(), CNcbiLogFields::x_Match(), CFeatureSearchJob::x_Match(), CCgiUserAgent::x_Parse(), and CGFFReader::x_ParseV3Attributes().

◆ Merge() [1/2]

template<class TContainer >
static string CStringPairs< TContainer >::Merge ( const TStrPairs pairs,
const string arg_sep,
const string val_sep,
IStringEncoder encoder = NULL,
EOwnership  own = eTakeOwnership 
)
inlinestatic

Merge name-value pairs from the provided container, separators and encoder.

Delete the encoder if the ownership flag allows.

Parameters
pairsContainer with the name/value pairs to be merged.
arg_sepSeparator to be inserted between pairs.
val_sepSeparator to be inserted between name and value.
encoderString encoder (Url, Xml etc.)
ownFlag indicating if the encoder must be deleted by the function.

Definition at line 4772 of file ncbistr.hpp.

◆ Merge() [2/2]

template<class TContainer >
string CStringPairs< TContainer >::Merge ( void  ) const
inline

Merge name-value pairs into a single string using the currently set separators and the provided encoder if any.

Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 4753 of file ncbistr.hpp.

Referenced by SDiagMessage::FormatExtraMessage(), CStringPairs< TExtraValuesMap >::Merge(), CNcbiResourceInfo::x_GetEncoded(), and CRequestContext_PassThrough::x_SerializeUrlEncoded().

◆ MergeDelims()

void CStrTokenizeBase::MergeDelims ( void  )
inline

Assumes that we already have a delimiter on the previous position, so just skip all subsequent, depending on flags.

Definition at line 168 of file ncbistr_util.hpp.

References CStrTokenizeBase::x_SkipDelims().

◆ NCBI_EXCEPTION_DEFAULT2()

CStringException::NCBI_EXCEPTION_DEFAULT2 ( CStringException  ,
CParseTemplException< CCoreException ,
std::string::size_type   
)

◆ NeedsURLEncoding()

bool NStr::NeedsURLEncoding ( const CTempString  str,
EUrlEncode  flag = eUrlEnc_SkipMarkChars 
)
static

Check if the string needs the requested URL-encoding.

Definition at line 6228 of file ncbistr.cpp.

References s_URLDecode(), and str().

Referenced by CSrvDiagMsg::PrintParam(), and CCgiCookie::x_EncodeCookie().

◆ NumericToString() [1/3]

template<typename TNumeric >
static void NStr::NumericToString ( string out_str,
TNumeric  value,
TNumToStringFlags  flags = 0,
int  base = 10 
)
inlinestatic

Convert numeric value to string.

Parameters
out_strOutput string variable.
valueNumeric value to be converted.
flagsHow to convert value to string.
baseRadix base. Default is 10. Allowed values are 2..36. Bases 8 and 16 do not add leading '0' and '0x' accordingly. If necessary you should add it yourself. If value is float or double type, the parameter is ignored.
Note
  • If conversion succeeds, set errno to zero and return the converted string value in 'out_str'.
  • Otherwise, set errno to non-zero, value of 'out_str' is undefined.

Definition at line 704 of file ncbistr.hpp.

References flags, rapidjson::value, and NStr::x_NumericToString().

◆ NumericToString() [2/3]

template<typename TNumeric >
static enable_if< is_arithmetic<TNumeric>::value || is_convertible<TNumeric, Int8>::value, string>::type NStr::NumericToString ( TNumeric  value,
TNumToStringFlags  flags = 0,
int  base = 10 
)
inlinestatic

Convert numeric value to string.

Parameters
valueNumeric value to be converted.
flagsHow to convert value to string.
baseRadix base. Default is 10. Allowed values are 2..36. Bases 8 and 16 do not add leading '0' and '0x' accordingly. If necessary you should add it yourself. If value is float or double type, the parameter is ignored.
Returns
  • If conversion succeeds, set errno to zero and return the converted string value.
  • Otherwise, set errno to non-zero and return empty string.

Definition at line 673 of file ncbistr.hpp.

References flags, rapidjson::value, and NStr::x_NumericToString().

Referenced by AccessionToKey(), CAlnMix::Add(), CLinkUtils::AddDbxrefLinksForSNP(), AddFeatureSeqTableRowToSeqEntry(), AddFeatureToSeqTable(), CPdf::AddJSTooltip(), CTableAnnotDataSource::AddSeqLoc(), CLinkUtils::AddSequenceLinks(), CTableAnnotDataSource::AddSnpSeqLoc(), AddToFeatureIdColumn(), CPdf::AddTooltip(), CRtProfiler::AddUserKV(), CRtProfiler::AddUserKVMT(), CSplitCDSwithTooManyXs::AdjustSingleCDS(), AgpRead(), SNetCacheAPIImpl::AppendClientIPSessionIDPasswordAgeHitID(), CTaxNRCriteria::Apply(), CGroupExplode::apply(), CCassPrm::AsInt16(), CCassPrm::AsInt32(), CCassPrm::AsInt64(), CCassPrm::AsInt8(), CMQueryNodeValue::AssignFromObjectInfo(), CTimeSpan::AssignFromSmartString(), CFastaReader::AssignMolType(), CBlastDBSeqId::AsString(), CSeq_align::SIndel::AsString(), CRtProfiler::AsString(), CCassPrm::AsString(), CStackTrace::SStackFrameInfo::AsString(), variation_ref::CHgvsParser::AsVariationFeat(), BlastKmerGetKmerSetStats(), BlastXML_FormatReport(), BOOST_AUTO_TEST_CASE(), BuildGFF3Gap(), BuildSmallGenomeSet(), CAlignFormatUtil::BuildUserUrl(), CNetCacheKey::CalculateChecksum(), CAlignShadow::CAlignShadow(), Convert::CassValueConvert(), Convert::CassValueConvert< bool >(), Convert::CassValueConvert< int16_t >(), Convert::CassValueConvert< int32_t >(), Convert::CassValueConvert< int64_t >(), Convert::CassValueConvert< int8_t >(), Convert::CassValueConvert< string >(), CAutoTrans::CAutoTrans(), CBedCoverageGraph::CBedCoverageGraph(), CDbapiSampleApp::CDbapiSampleApp(), CDDSplashDialog::CDDSplashDialog(), CGI2GRID_ComposeHtmlPage(), impl::CConnection::CheckCanOpen(), CheckFeatureAnnotation(), CFastaIdValidate::CheckForExcessiveNucData(), CFastaIdValidate::CheckForExcessiveProtData(), CSnpTrack::CheckRange(), CVcfTrack::CheckRange(), CheckTags(), CWAM_Donor< 2 >::class_id(), CWAM_Acceptor< 2 >::class_id(), CMC3_CodingRegion< 5 >::class_id(), CMC_NonCodingRegion< 5 >::class_id(), CMessageDumperSender::CMessageDumperSender(), CollectAttributes(), CSeq_id::ComposeOSLT(), SNetServerImpl::ConnectAndExec(), CHttpResponse::ContentStream(), CFeatureGenerator::ConvertLocToAnnot(), CTableImportDataSource::ConvertToSeqAnnot(), CNamedPipeHandle::Create(), ColumnarVcfCache::CreateBlob(), CTableAnnotDataSource::CreateFeature(), CreateMimeFromBiostruc(), CAddFluComments::CreateNewComment(), CDense_seg::CreateRowSeq_interval(), CFileIO::CreateTemporary(), CGraphOverlayFactory::CreateTracks(), CSeqIdGuesser::CSeqIdGuesser(), CSraValue::CSraValue(), CVcfHeatmap::CVcfHeatmap(), CVcfHistogram::CVcfHistogram(), CTaxFormat::DisplayOrgReport(), CTaxFormat::DisplayTaxonomyReport(), CTableImportListCtrl::DivideColumn(), CRtProfiler::DoReport(), CNetScheduleAdmin::DumpQueue(), DumpText(), CBulkInsertImpl::EndRow(), CHttpResponse::ErrorStream(), CUpwardTreeFiller::Execute(), C5ColObjectLoader::Execute(), CPslObjectLoader::Execute(), SBuildInfo::Extra(), CBlastDBExtractor::ExtractGi(), CBlastDBExtractor::ExtractLeafTaxIds(), CBlastDBExtractor::ExtractLinksInteger(), CDense_seg::ExtractRows(), CDense_seg::ExtractSlice(), ExtractSupportModels(), CBlastDBExtractor::ExtractTaxId(), CEntrez2Client::FilterIds(), C64MaskOut::Final64(), SrcEditDialog::FindBadColumns(), SrcEditDialog::FindBadRows(), FindBadRows(), IMacroBioDataIter::FindInTable(), CSeq_id_Local_Tree::FindMatch(), CEnumeratedTypeValues::FindName(), CValidError_imp::FindNonAsciiText(), CSNPDb_Impl::FindSeq(), sequpd::FixCollidingIDs_Bioseq(), CSubSource::FixDateFormat(), SrcEditDialog::FixTableAfterImport(), FixTableAfterImport(), CFlatPubSetQVal::Format(), CwxIntWithFlagsFormat::Format(), CGenbankFormatter::FormatCache(), CHTMLFormatterEx::FormatModelEvidence(), CHTMLFormatterEx::FormatNucId(), CHTMLFormatterEx::FormatProteinId(), CGBSeqFormatter::FormatReference(), CGBSeqFormatter::FormatSegment(), CStringUtil::FormatStringsOccurrences(), CHTMLFormatterEx::FormatTaxid(), CHTMLFormatterEx::FormatTranscriptId(), g_GetWorkerNodeInfo(), g_SuspendWorkerNode(), g_ToSmartStr(), g_ValidateVariationSeqfeat(), CNetCacheKey::GenerateBlobKey(), CSeqFastaReader::GenerateID(), CTextAlnReader::GenerateID(), GetAccessionAndDatabaseSource(), CObjFingerprint::GetAlignSignature(), CGlTextureFont::GetAllSizes(), CPSGDataLoader_Impl::GetAnnotRecordsNAOnce(), CNetStorageGCDatabase::GetAppLock(), CGencollSvc::GetAssmAccs(), CGenbankIdResolve::GetBestId(), CSeqDBVol::GetBioseq(), CShowBlastDefline::GetBioseqHandleDeflineAndId(), CGBDataLoader::GetBlobIdFromSatSatKey(), CBlobRecord::GetChunk(), CPSGS_SNPProcessor::GetChunk(), CPSGS_WGSProcessor::GetChunk(), CCassQuery::GetColumnDef(), CTableAnnotDataSource::STableLocation::GetColumnInfo(), CTableDataSeq_table::GetColumnLabel(), CAlnVecRow::GetColumnText(), CGBObjectLoader::GetDescription(), CDesktopBioseqItem::GetDescription(), CEnumeratedTypeValues::GetDisplayName(), GetDocSumLabel(), CDBConnectionFactory::CServiceInfo::GetExcluded(), CWGSDataLoader_Impl::GetFileInfoByGeneral(), CGCClient_GetAssemblyBySequenceRequest::GetFilterDisplayName(), CSrcTableTaxonIdColumn::GetFromBioSource(), CGeneInfoFileReader::GetGeneInfoForGi(), GetGeneralOrLocal(), CGffIdGenerator::GetGffId(), CGffIdGenerator::GetGffSourceId(), CSeqUtils::GetGiPlacements(), CUnixFeature::GetGroupGIDByName(), CUnixFeature::GetGroupNameByGID(), CAlnStatGlyph::GetHTMLActiveAreas(), GetIdHash(), GetIdHashOrValue(), SCacheInfo::GetIdKey(), CSeqIdGuesser::GetIdStrings(), CIdentifiersPanel::GetIdXrefs(), CTL_RowResult::GetItemInternal(), CSeq_featHandler::GetLabel(), CVcfVariant::GetLabel(), CFeatGlyph::GetLabel(), CPub::GetLabel(), CCit_gen::GetLabelV1(), CMedline_entry::GetLabelV1(), CHistogramGlyph::GetLegend(), CAlignFormatUtil::GetLinkoutUrl(), CGuiObjectInfoVariant::GetLinks(), CGuiObjectInfoVariation::GetLinks(), AbstractParser::GetLocation(), CSeqUtils::GetLocPlacements(), CSeqGraphicPane::GetMarkers(), CBioSource::GetNameValPairs(), GetNewGeneralProtId(), GetNewLocalProtId(), CSeqGraphicPane::GetNewMarkerName(), CGffIdGenerator::GetNextGffExonId(), CCachedTaxon3_impl::GetOrgReply(), CDirEntry::GetOwner(), SNetCacheAPIImpl::GetPartReader(), CNCPeerControl::GetPeerNameOrEmpty(), CSnpPtisClient::GetPrimarySnpTrackForId(), GetPrimitiveValue(), CPepXML::GetProteinName(), CPsgBlobId::GetPsgBlobId(), CNCBlobAccessor::GetPurgeData(), CSUCRefreshCntrl::GetRefreshedText(), CTemplate1TypeStrings::GetRefTemplate(), GetReplacementSeqIds(), CChecksumBase::GetResultHex(), CSeqTableGrid::GetRowLabelValue(), CSNPDbFeatIterator::GetSeq_feat(), CVDBGraphDb_Impl::GetSeqInfo(), CSraRun::GetSpotEntry(), CSeqSummary::GetStats(), CExprValue::GetString(), CTableDataAlnSummary::GetStringValue(), CTableDataVcf::GetStringValue(), CTableDataSUC::GetStringValue(), CTableDataSeq_table::GetStringValue(), CImage::GetSubImage(), CQuery::GetTheOnlyRow(), Sequence::GetTitle(), CVcfGlyph::GetTooltip(), CGuiObjectInfoSeq_align::GetToolTip(), CGuiObjectInfoClone::GetToolTip(), CGuiObjectInfoVariant::GetToolTip(), CGuiObjectInfoVariation::GetToolTip(), CTrackContainer::GetUniqueTrackName(), CUnixFeature::GetUserNameByUID(), CUnixFeature::GetUserUIDByName(), CGenomeProjectField::GetVal(), CPubField::GetVals(), CSeqTableGrid::GetValue(), CEditingActionDescGenomeProjectId::GetValue(), CEditingActionDescPubPmid::GetValue(), CEditingActionFeatTranslExcept::GetValue(), IMacroBioDataIter::GetValueFromTable(), CHttpRetryContext::GetValues(), CIdHandler::GnomonMRNA(), CIdHandler::GnomonProtein(), CAlignGroup::GroupByLikeTaxIds(), CAlignGroup::GroupByTaxIds(), CMsvc7RegSettings::IdentifyPlatform(), CMakeBlastDBApp::Init(), CVecScreenApp::Init(), SNetScheduleAPIImpl::Init(), CImage::Init(), CGapStatsApplication::Init(), CNetStorageGCApp::Init(), CBlastSearchTask::Init_Monitoring(), CBlastSearchTask::Init_RetrieveRID(), CBlastSearchTask::Init_SubmitSearch(), CNCDistributionConf::InitMirrorConfig(), CValidator::IsValidDbxref(), CNetScheduleExecutor::JobDelayExpiration(), XPrintTotalsItem::line(), CTaxValidationAndCleanup::ListTaxLookupErrors(), CTaxon1::LoadSubtreeEx(), CMakeCdrProds::MakeCdrProds(), MakeCommonBioSource(), impl::CDriverContext::MakeConnection(), MakeOriginalLabelForId(), SFlattenIterator::SFrame::MakePath(), CNetStorageObjectLoc::MakeShortUniqueKey(), MakeSmallGenomeSetNucId(), CDBConnectionFactory::MakeValidConnection(), CAlignFormatUtil::MapTemplate(), CRsitesGlyph::NeedTooltip(), CGtfIdGenerator::NextId(), CNormalizeVariant::NormalizeIdentityInstance(), NSTOutOfLimitMessage(), NSTValidateServerSection(), NStr::NumericToString(), CProcessor::OffsetId(), CDDRefDialog::OnButton(), CRemarksAndSerialNumberPanel::OnButtonClick(), CApplyRNAITSDlg::OnCtrlFromKillFocus(), CApplyRNAITSDlg::OnCtrlToKillFocus(), CPSGS_SNPProcessor::OnGotChunk(), CPSGS_WGSProcessor::OnGotChunk(), CQueryParsePanel::OnIdle(), CSmartFileTextToolbar::OnJobNotification(), CRelaxedLookupDlg::OnPubTextDClick(), IServer_MessageHandler::OnRead(), CTaxTreeTestDlg::OnRelatedClick(), CwxExportVectorImageDlg::OnSaveClick(), CDataMiningPanel::OnSearchFinished(), CSeqGraphicWidget::OnSeqGoto(), CAlnMultiWidget::OnUpdateUnhideSelected(), CBDB_Cache::Open(), CSeqIdChunkFile::OpenForRead(), CChunkFile::OpenForRead(), CChunkFile::OpenForWrite(), CSeqIdChunkFile::OpenForWrite(), CAlnSeqIdsExtract< TAlnSeqId, TIdConverter >::operator()(), CRR_Row< TTraits >::operator[](), C64MaskOut::Out64(), JSDParser::ParseDependencies(), CGridCommandLineInterfaceApp::ParseLoginToken(), JSDParser::ParseOneOf(), CwxLogDiagHandler::Post(), CValidError_imp::PostErr(), CDataType::PrintASNTag(), printGFF3(), CDiagContext_Extra::PrintNcbiAppInfoOnRequest(), CDiagContext_Extra::PrintNcbiAppInfoOnStart(), CArgDependencyGroup::PrintUsage(), ProduceCassandraFutureErrorMessage(), CNetCacheAPI::ProlongBlobLifetime(), CNetICacheClientExt::ProlongBlobLifetime(), CNCActiveHandler::ProxyBList(), CNetScheduleExecutor::PutFailure(), CNetScheduleExecutor::PutResult(), CBlastAsyncFormatThread::QueueResults(), QuoteBinary(), QuoteBinaryHex(), CChunkFile::RawRead(), CSeqIdChunkFile::RawRead(), SNetStorageServerParameters::Read(), CObjectIStreamAsnBinary::ReadDouble(), CFastaReader::ReadOneSeq(), CTableImportDataSource::RecomputeHeaders(), CNCDistributionConf::ReConfig(), CBioTreeFeatureDictionary::Register(), CDense_seg::RemapToLoc(), CSubPrep_panel::RemoveAllFeatures(), CUser_object::RemoveNamedField(), RemoveTableRowsThatDoNotMatchStringConstraint(), CSeqGraphicPane::RenameMarker(), CLinearSelHandler::Render(), CAsnElementPrimitive::RenderValue(), CSeqGraphicPane::RenderVectorGraphics(), CChainer::CChainerImpl::ReplacePseudoGeneSeeds(), ReplaceVisibleChar(), CNetScheduleNotificationHandler::RequestJobWatching(), CQueryImpl::RequireRowCount(), CWGSClient::ResolveGeneral(), CTbl2AsnApp::Run(), SGridWorkerNodeImpl::Run(), CTestCompartApplication::Run(), CPrimeCacheApplication::Run(), CNetStorageGCApp::Run(), CAdvancedAlignCleanup::RunSplignOnCompartment(), CTestProtProd_EntrezNeighbors::RunTest(), s_AddCDS(), s_AddLocusSuffix(), s_AddOtherRelatedInfoLinks(), s_AddReciprocityScore(), s_AddTopLevelGenomicLinks(), s_AgpWrite(), s_BitmapFrom7x4(), s_BlastKmerVerifyVolume(), s_CheckTraceMateAlign(), s_CodonVariation(), s_CombineStrings(), s_ConvertToHexString(), s_ConvertValue(), s_CopyToStringColumn(), s_Count(), s_CreateListeningSocket(), s_DescribeSegment(), s_Dump(), s_DumpHeader(), s_DumpSparse(), s_DumpSparseMap(), s_DumpZero(), s_ErrnoToString(), s_fromatstr(), s_GeneralTagsMatch(), s_GetAccVer(), s_GetBigBedFeats(), s_GetBigBedSummary(), s_GetCtgTime(), s_GetData(), s_GetDBFileTry(), s_GetEnumValue(), NSearchFeatPanel::s_GetFeatureLabel(), s_GetFullLinkoutUrl(), s_GetGeneWeight(), s_GetIDLengthErrorString(), s_GetLinkoutUrl(), s_GetNextLogPrefix(), s_GetSeqIdListString(), s_GetSeqLabel(), s_GetTypeString(), s_GetUserObjectContent(), s_GetVariationDbtagLabel(), s_IsIpgAccession(), s_MakeUidtoGiCacheKey(), s_MakeUniqueLocalId(), s_ModifySeqAlnWithFilteredSeqIDs(), s_NumGiToStringGiList(), s_ObjectIdToStr(), s_PositionAsString(), CCassandraException::s_ProduceException(), s_RecordMatch(), s_Repr_Value(), CAlignShadow::s_RunLengthEncode(), s_SizeOrMajorMinor(), s_SocketConnectorBuilder(), s_TableRowHook(), s_TaxidLinageToString(), s_WriteToSocket(), CWGSDb_Impl::SAmbiguityInfo::SAmbiguityInfo(), CViewGraphic::SaveSettingsAtProject(), SaveTableFile(), SaveTableRowAsListFile(), CCachedTaxon3_impl::SendOrgRefList(), CAgpwriteProcess::SeqEntryProcess(), CStructuredCommentsReader::SeqIdMatchesCommentId(), SeqTableFromAssemblyFields(), SequenceIdToString(), CRR_Context::Serialize(), SERV_GetServers(), CBDB_FieldLString::Set(), CSeq_id::Set(), CFormattingArgs::SetArgumentDescriptions(), CObject_id::SetAsMatchingTo(), CLocalBlast::SetBatchNumber(), CBedFeatureRecord::SetBlocks(), CBedGraphRecord::SetChromEnd(), CBedGraphRecord::SetChromStart(), CBedGraphRecord::SetChromValue(), CImage::SetDepth(), CGtfRecord::SetExonNumber(), CFileIO::SetFileSize(), CFilterColumnsDlg::SetGridAdapter(), CIdHandler::SetId(), CObject_id::SetId8(), CUser_field::SetInt8(), CwxSeqMarkerSetDlg::SetMarkerPos(), CwxSeqMarkerSetDlg::SetMarkerRange(), CRawSeqToDeltaByNPanel::SetMinMax(), CwxPhyloSettingsDlg::SetParams(), CwxTreeLabelEdit::SetParams(), CAutodefOrgPanel::SetParams(), CGtfRecord::SetPartNumber(), CRelaxedLookupDlg::SetPubdesc(), CwxExportVectorImageDlg::SetSeqRange(), CBDB_FieldLString::SetStdString(), CBlobStoreBase::SetTextSizeServerSide(), CGridCommandLineInterfaceApp::SetUp_NetScheduleCmd(), CSplignArgUtil::SetupArgDescriptions(), CDiagContext::SetupDiag(), CGenomeProjectField::SetVal(), CLatLonPanel::SetValue(), CSingleSequencePanel::SetValue(), sGenerateFields(), sGetFeatMapKey(), CAlignSort::SortAlignments(), CAlnMixSegment::StartItsConsistencyCheck(), CConnTest::StatefulOkay(), StrippedAccVer(), CCgi2RCgiApp::SubmitJob(), SummarizeIdProblems(), sx_MakeUniqueId(), CObjectIStreamAsnBinary::TagToString(), CMacroFunction_SetColor::TheFunction(), CMacroFunction_SetSize::TheFunction(), CMacroFunction_SetMarker::TheFunction(), CMacroFunction_SetProperty::TheFunction(), CMacroFunction_SubtreeSum::TheFunction(), CMacroFunction_AddToSelectionSet::TheFunction(), CMacroFunction_IsNull::TheFunction(), CMacroFunction_Date::TheFunction(), CRowReaderStream_IANA_TSV::Tokenize(), CGlTextureFont::ToString(), CBioseqInfoRecord::ToString(), CSI2CSIRecord::ToString(), CCassQuery::ToString(), CProSplignPanel::TransferDataToWindow(), CCrossRefFeatsDlg::TransferDataToWindow(), CPublishedRefPanel::TransferDataToWindow(), CSingleAssemblyTrackingPanel::TransferDataToWindow(), CSingleRefGeneTrackLocPanel::TransferDataToWindow(), CCDSTranslationPanel::TransferDataToWindow(), CIdentifiersPanel::TransferDataToWindow(), CSingleCDSExceptionPanel::TransferDataToWindow(), CSingleDbxref_SubPanel::TransferDataToWindow(), CFeatureGenerator::SImplementation::TransformProteinAlignToTranscript(), CObjectIStreamAsnBinary::UnexpectedTagValue(), CTableImportListCtrl::UpdateColumnNames(), CSDBAPI::UpdateMirror(), CDense_seg::Validate(), CSerialFacetLength::Validate(), CSerialFacetMultipleOf< TValue >::Validate(), CSerialFacetValue< TValue >::Validate(), CSerialFacetContainer::Validate(), CValidError_imp::Validate(), CValidError_bioseq::ValidateBioseqContext(), CValidError_imp::ValidateCitations(), CValidError_imp::ValidateDbxref(), CValidError_bioseq::ValidateDelta(), CValidError_bioseq::ValidateHistory(), CValidateVariant::ValidateIdentityInst(), CValidError_bioseq::ValidateIDSetAgainstDb(), CValidError_imp::ValidatePubdesc(), CValidError_bioseq::ValidateRawConst(), CValidError_desc::ValidateSeqDesc(), CValidError_bioseq::ValidateSeqFeatContext(), CValidError_bioseq::ValidateSeqId(), CTable2AsnValidator::ValReportErrorStats(), DTDParser::Value(), CBlobRecord::VerifyBlobSize(), CCassBlobTaskLoadBlob::Wait1(), CConversionApp::Write(), CVdbFastaExtractor::Write(), CNCServer::WriteAppSetup(), CNCBlobStorage::WriteBlobList(), CObjectOStreamAsn::WriteDouble2(), CId1FetchApp::WriteHistoryTable(), TNCBufferType::WriteNumber(), CSrvSocketTask::WriteNumber(), IPhyloTreeRender::x_AddCollapsedGeomNode(), CGuiObjectInfoSeq_feat::x_AddExtraInfo(), CPdfFontHandler::x_AddFont(), CFeatureItem::x_AddFTableCdregionQuals(), CSeqGraphicPane::x_AddNewMarker(), CFeatureItem::x_AddProductIdQuals(), CFeatureItem::x_AddQualsRna(), CSourceRequirements::x_AddUniquenessProblems(), CGuiObjectInfoSeq_align::x_AddUserObject(), impl::CDriverContext::x_AdjustCounts(), CFeatGapInfo::x_AdjustOrigLabel(), x_AdjustOrigLabel(), CMiscSeqTable::x_ApplyMiscSeqTableToSeqEntry(), variation::CHgvsParser::x_AsHgvsExpression(), variation::CHgvsParser::x_AsHgvsInstExpression(), CRPCClient_Base::x_Ask(), IEditMacroFunction::x_AssignReturnValueFromContainer(), CAlnGraphic::x_BuildHtmlTable(), IMacroBioDataIter::STableToApply::x_CacheColFromTable(), CWGSDb_Impl::SAmbiguityInfo::x_Calculate4na(), CWGSDb_Impl::SAmbiguityInfo::x_CalculateAmbiguityMask(), CBulkInsertImpl::x_CheckCanWrite(), CQuery::CRow::x_CheckColumnNumber(), CMacroFunction_StringConstraints::x_CheckConstraintWithinClass(), CMiscSeqTable::x_CheckDuplicateIds(), CValidError_bioseq::x_CheckForMultiplemRNAs(), CSingleFeatValidator::x_CheckForNonAsciiCharacters(), CQueryImpl::x_CheckRowCount(), CSubPrep_panel::x_CheckSourceQuals(), CNSTDatabase::x_CheckStatus(), CMacroFunction_StringConstraints::x_CheckStringConstraint(), CAlignCleanup::x_Cleanup_AnchoredAln(), CSVGRenderer::x_ClippingRect(), CWriteDB_TaxID::x_CommitTransaction(), CFastaDeflineReader::x_ConvertNumericToLocal(), CVcfLoadingJob::x_CreateColumnarVCFProjectItem(), CSGFeatureJob::x_CreateFeature_Recursive(), CFeatureGenerator::SImplementation::x_CreateGeneFeature(), CWigGraph::x_CreateNetCacheKey(), CRemoteAppRequest::x_CreateWDir(), CDeflineGenerator::x_DescribeClones(), CShowBlastDefline::x_DisplayDefline(), CShowBlastDefline::x_DisplayDeflineTableBody(), CValidatePanel::x_DisplayList(), CDisplaySeqalign::x_DisplaySequenceIDForQueryAnchored(), CGeneGroup::x_Draw(), CLayoutGroup::x_Draw(), CAlnStatGlyph::x_DrawBarGraph(), CLinkedFeatsGroup::x_DrawLabels(), CMacroFunction_EditStringQual::x_EditFields(), CSGAlignStatJob::x_Execute(), CSFTranslationJob::x_Execute(), CTar::x_ExtractSparseFile(), CShowBlastDefline::x_FillDeflineAndId(), CDisplaySeqalign::x_FillSeqid(), CTblEditDlg::x_FindBadImportColumns(), CDense_seg::x_FindSegment(), CGencollIdMapper::x_FixImperfectId(), CGuiObjectInfoClone::x_FormatAccessionLinks(), CShowBlastDefline::x_FormatClusterMemData(), CValidErrorFormat::x_FormatConsensusSpliceForSubmitterReport(), CDBSourceItem::x_FormatDBSourceID(), CShowBlastDefline::x_FormatDeflineTableLine(), CAlnGraphic::x_FormatGraphOverview(), CCdregionValidator::x_FormatIntronInterval(), CShowBlastDefline::x_FormatPsi(), CAlignFilter::x_FuncCall(), CNetStorageServer::x_GenerateGUID(), CID2SNPProcessor_Impl::x_GetAccVer(), CAlnVecRow::x_GetAlignmentTooltip_Gap(), CAlnVecRow::x_GetAlignmentTooltip_General(), CWigGraph::x_GetBigWigData(), CWigGraph::x_GetBigWigSummary(), CAsnSubCacheCreateApplication::x_GetBioseqHandle(), x_GetCDDIds(), CVcfGlyph::x_GetClinVarToolTip(), CNetStorageHandler::x_GetConnRef(), CTL_LangCmd::x_GetDynamicID(), CBulkCmdDlg::x_GetExistingTextHandling(), CGuiObjectInfoSeq_feat::x_GetFeatureToolTip(), CImportFeatTable::x_GetFixedId(), x_GetHandleName(), CPdfObject::x_GetHex(), CAutoDef::x_GetHumanSTRFeatureClauses(), x_GetLabel_Content(), CNAUtils::x_GetNAMetaData(), CBasicManifest_CI< TString >::x_GetNextValue(), CNSTServiceProperties::x_GetProlongAsString(), CEUtilsUpdater::x_GetPubmedEntry(), CAlignFilter::x_GetRegionMap(), CRelaxedLookupDlg::x_GetSearchTerms(), CAltValidator::x_GetTaxonSpecies(), CLinkedFeatsGroup::x_GetUniqueLabel(), CAgpconvertApplication::x_HandleTaxArgs(), IMacroBioDataIter::STableToApply::x_InitAndCheck(), CElementaryMatching::x_InitBasic(), CTaxFormat::x_InitBlastDBTaxInfo(), CBedCoverageGraph::x_InitData(), CVcfHeatmap::x_InitData(), CDisplaySeqalign::x_InitDefLinesHeader(), CShowBlastDefline::x_InitFormattingInfo(), CAgpConverter::x_InitializeAndCheckCopyOfTemplate(), CIdMapperNumAssembly::x_InitializeMapping(), CFeatureCheckPanel::x_InitTree(), variation_ref::CHgvsParser::x_InstToString(), variation_ref::CHgvsParser::x_IntWithFuzzToStr(), CMacroFunction_IsPresent::x_IsContainerElementPresent(), NStr::x_Join(), CWNJobWatcher::x_KillNode(), CSVGRenderer::x_LinearGradient(), CEutilsClient::x_Link(), CIntronTrack::x_LoadFeatures(), CHTMLPage::x_LoadTemplateLib(), CNCMessageHandler::x_LogCmdEvent(), CDB_Numeric::x_MakeFromString(), CDisplaySeqalign::x_MapDefLine(), CSeq_loc_Mapper_Base::x_MapNextRange(), CUpdateAlign::x_MapNonPresentIDs(), CTaxFormat::x_MapSeqTemplate(), CGenbankFormatter::x_Medline(), CSeqGraphicPane::x_ModifyMarker(), CNetStorageHandler::x_OnData(), CNetStorageHandler::x_OnSocketWriteError(), CRegexpTemplateTester::x_Op_Skip(), CFastCgiThreadedRequest::x_ParseEnv(), CTar::x_ParsePAXData(), Stroke::x_ParseStipplePattern(), CStrainSerotypeInfluenza::x_ParseStrainSerotype(), CSVGRenderer::x_PolygonStippleToPattern(), CArgDescriptions::x_PostCheck(), CBlastDB_SeqFormatter::x_Print(), CDisplaySeqalign::x_PrintDefLine(), CDisplaySeqalign::x_PrintDynamicFeatures(), CNetStorageGCApp::x_PrintFinishCounters(), CGapStatsApplication::x_PrintHistogram(), CAgpValidateReader::x_PrintPatterns(), CGapStatsApplication::x_PrintSeqsForGapLengths(), CGapStatsApplication::x_PrintSummaryView(), CDownwardTreeFiller::x_PrintTaxInfo(), CTaxFormat::x_PrintTaxInfo(), CPrimeCacheApplication::x_Process_Fasta(), CNetStorageHandler::x_ProcessHello(), CFastaDeflineReader::x_ProcessIDs(), CFastCgiApplicationMT::x_ProcessThreadedRequest(), CPSGS_WGSProcessor::x_ProcessTSEChunkRequest(), CGenbankFormatter::x_Pubmed(), variation_ref::CHgvsParser::x_raw_seq(), CAgpConverter::x_ReadAgpEntries(), CSeqDBAliasSets::x_ReadAliasSetFile(), CTar::x_ReadArchive(), CTar::x_ReadEntryInfo(), CShortReadFastaInputSource::x_ReadFastc(), CShortReadFastaInputSource::x_ReadFastqOneSeq(), CTableImportDataSource::x_RecomputeRowFields(), CBlastSearchTask::x_ReportErrors(), CMacroFunction_RemoveOutside::x_RmvOutsideFields(), CWigGraph::x_RunBigWigScript(), CGraphOverlay::x_SaveSettings(), CTraceGraphTrack::x_SaveSettings(), CEutilsClient::x_Search(), CNetStorageHandler::x_SendOutputBuffer(), CNetStorageHandler::x_SendOverUTTP(), CPSGS_SNPProcessor::x_SendSplitInfo(), variation_ref::CHgvsParser::x_SeqPntToStr(), CFeatureGenerator::SImplementation::x_SetComment(), CNetStorageHandler::x_SetObjectInfoReply(), CId1Reader::x_SetParams(), CDeflineGenerator::x_SetTitleFromWGS(), CMakeProfileDBApp::x_SetupArgDescriptions(), CDataLoadersUtil::x_SetupLDS2DataLoader(), CAttribTableColumnIdPanel::x_TableReaderMacro(), CFormatGuess::x_TestFormat(), CPublishedRefPanel::x_UpdateDOIPmidControls(), CHistogramGlyph::x_UpdateLegend(), CSeqGraphicWidget::x_UpdateMarkerInfo(), CwxMarkerInfoPanel::x_UpdateMarkerLabel(), CSubPrep_panel::x_UpdateSequenceCountLabel(), CRequestContext::x_UpdateSubHitID(), CValidError_align::x_ValidateAlignPercentIdentity(), CValidError_bioseq::x_ValidateCDSmRNAmatch(), CProjectStorage::x_ValidateCompressionFormat(), CSingleFeatValidator::x_ValidateSeqFeatLoc(), CCdregionValidator::x_ValidateSeqFeatLoc(), CProjectStorage::x_ValidateSerialFormat(), CAgpConverter::x_VerifyComponents(), CCgiStreamWrapperWriter::x_WriteChunk(), CElementaryMatching::x_WriteIndexFile(), CGff2Reader::xAlignmentSetDenseg(), CGff2Reader::xAlignmentSetSpliced_seg(), CGtfWriter::xAssignFeaturesCds(), CGffIdGenerator::xDisambiguate(), CGffIdGenerator::xExtractFeatureLocation(), CFeatTableEdit::xNextFeatId(), CFeatTableEdit::xNextLocusTag(), CMultiReaderApp::xProcessAgp(), CFeatTableEdit::xRenameFeatureId(), CGff3Writer::xWriteFeatureCds(), CGff3Writer::xWriteFeatureRna(), CGff3Writer::xWriteFeatureTrna(), CGff3Writer::xWriteNucleotideFeatureTransSpliced(), CGff3Writer::xWriteProteinFeature(), CGff3Writer::xWriteSequenceHeader(), CWiggleWriter::xWriteSingleGraphFixedStep(), and CWGSDb_Impl::SAmbiguityInfo::~SAmbiguityInfo().

◆ NumericToString() [3/3]

template<typename TStrictId >
static enable_if< is_integral<typename TStrictId::TId>::value && is_member_function_pointer<decltype(&TStrictId::Get)>::value, string>::type NStr::NumericToString ( TStrictId  value,
TNumToStringFlags  flags = 0,
int  base = 10 
)
inlinestatic

Definition at line 681 of file ncbistr.hpp.

References flags, NStr::NumericToString(), and rapidjson::value.

◆ operator basic_string< _TChar >()

template<typename _TChar >
CTempXStr< _TChar >::operator basic_string< _TChar > ( void  ) const
inline

Definition at line 121 of file ncbi_xstr.hpp.

References CTempXStr< _TChar >::data(), and CTempXStr< _TChar >::length().

◆ operator string()

CTempString::operator string ( void  ) const
inline

Definition at line 790 of file tempstr.hpp.

References data, and string.

◆ operator!=() [1/3]

bool operator!= ( const char *  str1,
const CTempString  str2 
)
inline

Definition at line 874 of file tempstr.hpp.

◆ operator!=() [2/3]

bool CTempString::operator!= ( const CTempString  str) const
inline

Definition at line 842 of file tempstr.hpp.

References str().

◆ operator!=() [3/3]

bool operator!= ( const string str1,
const CTempString  str2 
)
inline

Definition at line 880 of file tempstr.hpp.

◆ operator()() [1/6]

bool PQuickStringLess::operator() ( const CTempString  s1,
const CTempString  s2 
) const
inline

◆ operator()() [2/6]

template<typename T >
bool PCase_Generic< T >::operator() ( const T s1,
const T s2 
) const
inline

Return TRUE if s1 < s2.

Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 5805 of file ncbistr.hpp.

◆ operator()() [3/6]

template<typename T >
bool PNocase_Generic< T >::operator() ( const T s1,
const T s2 
) const
inline

Return TRUE if s1 < s2 ignoring case.

Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 5840 of file ncbistr.hpp.

◆ operator()() [4/6]

template<typename T >
bool PNocase_Conditional_Generic< T >::operator() ( const T s1,
const T s2 
) const
inline

Return TRUE if s1 < s2 ignoring case.

Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 5878 of file ncbistr.hpp.

◆ operator()() [5/6]

template<typename T >
bool PEqualNocase_Generic< T >::operator() ( const T s1,
const T s2 
) const
inline

Return TRUE if s1 < s2 ignoring case.

Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 4969 of file ncbistr.hpp.

References PNocase_Generic< T >::Equals().

◆ operator()() [6/6]

template<typename T >
bool PEqualNocase_Conditional_Generic< T >::operator() ( const T s1,
const T s2 
) const
inline

Return TRUE if s1 < s2 ignoring case.

Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 5001 of file ncbistr.hpp.

References PNocase_Conditional_Generic< T >::Equals().

◆ operator+() [1/5]

string operator+ ( const char *  str1,
const CTempString  str2 
)
inline

Definition at line 239 of file tempstr.hpp.

References CTempString::data(), g_CTempString_plus(), and CTempString::length().

◆ operator+() [2/5]

string operator+ ( const CTempString  str1,
const char *  str2 
)
inline

Definition at line 246 of file tempstr.hpp.

References CTempString::data(), g_CTempString_plus(), and CTempString::length().

◆ operator+() [3/5]

string operator+ ( const CTempString  str1,
const CTempString  str2 
)
inline

Definition at line 267 of file tempstr.hpp.

References CTempString::data(), g_CTempString_plus(), and CTempString::length().

◆ operator+() [4/5]

string operator+ ( const CTempString  str1,
const string str2 
)
inline

Definition at line 260 of file tempstr.hpp.

References CTempString::data(), g_CTempString_plus(), and CTempString::length().

◆ operator+() [5/5]

string operator+ ( const string str1,
const CTempString  str2 
)
inline

Definition at line 253 of file tempstr.hpp.

References CTempString::data(), g_CTempString_plus(), and CTempString::length().

◆ operator<() [1/3]

bool operator< ( const char *  str1,
const CTempString  str2 
)
inline

Definition at line 886 of file tempstr.hpp.

◆ operator<() [2/3]

bool CTempString::operator< ( const CTempString  str) const
inline

Definition at line 848 of file tempstr.hpp.

References CTempString::compare(), and str().

◆ operator<() [3/3]

bool operator< ( const string str1,
const CTempString  str2 
)
inline

Definition at line 892 of file tempstr.hpp.

◆ operator<<() [1/2]

CNcbiOstream& operator<< ( CNcbiOstream os,
const TStringUCS2 str 
)
inline

Operator for writing TStringUCS2 to stream.

Operator is needed for using in SDBAPI.

Definition at line 3854 of file ncbistr.hpp.

References str().

◆ operator<<() [2/2]

CNcbiOstream& operator<< ( CNcbiOstream out,
const CTempString  str 
)
inline

Definition at line 276 of file tempstr.hpp.

References out(), and str().

◆ operator=()

CTempString & CTempString::operator= ( const CTempString  str)
inline

Definition at line 769 of file tempstr.hpp.

References CTempString::assign().

◆ operator==() [1/3]

bool operator== ( const char *  str1,
const CTempString  str2 
)
inline

Definition at line 862 of file tempstr.hpp.

◆ operator==() [2/3]

bool CTempString::operator== ( const CTempString  str) const
inline

Definition at line 836 of file tempstr.hpp.

References CTempString::data(), CTempString::length(), and str().

◆ operator==() [3/3]

bool operator== ( const string str1,
const CTempString  str2 
)
inline

Definition at line 868 of file tempstr.hpp.

◆ operator>() [1/3]

bool operator> ( const char *  str1,
const CTempString  str2 
)
inline

Definition at line 898 of file tempstr.hpp.

◆ operator>() [2/3]

bool CTempString::operator> ( const CTempString  str) const
inline

Definition at line 854 of file tempstr.hpp.

References CTempString::compare(), and str().

◆ operator>() [3/3]

bool operator> ( const string str1,
const CTempString  str2 
)
inline

Definition at line 904 of file tempstr.hpp.

◆ operator[]() [1/2]

template<typename _TChar >
_TChar CTempXStr< _TChar >::operator[] ( size_t  pos) const
inline

◆ operator[]() [2/2]

char CTempString::operator[] ( size_type  pos) const
inline

Index into the current string and provide its character in a read- only fashion.

If the index is beyond the length of the string, a NULL character is returned.

Definition at line 341 of file tempstr.hpp.

References CTempString::m_Length, and CTempString::m_String.

◆ Parse() [1/2]

template<class TContainer >
void CStringPairs< TContainer >::Parse ( const CTempString  str,
NStr::EMergeDelims  merge_argsep = NStr::eMergeDelims 
)
inline

Parse the string.

Parameters
strString to parse. The parser assumes the string is formatted like "name1<valsep>value1<argsep>name2<valsep>value2...". Each name and value is passed to the decoder (if not NULL) before storing the pair.
merge_argsepFlag for merging separators between pairs. By default the separators are merged to prevent pairs where both name and value are empty.
Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 4698 of file ncbistr.hpp.

Referenced by CNcbiResourceInfo::CNcbiResourceInfo(), CStringPairs< TExtraValuesMap >::Parse(), CRequestContext_PassThrough::x_DeserializeUrlEncoded(), SDiagMessage::x_ParseExtraArgs(), and NSnpGui::x_ProcessDbgaptext().

◆ Parse() [2/2]

template<class TContainer >
static void CStringPairs< TContainer >::Parse ( TStrPairs pairs,
const CTempString  str,
const CTempString  arg_sep,
const CTempString  val_sep,
IStringDecoder decoder = NULL,
EOwnership  own = eTakeOwnership,
NStr::EMergeDelims  merge_argsep = NStr::eMergeDelims 
)
inlinestatic

Parse the string using the provided decoder, put data into the container.

Parameters
pairsContainer to be filled with the parsed name/value pairs
strString to parse. The parser assumes the string is formatted like "name1<valsep>value1<argsep>name2<valsep>value2...". Each name and value is passed to the decoder (if not NULL) before storing the pair.
decoderString decoder (Url, Xml etc.)
ownFlag indicating if the decoder must be deleted by the function.
merge_argsepFlag for merging separators between pairs. By default the separators are merged to prevent pairs where both name and value are empty.

Definition at line 4721 of file ncbistr.hpp.

◆ ParseEscapes()

string NStr::ParseEscapes ( const CTempString  str,
EEscSeqRange  mode = eEscSeqRange_Standard,
char  user_char = '?' 
)
static

Parse C-style escape sequences in the specified string.

Parse escape sequences including all those produced by PrintableString.

Parameters
strThe string to be parsed.
modeParsing mode. By default all escape sequences with a value outside the range of [0-255] will be converted to the least significant byte, with no warning.
user_charIf 'mode' have eEscSeqRange_User, replace all out of range escape sequences with this char.
Returns
String with parsed C-style escape sequences.
  • If string have wrong format throw an CStringException exception.
  • If parsing succeeds, return the converted value. Set errno to zero only if eEscSeqRange_Errno is set.
  • Otherwise, if escape sequence is out of range [0-255], see eEscSeqRange* modes for behavior.
See also
EEscSeqFlags, PrintableString, CEncode, CParse

Definition at line 4793 of file ncbistr.cpp.

Referenced by SNSCommandArguments::AssignValues(), CSubSource::FixLatLonFormat(), CNetScheduleAPI::GetProgressMsg(), CAttrListParser::NextAttribute(), SNetServerConnectionImpl::ReadCmdOutputLine(), CNetCacheWriter::TransmitImpl(), CNSClientId::Update(), CWriteDB_Impl::x_GetFastaReaderDeflines(), CGFFReader::x_ParseV2Attributes(), IRWRegistry::x_Read(), and CCompoundIDDumpParser::x_ReadString().

◆ ParseQuoted()

string NStr::ParseQuoted ( const CTempString  str,
size_t *  n_read = NULL 
)
static

Discard C-style backslash escapes and extract a quoted string.

Parameters
[in]strThe original string to extract a quoted string from. It must start with a double quote.
[out]n_readHow many symbols the quoted string occupied in the original string.
Returns
The extracted string, un-escaped and with the quotes removed. Throw an exception on format error.

Definition at line 4927 of file ncbistr.cpp.

Referenced by g_ProcessJobInfo(), g_UnquoteIfQuoted(), CJsonNode::GuessType(), CAttrListParser::NextAttribute(), and CJsonParser::ParseString().

◆ PEqualNocase_Conditional_Generic()

Construction.

Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 4995 of file ncbistr.hpp.

◆ PNocase_Conditional_Generic()

template<typename T >
PNocase_Conditional_Generic< T >::PNocase_Conditional_Generic ( NStr::ECase  case_sens = NStr::eCase)
inline

Construction.

Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 5851 of file ncbistr.hpp.

◆ PrintableString()

string NStr::PrintableString ( const CTempString  str,
NStr::TPrintableMode  mode = fNewLine_Quote | fNonAscii_Passthru 
)
static

Get a printable version of the specified string.

All non-printable characters will be represented as "\a", "\b", "\f", "\n", "\r", "\t", "\v", "\'", "\"", "\\", etc. or "\ooo" where 'ooo' is an octal code of the character. The resultant string is a well- formed C string literal, which, without alterations, can be compiled by a C/C++ compiler. Potential tri-graphs are taken care of, too. In many instances, octal representations of non-printable characters can be reduced to take less than all 3 digits, if there is no ambiguity in the interpretation. fPrintable_Full cancels the reduction, and forces to produce the full 3-digit octal codes throughout.

Parameters
strThe string whose printable version is wanted.
modeHow to display the string. The default setting of fNewLine_Quote displays the new lines as "\n", and uses the octal code reduction. When set to fNewLine_Passthru, the line breaks are actually produced after each "\n" but preceded with trailing backslashes.
Returns
Return a printable version of "str".
See also
ParseEscapes, Escape, CEncode, CParse, Sanitize

Definition at line 3953 of file ncbistr.cpp.

Referenced by CCgiCookies::Add(), AddParameterToDiff(), SNetCacheAPIImpl::AppendClientIPSessionIDPasswordAgeHitID(), CNetCacheKey::Assign(), CGridCommandLineInterfaceApp::Cmd_Replay(), CNetScheduleNotificationHandler::CmdAppendTimeoutGroupAndClientInfo(), CNetScheduleKey::CNetScheduleKey(), SQueueParameters::ConfigSection(), SQueueParameters::Diff(), CLDS2_Database::Dump(), IRegistry::EnumerateEntries(), IRegistry::EnumerateInSectionComments(), SNetScheduleSubmitterImpl::FinalizeRead(), CClientPseudoTypeStrings::GenerateClassCode(), IRegistry::Get(), IRegistry::GetComment(), CDB_Object::GetLogString(), CSpectrumSet::GetMGFBlock(), SQueueParameters::GetPrintableParameters(), CJobEvent::GetQuotedErrorMsg(), CJob::GetQuotedInput(), CJob::GetQuotedOutput(), IRegistry::HasEntry(), CTLibContext::InitApplicationName(), SNetICacheClientImpl::InitiateWriteCmd(), CSpectrumSet::LoadMultDTA(), SNetServiceImpl::MakeAuthString(), SNetICacheClientImpl::MakeStdCmd(), CS2N_Guard::Message(), CPubseqGatewayApp::OnBadURL(), CNetScheduleHandler::OnMessage(), CFastaReader::ParseDefLine(), CWNJobWatcher::Print(), SDebugPrintout::Print(), CNSClient::Print(), CGridCommandLineInterfaceApp::PrintJobAttrsAndDumpInput(), PrintJSONNode(), CGridCommandLineInterfaceApp::PrintNetScheduleStats(), CNetCacheAdmin::PrintStat(), CRegexpTemplateTester::PrintVar(), CRegexpTemplateTester::PrintVars(), CPrintJobInfo::PrintXput(), CNetICacheClientExt::ProlongBlobLifetime(), CNetCacheAdmin::Purge(), CNetScheduleExecutor::PutFailure(), CNetScheduleExecutor::PutProgressMsg(), CNetScheduleExecutor::PutResult(), CBamIndex::Read(), CJsonOverUTTPReader::ReadMessage(), CNetScheduleExecutor::Reschedule(), CDemoApp::Run(), CSampleObjmgrApplication::Run(), s_CheckKeySubkey(), s_DumpCompoundID(), s_DumpHeader(), s_DumpSparseMap(), s_GetUsageSymbol(), s_HandleError(), s_Printable(), s_ReadMagic(), s_Repr_Value(), s_SerializeJob(), s_WriteToSocket(), CNetScheduleJobSerializer::SaveJobInput(), CNetScheduleJobSerializer::SaveJobOutput(), CNetICacheClient::Search(), SNSAlertAttributes::Serialize(), IRWRegistry::Set(), SNetScheduleAPIImpl::SetAuthParam(), IRWRegistry::SetComment(), CCgiResponse::SetFilename(), CNetCacheAPIParameters::SetPassword(), grid::netschedule::limits::ThrowIllegalChar(), SNetStorage::SLimits::ThrowIllegalChars(), IRWRegistry::Unset(), CCgiCookie::Write(), CIdMapperGCAssembly::x_AddAliasMappings(), CJob::x_AppendAffinity(), CJob::x_AppendGroup(), CJob::x_AppendInput(), CJob::x_AppendNcbiPhid(), CJob::x_AppendOutput(), CJob::x_AppendRemoteClientIP(), CJob::x_AppendRemoteClientSID(), CCgiCookie::x_CheckField(), CVDBValue::x_Get(), CNetStorageHandler::x_OnSocketWriteError(), CRegexpTemplateTester::x_Op_Skip(), CRegexpTemplateTester::x_Op_Test(), CNetScheduleHandler::x_PrintGetJobResponse(), CNSGroupsRegistry::x_PrintOne(), CNSScopeRegistry::x_PrintOne(), CNSAffinityRegistry::x_PrintOne(), CNetScheduleHandler::x_ProcessGetMessage(), CNetScheduleHandler::x_ProcessQueueInfo(), CNetScheduleHandler::x_ProcessStatus(), CTar::x_ReadEntryInfo(), CCgiEntryReaderContext::x_ReadURLEncodedEntry(), CSharedHitId::x_SetHitId(), and CSrcChkApp::xTryProcessIdFile().

◆ PtrToString() [1/2]

string NStr::PtrToString ( const void *  ptr)
static

Convert pointer to string.

Parameters
strPointer to be converted.
Returns
  • If conversion succeeds, set errno to zero and return the converted string value representing the pointer.
  • Otherwise, set errno to non-zero and return empty string.

Definition at line 2761 of file ncbistr.cpp.

◆ PtrToString() [2/2]

void NStr::PtrToString ( string out_str,
const void *  ptr 
)
static

◆ push_back() [1/2]

template<class TPosContainer >
void CStrTokenPosAdapter< TPosContainer >::push_back ( string::size_type  pos)
inline

◆ push_back() [2/2]

void CStrDummyTokenPos::push_back ( string::size_type  )
inline

Definition at line 57 of file ncbistr_util.hpp.

◆ Quote()

string NStr::Quote ( const CTempString  str,
char  quote_char = '"',
char  escape_char = '\\' 
)
static

Quote string (generic version).

Prepend and append a specified quote character, but escaping any occurrence of the quote character using either a specified escape character (default '\') or as option, by doubling the quoting character if escape character is the same (e.g. like the single quote in SQL, double-quote in CSV).

Parameters
strThe string to be quoted.
quote_charCharacter used for quoting, default to double quote '"'.
escape_charCharacter used for escaping other quote characters inside string (default '\'). Each <quote_char> in the string will be replaced with pair "escape_char + quote_char". Each <escape_char> in the string will be replaced with pair "escape_char + escape_char".
Returns
Quoted string.
See also
Unquote, ParseQuoted, CEncode

Definition at line 3897 of file ncbistr.cpp.

Referenced by CCassPrm::AsStringForDebug(), CCassConnection::Prepare(), ProduceCassandraFutureErrorMessage(), ProduceCassandraQueryErrorMessage(), CCassQuery::Restart(), NMacroUtil::TransformForCSV(), and CCassQuery::Wait().

◆ Replace() [1/2]

string NStr::Replace ( const string src,
const string search,
const string replace,
SIZE_TYPE  start_pos = 0,
SIZE_TYPE  max_replace = 0,
SIZE_TYPE num_replace = 0 
)
static

Replace occurrences of a substring within a string and returns the result as a new string.

Parameters
srcSource string from which specified substring occurrences are replaced.
searchSubstring value in "src" that is replaced.
replaceReplace "search" substring with this value.
start_posPosition to start search from.
max_replaceReplace no more than "max_replace" occurrences of substring "search" If "max_replace" is zero(default), then replace all occurrences with "replace".
num_replaceOptional pointer to a value which receives number of replacements occurred.
Returns
A new string containing the result of replacing the "search" string with "replace" in "src"
Note
After replacing each occurence of the "search" string with "replace" this function move current search position behind a new replacement in the resulting string, so it doesn't search over any part of the inserted "replace".
See also
Versioning of Replace() that has a destination parameter to accept result.

Definition at line 3394 of file ncbistr.cpp.

◆ Replace() [2/2]

string & NStr::Replace ( const string src,
const string search,
const string replace,
string dst,
SIZE_TYPE  start_pos = 0,
SIZE_TYPE  max_replace = 0,
SIZE_TYPE num_replace = 0 
)
static

Replace occurrences of a substring within a string.

Parameters
srcSource string from which specified substring occurrences are replaced.
searchSubstring value in "src" that is replaced.
replaceReplace "search" substring with this value.
dstResult of replacing the "search" string with "replace" in "src". This value is also returned by the function.
start_posPosition to start search from.
max_replaceReplace no more than "max_replace" occurrences of substring "search" If "max_replace" is zero(default), then replace all occurrences with "replace".
num_replaceOptional pointer to a value which receives number of replacements occurred.
Returns
Result of replacing the "search" string with "replace" in "src". This value is placed in "dst" as well.
Note
After replacing each occurence of the "search" string with "replace" this function move current search position behind a new replacement in the resulting string, so it doesn't search over any part of the inserted "replace".
See also
Versioning of Replace() that returns a new string.
Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 3314 of file ncbistr.cpp.

Referenced by CSimpleMakeFileContents::SParser::AcceptLine(), CCgiCookies::Add(), CTrackContainer::AddNewTrack(), CLinkUtils::AddSequenceLinks(), CMsvcConfigure::AnalyzeDefines(), CExpansionRule::ApplyRule(), CEditSubpanel::ApplyToAll(), CEditSubpanel::ApplyToSelected(), BioSourceFromImpFeat(), BOOST_AUTO_TEST_CASE(), BrFcgiBookTermToEutilsTerm(), CCddBookRefToEsearchTerm(), CProjectsLstFileFilter::CheckProject(), CInterProcessLock::CInterProcessLock(), CCleanup::CleanupAffil(), CFixForTransSplicing::CollectProteinNames(), CMsvcPrjFilesCollector::CollectSources(), CProjectsLstFileFilter::ConvertToMask(), SBDB_CacheUnitStatistics::ConvertToRegistry(), COperationTiming::COperationTiming(), CreateConfigurableFile(), CHtmlTooltipFormatter::CreateGenomicLink(), CTrackConfigManager::CreateTrackConfig(), CreateUtilityProjectItem(), CMSResponse::CSVString(), CTraversalNode::CTraversalNode(), SAppProjectT::DoCreate(), SLibProjectT::DoCreate(), CSimpleMakeFileContents::Dump(), CMapperFormattingArgs::ExtractAlgorithmOptions(), CVDBBlastUtil::FillVDBInfo(), CSymResolver::FilterDefine(), CFlatSubSourcePrimer::Format(), CCodeGenerator::GenerateFileList(), CNcbiApplogApp::GenerateToken(), CProjBulderApp::GenerateUnixProjects(), CNCBlobStorage::GetBList(), CAlignFormatUtil::GetCustomLinksList(), CAdvStringConstraintPanel< T >::GetDescription(), CTypeStrings::GetDoxygenModuleName(), CMsvcProjectMakefile::GetExtraFiles(), CAlignFormatUtil::GetFASTALinkURL(), CBlastDbMetadata::GetFileName(), CBlastDbFinder::GetFileName(), CGC_Assembly::GetFileSafeName(), CGC_AssemblyUnit::GetFileSafeName(), CHistParamsManager::GetHistParams(), CFeatGlyph::GetHTMLActiveAreas(), CHistogramGlyph::GetHTMLActiveAreas(), CVcfGlyph::GetHTMLActiveAreas(), CAffil::GetLabelV2(), CStringConstraintPanel::GetMacroStringConstraint(), CProjBulderApp::GetRegSettings(), GetStdPath(), CStringConstraintPanel::GetStringConstraint(), CMacroStringConstraintPanel::GetStringConstraint(), CSuspectAddConstraint::GetStringConstraint(), CAdvStringConstraintPanel< T >::GetStringConstraint(), CSubSource::GetSubtypeName(), COrgMod::GetSubtypeName(), GetTitle(), CAlignFormatUtil::GetURLFromRegistry(), CSimpleMakeFileContents::GetValue(), CTextUtil::GetWordFrequencies(), CProjBulderApp::Gui_ConfirmProjects(), CHistParamsManager::HasSettings(), IdentifyLocalId(), CProjectsLstFileFilter::InitFromString(), CHistParamsManager::IsTempSettings(), CAgpErrEx::LineDone(), CDoiLookup::LookupIsojta(), CAlignFormatUtil::MapTemplate(), DTDParser::Modules(), CDiscrepancyPanel::OnClick(), CDiscrepancyPanel::OnDblClk(), CStreamLineReaderConverter::operator++(), ParseAttributes(), XSDParser::ParseElementContent(), CFormattingArgs::ParseFormattingString(), CTrackData::ParseLine(), WSDLParser::ParsePart(), CPythonDiagHandler::Post(), CAgpValidateReader::CIdsNotInAgp::Print(), CAgpErrEx::PrintAllMessages(), printGFF3(), CProjBulderApp::ProcessLocationMacros(), CMsvcSite::ProcessMacros(), CObjectIStreamJson::ReadFileHeader(), CAsnvalThreadState::ReportReadFailure(), s_CollectRelPathes(), CISOJTALookupWithCache::s_DoLookup(), s_EscapeColon(), s_GBSeqStringCleanup(), s_GenerateWeblinks(), s_GetBlastScore(), s_GetGermlineTranslation(), s_GetLinkoutUrl(), s_GetSpecimenVoucherText(), s_HtmlizeStructuredCommentData(), s_LoadTempTrackRecursive(), s_ReplaceArg(), s_RestoreColon(), s_StringsAreEquivalent(), s_TitleFromChromosome(), s_UseThisSeqToTextSeqID(), SDubiousShortSequence::SDubiousShortSequence(), CBrowserUtils::SendToBrowser(), CNetCacheAPIParameters::SetMirroringMode(), NStr::strftime(), CRequestContext::sx_NormalizeContextPropertyName(), CMsvcMetaMakefile::TranslateCommand(), CDllResolver::TryCandidate(), CAsnvalThreadState::ValidateInput(), CAsnvalThreadState::ValidateOneFile(), CAsnvalThreadState::ValidateWorker(), CFileCode::WriteSpecRefs(), CFileCode::WriteUserCopyright(), CDllResolver::x_AddExtraDllPath(), CLinkedFeatsGroup::x_AddFeatHTMLActiveArea(), CLinkUtils::x_AddLink(), CHistParamsManager::x_AddSettings(), SGridWorkerNodeImpl::x_AreMastersBusy(), CTraversalNode::x_CloneWithoutCallers(), CCgiCookie::x_EncodeCookie(), CFtableFormatter::x_FormatQuals(), CNewCleanup_imp::x_GBQualToOrgRef(), CVcfGlyph::x_GetClinVarToolTip(), CWriteDB_Impl::x_GetFastaReaderDeflines(), CMsvcProjectMakefile::x_GetHeaders(), CGencollIdMapper::x_GetIdFromSeqAndSpec(), CFastCgiThreadedRequest::x_ParseEnv(), CNAUtils::x_ParseNAMetaData(), CBedColumnData::xCleanColumnValues(), CBedReader::xCleanColumnValues(), CMicroArrayReader::xCleanColumnValues(), CSrcWriter::xDequotedValue(), CBedAutoSql::xParseAutoSqlColumnDef(), and CBedLineReader::xProcessTrackLine().

◆ ReplaceInPlace()

string & NStr::ReplaceInPlace ( string src,
const string search,
const string replace,
SIZE_TYPE  start_pos = 0,
SIZE_TYPE  max_replace = 0,
SIZE_TYPE num_replace = 0 
)
static

Replace occurrences of a substring within a string.

On some platforms this function is much faster than Replace() if sizes of "search" and "replace" strings are equal. Otherwise, the performance is mainly the same.

Parameters
srcString where the specified substring occurrences are replaced. This value is also returned by the function.
searchSubstring value in "src" that is replaced.
replaceReplace "search" substring with this value.
start_posPosition to start search from.
max_replaceReplace no more than "max_replace" occurrences of substring "search" If "max_replace" is zero(default), then replace all occurrences with "replace".
Note
After replacing each occurence of the "search" string with "replace" this function move current search position behind a new replacement in the resulting string, so it doesn't search over any part of the inserted "replace".
Parameters
num_replaceOptional pointer to a value which receives number of replacements occurred.
Returns
Result of replacing the "search" string with "replace" in "src".
See also
Replace
Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 3405 of file ncbistr.cpp.

Referenced by AdjustSpecificHostForTaxServer(), CTrackConfigManager::AdjustTrackOrder(), CMsvcConfigure::AnalyzeDefines(), CSamplePhoneHomePolicy::Apply(), CExpansionRule::ApplyRule(), CConvertComment::ApplyToComment(), AssignFuzzySimpleNtSite(), AssignIntronSite(), CGRPCServerCallbacks::BeginRequest(), NMItemData::CheckTableNameAndColumns(), CPCRPrimerSeq::Clean(), CGb_qual::CleanupAndRepairInference(), CGb_qual::CleanupRptUnitRange(), CMemoryFileMap::CMemoryFileMap(), CNcbiLogFields::CNcbiLogFields(), CTraversalSpecFileParser::CDescFileNode::ConvertToMemberMacro(), CCulturedTool::CorrectBioSource(), CReportItemFactory::Create(), CreateActionBiosource(), CreateActionDesc(), CCompareWithBiosample::CreateBiosampleUpdateWebService(), CSingleGbQualSubPanel::CreateControls(), CSQLITE3_BlobCacheCF::CreateInstance(), CReportItem::CreateReportItem(), pub_report::CPubData::CreateTitleWords(), SAppProjectT::DoCreate(), CDependent_field_rule::DoesStringMatchRuleExpression(), CField_rule::DoesStringMatchRuleExpression(), CStringConstraint::DoesTextMatch(), SMakeProjectT::DoResolveDefs(), CGBSeqFormatter::EndSection(), CRemoteAppLauncher::ExecRemoteApp(), CReportNode::Export(), SBuildInfo::ExtraNameXml(), CObjectIStreamJson::FindDeep(), CFixProductNames::FixCaps(), FixHumanHost(), CSubSource::FixLatLonFormat(), FixOrgNames(), CName_std::FixSuffix(), SrcEditDialog::FixTableAfterImport(), FixTableAfterImport(), FixTextInObject(), FixUSAAbbreviationInAffil(), CDiscrepancySet::Format(), CFlatSubSourcePrimer::Format(), CGBSeqFormatter::FormatAccession(), CGBSeqFormatter::FormatContig(), CGBSeqFormatter::FormatDefline(), CGBSeqFormatter::FormatFeature(), CGenbankFormatter::FormatFeature(), CGBSeqFormatter::FormatGap(), CGBSeqFormatter::FormatGenomeProject(), CGBSeqFormatter::FormatKeywords(), CGBSeqFormatter::FormatLocus(), CGBSeqFormatter::FormatPrimary(), CGBSeqFormatter::FormatReference(), CGBSeqFormatter::FormatSegment(), CGBSeqFormatter::FormatSequence(), CGBSeqFormatter::FormatSource(), CGBSeqFormatter::FormatVersion(), g_ServerInfoToJson(), CTraversalNode::GenerateCode(), CProjBulderApp::GenerateMsvcProjects(), CProjectsLstFileFilter::GetAllowedTagsInfo(), GetBarcodeId(), GetCanadaStateAbbreviation(), CTempTrackProxy::GetChildTempTrack(), CAddDefLineDlg::GetCommand(), CAddSecondary::GetCommand(), CUpdateTLSNameDlg::GetCommand(), CStructuredCommentCommandConverter::GetCommandFromValuesTable(), NMItemData::GetEditableFieldForPair(), CGeneFieldPanel::GetFieldName(), CProteinFieldPanel::GetFieldName(), NMItemData::GetFuncFromTable_Depr(), CApplyFeatQualTreeItemData::GetFunction(), CConvertLocTypeTreeItemData::GetFunction(), CRemoveDbXrefTreeItemData::GetFunction(), CMacroEditorContext::GetGUIFieldName(), CFeatGlyph::GetLabel(), CCit_let::GetLabelV2(), GetLowTrace(), CMTreeItemDataBuilder::GetMActionType(), CSpectrumSet::GetMGFBlock(), CMsvc7RegSettings::GetMsvcSection(), CSimpleMakeFileContents::GetPathValue(), CFeatureFieldNamePanel::GetQualifierName(), CConvertFeatDlg::GetQualList(), NMItemData::GetResolveFuncForApplyAuthors(), NMItemData::GetResolveFuncForDBLink(), NMItemData::GetResolveFuncForDbXref(), NMItemData::GetResolveFuncForGeneQuals(), NMItemData::GetResolveFuncForMultiValuedQual(), NMItemData::GetResolveFuncForPubQual(), NMItemData::GetResolveFuncForPubQualConst(), NMItemData::GetResolveFuncForQual(), NMItemData::GetResolveFuncForStrCommQual(), NMItemData::GetResolveFuncForSVPart(), CRemoteBlast::GetResultSet(), CApplyRNAITSDlg::GetRNAITSList_AlignCoordFromDlg(), CApplyRNAITSDlg::GetRNAITSList_SeqCoordFromDlg(), GetRuleMatch(), CCgiContext::GetSelfURL(), GetSequenceStringFromLoc(), CAllOtherFeaturesTrackFactory::GetSettings(), GetStateAbbreviation(), CCommentItem::GetStringForBaseMod(), CCommentItem::GetStringForTPA(), IMacroBioDataIter::GetUnMatchedTableEntries(), GetValidatorLocationLabel(), CInferencePanel::GetValue(), CEditingActionDescAuthorNameList::GetValue(), CSwapCdsGeneProtTreeItemData::GetVariables(), CSwapFeatQualTreeItemData::GetVariables(), HarmonizeAttributeName(), CAuthorNamesContainer::ImportAuthorsFromFile(), CSimpleBlobStore::Init(), CFeatureFilter::Init(), CProjectsLstFileFilter::InitFromFile(), CProjectsLstFileFilter::InitFromString(), CStringConstraint::IsInRange(), CMsvcSite::IsLibOk(), CAssemblyInfo::IsSameAssembly(), ITreeMacroFunction::JSFilter(), CLoadStructComments::LoadSingle(), CCgiApplication::LogRequest(), CDoiLookup::LookupIsojta(), fix_pub::MUIsJournalIndexed(), CMacroInterpreter::NormalizeFieldForFeatPanel(), NMItemData::NormalizeFieldForFeatPanel(), CDirEntry::NormalizePath(), CMacroWordSubstitutionDlg::OnAdd(), CWordSubstitutionDlg::OnAdd(), CSeqTableGridPanel::OnCellDoubleLeftClick(), CSeqTableGridPanel::OnCellDoubleLeftClick2(), CJobResultsDlg::OnExportClick(), CMacroParamsPanel::OnPropertyChanged(), CFindASN1Dlg::OnReplaceButton(), CNewCleanup_imp::OrgmodBC(), CGb_qual::ParseInferenceString(), variation_ref::CVariationUtil::PrecursorToProt(), PrintBioseqXML(), CBlastFormatterVdbApp::PrintFormattedOutput(), CHttpRequest::PrintLogFields(), CDiagContext::PrintStart(), CDataTool::ProcessData(), CNewCleanup_imp::ProtNameBC(), CFieldHandler::QualifierNamesAreEquivalent(), QualifierNamesAreEquivalent(), CHgvsReader::ReadSeqAnnot(), CProjBulderApp::RegisterProjectWatcher(), CNcbiEnvRegMapper::RegToEnv(), RemoveFieldNameFromString(), RemoveStrain(), ReplaceIfNotFound(), CProjBulderApp::ReportGeneratedFiles(), CEditingActionBiosourceTaxnameAfterBinomial::ResetValue(), CSymResolver::Resolve(), CCgiContext::RetrieveTrackingId(), CExplodeRNAFeats::RNAWordsFromString(), CHydraServer::RunHydraSearch(), s_BaseDir(), s_CalculateMatchingColumns(), CCleanup::s_CleanupNameStdBC(), s_CorrectTildes(), s_EscapeDash(), CFeatureFieldNamePanel::s_FillFeatQualList(), s_FindPathToGeneInfoFiles(), s_FindPathToWM(), CMacroFunction_FixPubCaps::s_FixCapsInPubAffil_Affil(), CMacroFunction_FixPubCaps::s_FixCapsInPubAffil_City(), CMacroFunction_FixPubCaps::s_FixCapsInPubAffil_Country(), CMacroFunction_FixPubCaps::s_FixCapsInPubAffil_Div(), CMacroFunction_FixPubCaps::s_FixCapsInPubAffil_Street(), CMacroFunction_FixPubCaps::s_FixCapsInPubAffil_Sub(), IAuthorEditor::s_FixInitialsNew(), CMacroFunction_FixProteinFormat::s_FixProteinNameFormat(), s_GenerateWeblinks(), CApplyFeatTableTreeItemData::s_GetFunction(), s_GetModifierName(), s_GetRadioBoxLabelForItem(), s_HarmonizeString(), s_HeaderToHttp(), variation::CHgvsParser::s_hgvs_iupacaa2ncbieaa(), variation_ref::CHgvsParser::s_hgvsaa2ncbieaa(), variation_ref::CHgvsParser::s_hgvsUCaa2hgvsUL(), CSeqFeatData::s_InitSubtypesTable(), s_IsTokenDouble(), s_MatchesFieldName(), s_PreprocessNoteMods(), s_RemoveSpacesWithinNumbers(), s_ReplaceCtrlAsInTitle(), s_SaveDbMap(), s_SetTrnaProduct(), s_SplitKV(), s_StringsAreEquivalent(), s_ToArchiveName(), variation_ref::CVariationUtil::s_UntranslateProt(), variation::CVariationUtil::s_UntranslateProt(), s_VT_Descr(), NSnpGui::SelectClinSigTerm(), SeqIdToIdentifier(), SSnpFilter::SerializeFrom(), CArchive::SetBaseDir(), CBioSource::SetDisableStrainForwarding(), SetEnvSampleFixAmplifiedPrimers(), SetExceptFromGbqual(), CFeatureFieldNamePanel::SetFieldName(), CSubPrep_panel::SetSubmissionNotReady(), CEditingActionBiosourceTaxnameAfterBinomial::SetValue(), CBioSource::ShouldIgnoreConflict(), sParseRange(), SPPostProcVarSeq(), sPrepareDBDescr(), CUnculTaxTool::StandardFixes(), CGBSeqFormatter::StartSection(), NStr::strftime(), NMacroUtil::StringsAreEquivalent(), StripSpaces(), CSymResolver::StripSuffix(), CDiscrepancyVisitorImpl< _Name >::Summarize(), sx_MakeUniqueId(), CLocationListCtrl::TransferDataFromWindow(), CSequencingTechnologyPanel::TransferDataFromWindow(), CTitlePanel::TransferDataFromWindow(), CSerialAsciiTextValidator::TransferFromWindow(), CRowReaderStream_Excel_CSV::Translate(), CRowReaderStream_IANA_CSV::Translate(), CCodeGenerator::UndoGenerateCode(), NMItemData::UpdateConstraintsForFeatures(), CwxMarkerInfoPanel::UpdateMarker(), CValidError_imp::ValidateAuthorList(), CValidError_imp::ValidateOrgRef(), CValidError_imp::ValidateSubSource(), CMsvcConfigure::WriteBuildVer(), CMsvcConfigure::WriteExtraDefines(), CCgiResponse::WriteHeader(), CObjectOStreamJson::WriteKey(), CMsvcConfigure::WriteNcbiconfMsvcSite(), CLinkUtils::x_AddDbxrefFeatureLinks(), CSourceModParser::x_ApplyMods(), CGencollIdMapper::x_ApplyPatternToId(), CAppendModToOrg::x_ApplyToBioSource(), CFixCountryCap::x_ApplyToCAffil(), CFixAffilCap::x_ApplyToCAffil(), x_CleanAndCompress(), CGb_qual::x_CleanupRptAndReplaceSeq(), CNewCleanup_imp::x_CleanupRptUnit(), CFeatureGenerator::SImplementation::x_ConstructRnaName(), CMacroInterpreter::x_ConvertLocTypeValidateArgs(), CHgvsProtIrepReader::x_ConvertToNcbieaa(), CHgvsNaIrepReader::x_CreateIUPACna(), CTraversalNode::x_ExtractIncludePathFromFileName(), CMacroInterpreter::x_FindFeatureType(), CMacroFunction_FixPubCaps::x_FixCapsInPubAffilCountry(), CPubseqGatewayApp::x_FixIntrospectionVersion(), CStrainSerotypeInfluenza::x_FixupOrganismNames(), CGBSeqFormatter::x_FormatAltSeq(), CValidErrorFormat::x_FormatGenericForSubmitterReport(), CPSGS_IPGResolveProcessor::x_FormSeqId(), CGapStatsApplication::x_GapNameToGapXMLNodeName(), CCommentItem::x_GatherDescInfo(), CReferenceItem::x_GatherRemark(), CMacroEditorContext::x_GetAsnPathToCdsGeneProt(), CMacroEditorContext::x_GetAsnPathToFeatQuals(), CRelaxedLookupDlg::x_GetCitMatchSearchTerms(), CVcfGlyph::x_GetClinVarToolTip(), CWriteDB_Impl::x_GetFastaReaderDeflines(), CStructuredCommentPanel::x_GetFields(), CMacroEditorContext::x_GetGUIFieldForCdsGeneProtRna(), CAuthor::x_GetLabelV2(), CLocAndGCodePanel::x_GetLocation(), CMacroAdvStringConstraintPanel< T >::x_GetMatchText(), CFastaOstreamEx::x_GetOtherIdString(), CAutoDefNcRNAClause::x_GetProductName(), CPrimaryItem::x_GetStrForPrimary(), CFeatureItem::x_ImportQuals(), CMacroInterpreter::x_InsertFeatureType(), CGenbankFormatter::x_Medline(), SDiagMessage::x_OldWrite(), CPSGS_IPGResolveProcessor::x_PrepareRequestOnResolvedlValues(), CAgpValidateReader::x_PrintTotals(), variation_ref::CHgvsParser::x_raw_seq(), variation::CHgvsParser::x_raw_seq(), CTrackContainer::x_ReinitNATrack(), CLocAndGCodePanel::x_SetLocation(), CBioSourcePanel::x_SetOrganismInfo(), CDeflineGenerator::x_SetTitleFromNC(), CDeflineGenerator::x_SetTitleFromNM(), CUnorderedSplitter::x_SplitDeltaExt(), CUnorderedSplitter::x_SplitSeqData(), CUnculturedTool::x_StandardFixes(), CFormatGuess::x_StripJsonKeywords(), CFormatGuess::x_StripJsonPunctuation(), CGBSeqFormatter::x_StrOStreamToTextOStream(), CTraversalNode::x_TemplatizeType(), CRemoveGeneXrefTreeItemData::x_TranslateType(), CValidError_imp::x_ValidatePages(), CRNAValidator::x_ValidateTrnaCodons(), CQualCleanup::xCleanStripBlanks(), CSrcWriter::xCompressFieldName(), and CUCSCRegionReader::xParseFeatureUCSCFormat().

◆ ReportExtra()

template<class TBase >
virtual void CParseTemplException< TBase >::ReportExtra ( ostream &  out) const
inlineoverridevirtual

Report error position.

Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 4442 of file ncbistr.hpp.

◆ Reserve() [1/2]

template<class TV , class TP >
static void CStrDummyTargetReserve< TV, TP >::Reserve ( CStrTokenizeBase ,
TV &  ,
TP &   
)
inlinestatic

Definition at line 82 of file ncbistr_util.hpp.

◆ Reserve() [2/2]

template<class TV , class TP , class TCount >
static void CStrTargetReserve< TV, TP, TCount >::Reserve ( CStrTokenizeBase tokenizer,
TV &  target,
TP &  token_pos 
)
inlinestatic

Definition at line 351 of file ncbistr_util.hpp.

◆ reserve() [1/2]

template<class TPosContainer >
void CStrTokenPosAdapter< TPosContainer >::reserve ( string::size_type  capacity)
inline

◆ reserve() [2/2]

void CStrDummyTokenPos::reserve ( string::size_type  )
inline

Definition at line 58 of file ncbistr_util.hpp.

◆ resize()

template<class TPosContainer >
void CStrTokenPosAdapter< TPosContainer >::resize ( string::size_type  newsize)
inline

◆ rfind() [1/2]

CTempString::size_type CTempString::rfind ( char  match,
size_type  pos = npos 
) const
inline

Find the last instance of a given character string within the current string, beginning at an optional offset.

Definition at line 683 of file tempstr.hpp.

References i, CTempString::length(), CTempString::m_String, match(), and CTempString::npos.

◆ rfind() [2/2]

CTempString::size_type CTempString::rfind ( const CTempString  match,
size_type  pos = npos 
) const
inline

Find the first instance of the entire matching string within the current string in a backward direction, beginning at an optional offset.

Definition at line 705 of file tempstr.hpp.

References CTempString::begin(), CTempString::CTempString(), CTempString::find_last_of(), CTempString::length(), match(), min(), and CTempString::npos.

Referenced by CGRPCServerCallbacks::BeginRequest(), operator<<(), and CTextseq_id::Set().

◆ Sanitize() [1/2]

string NStr::Sanitize ( CTempString  str,
CTempString  allow_chars,
CTempString  reject_chars,
char  reject_replacement = ' ',
TSS_Flags  flags = 0 
)
static

Sanitize a string, allowing only specified characters or character classes.

More customizable version of Sanitize():

  • allow to specify custom sets of allowed and rejected characters, in addition to predefined classes if specified, see TSS_Flags;
  • allow to specify replacement character for rejected symbols; By default:
  • replace all rejected characters with <reject_replacement>;
  • merge coalescent spaces and <reject_replacement>s (separately if differ);
  • truncate leading and trailing spaces. Filters check order:
  • character classes via flags. Note, that if no character classes are set, and no custom <allow_chars> or <reject_chars>, fSS_print will be used;
  • <allow_chars> if not empty, have priority over flags.
  • <reject_chars> if not empty, have priority over flags and <allow_chars> if have intersections.
    Note

All coalescent leading/trailing spaces also will be merged by default if fSS_NoMerge has not specified.

  • The truncation of leading/trailing spaces is doing after allowing/rejecting characters.
    Note
    Spaces processes after checks on allowance, so if it isn't allowed it will be threatened as regular rejected character.
    Parameters
    strString to sanitize.
    allow_charsAdditional list of allowed characters, in addition to character classes in <flags>. Have priority over character classes. Use NStr::Join() if you have it in list<>, vector<> or set<>.
    reject_charsAdditional list of rejected characters, in addition to character classes in <flags>. Have priority over character classes and <allow_chars>. Use NStr::Join() if you have it in list<>, vector<> or set<>.
    reject_replacementReplacement character for all rejected characters.
    flagsAlternative sanitation options. If no custom <allow_chars> or <reject_chars>, and no character classes are set, then use fSS_print by default. If <reject_chars>, no class, and no fSS_Reject flag, then all characters allowed except <reject_chars>. If <allow_chars>, no class, and fSS_Reject flag, then no any character allowed except <allow_chars>.
    Returns
    Sanitized string
    See also
    PrintableString, Join

Definition at line 3609 of file ncbistr.cpp.

References CTempString::empty(), CTempString::find(), flags, NStr::fSS_alnum, NStr::fSS_alpha, NStr::fSS_cntrl, NStr::fSS_digit, NStr::fSS_NoMerge, NStr::fSS_NoTruncate_Begin, NStr::fSS_NoTruncate_End, NStr::fSS_print, NStr::fSS_punct, NStr::fSS_Reject, NStr::fSS_Remove, isalnum(), isalpha(), iscntrl(), isdigit(), isprint(), ispunct(), last(), NPOS, out(), SS_ADD_CHAR, and str().

◆ Sanitize() [2/2]

static string NStr::Sanitize ( CTempString  str,
TSS_Flags  flags = fSS_print 
)
inlinestatic

Sanitize a string, allowing only specified classes of characters.

By default:

  • replace all non-printable characters with spaces;
  • merge coalescent spaces;
  • truncate leading and trailing spaces.
    Note

All coalescent leading/trailing spaces also will be merged by default if fSS_NoMerge has not specified.

  • The truncation of leading/trailing spaces is doing after allowing/rejecting characters. Depending on the specified flags, all rejected characters adjacent to it can be treat as part of leading/trailing spaces.
    Parameters
    strString to sanitize
    flagsAlternative sanitation options
    Returns
    Sanitized string
    See also
    PrintableString

Definition at line 2876 of file ncbistr.hpp.

References flags, and str().

Referenced by CGridCgiContext::AddTagMap(), CpTheQualValue(), CpTheQualValueNext(), pub_report::CPubData::CreateFullTitle(), pub_report::CPubData::CreateTitleWords(), embl_refs(), CSubSource::FixLatLonFormat(), gb_refs_common(), CRemoteAppVersion::Get(), get_art(), get_book(), get_error(), get_pat(), get_sub(), get_sub_gsdb(), get_thesis(), get_unpub(), get_whole_book(), GetCitBookOld(), GetCitSubmit(), fix_pub::MUIsJournalIndexed(), CBlastAppDiagHandler::Post(), CNcbiApplogApp::Redirect(), RemoveAffilStreetEnd(), s_RetrieveMessage(), SPFeatGeneral(), SprotRefString(), CRelaxedLookupDlg::x_GetCitMatchSearchTerms(), CSharedHitId::x_SetHitId(), and XMLRefs().

◆ SetCase()

template<typename T >
void PNocase_Conditional_Generic< T >::SetCase ( NStr::ECase  case_sens)
inline

◆ SetDecoder()

template<class TContainer >
void CStringPairs< TContainer >::SetDecoder ( IStringDecoder decoder,
EOwnership  own = eTakeOwnership 
)
inline

Set string decoder.

Parameters
decoderString decoder (Url, Xml etc.)
ownDecoder ownership flag
Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 4673 of file ncbistr.hpp.

Referenced by CNcbiResourceInfo::CNcbiResourceInfo().

◆ SetDelim()

void CStrTokenizeBase::SetDelim ( const CTempString delim)
inline

◆ SetEncoder()

template<class TContainer >
void CStringPairs< TContainer >::SetEncoder ( IStringEncoder encoder,
EOwnership  own = eTakeOwnership 
)
inline

Set string encoder.

Parameters
encoderString encoder (Url, Xml etc.)
ownEncoder ownership flag
Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 4684 of file ncbistr.hpp.

Referenced by CNcbiResourceInfo::CNcbiResourceInfo().

◆ SetString()

void CEncodedString::SetString ( const CTempString  s,
NStr::EUrlEncode  flag = NStr::eUrlEnc_SkipMarkChars 
)

Set new original string.

Definition at line 7307 of file ncbistr.cpp.

Referenced by CRequestContext::Clone(), CRequestContext::SetSessionID(), and CRequestContext::UnsetSessionID().

◆ ShellEncode()

string NStr::ShellEncode ( const string str)
static

Quotes a string in Bourne Again Shell (BASH) syntax, in a way that disallows non-printable characters in the result.

This function does NOT implement aesthetically optimal quoting, but does try to avoid redundant quoting in simpler cases. Also, since it implements BASH syntax, the result may be incompatible with Bourne syntax, and may be non-obvious to people who are not familiar with the extended quoting syntax.

Note
The BASH shell has extensions beyond Bourne Shell quoting. Also, this is very different from C Shell quoting, and MS Windows Command Prompt quoting rules.

Definition at line 4680 of file ncbistr.cpp.

Referenced by CNcbiApplicationAPI::AppStart().

◆ size() [1/2]

template<class TPosContainer >
string::size_type CStrTokenPosAdapter< TPosContainer >::size ( void  )
inline

◆ size() [2/2]

CTempString::size_type CTempString::size ( void  ) const
inline

Return the length of the represented array.

Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 327 of file tempstr.hpp.

References CTempString::m_Length.

Referenced by CSeqTableLocColumns::AddColumn(), CDelta_ext::AddLiteral(), SAccGuide::AddRule(), CBuildDatabase::AddSequences(), CGenbankFormatterWrapDest::Append(), CTitleParser::Apply(), CNCBlobKey::Assign(), CTempString::assign(), CTL_Cmd::AssignCmdParam(), CEndpointKey::CEndpointKey(), variation::CVariationUtil::ChangeToDelins(), variation_ref::CVariationUtil::ChangeToDelins(), CleanAndCompress(), CEntropyCalculator::ComputeEntropy(), ComputeNormalizedEntropy(), ComputeNormalizedProteinEntropy(), CEntropyCalculator::ComputeSlidingWindowEntropy(), CWGSDb_Impl::DetermineFeatLocIdType(), CExtraEncoder::Encode(), FindNextEntryBuf(), ICitationBase::FixPages(), CGb_qual::FixRecombinationClassValue(), variation::CVariationUtil::CCdregionIndex::GetCachedLiteralAtLoc(), CRR_Util::GetFieldValueConverted(), CAnnotObject_Info::GetLocsTypes(), CWGSFeatureIterator::GetSeq_feat(), CNCDistributionConf::GetSlotByNetCacheKey(), impl::GetValidUTF8Len(), GetWGSMasterSeq_id(), CTitleParser::HasMods(), CDB_BigDateTime::Identify(), CSeq_id::IdentifyAccession(), CNCBlobKeyLight::KeyForLogs(), CNCBlobKeyLight::KeyVersion(), CBamRefSeqInfo::LoadPileupChunk(), CCSraAlignIterator::MakeFullMismatch(), CWGSDb_Impl::NormalizePathOrAccession(), CPubseqGatewayApp::OnAccessionVersionHistory(), CPubseqGatewayApp::OnAckAlert(), CPubseqGatewayApp::OnGet(), CPubseqGatewayApp::OnGetBlob(), CPubseqGatewayApp::OnGetNA(), CPubseqGatewayApp::OnResolve(), CPubseqGatewayApp::OnShutdown(), PQuickStringLess::operator()(), operator<<(), CRR_Field< TTraits >::operator=(), CNCBlobKeyLight::operator=(), CNCBlobKeyLight::PackBlobKey(), CNetServProtoParserBase::ParseArguments(), CNetServProtoParserBase::ParseCommand(), CDiagCompileInfo::ParseCurrFunctName(), CFastaReader::ParseGapLine(), CSNPBlobId::ParseNA(), CWGSDb_Impl::ParseRowType(), CSourceModParser::ParseTitle(), ParseTrack(), CGFFReader::Read(), CObjectIStreamAsn::ReadDouble(), CAttrListParser::Reset(), s_AddParamName(), s_AddReplacedExt(), s_CheckForFastaTag(), s_EndsWithStrain(), s_GetVDBSeverityTag(), s_HasFastaTag(), s_IdentifySubstitution(), s_ParseCaseVariant(), s_ParseFastaIdString(), s_URLDecode(), s_WriteLine(), CTL_LangCmd::Send(), CSeq_id::Set(), CTL_BCPInCmd::SetHints(), sFindBrackets(), sGetAccession(), sGetMods(), CBlastDbBlob::Size(), SkipTitle(), SkipTitleBuf(), sParseAccessionPrefix(), CWGSDb_Impl::SProtAccInfo::SProtAccInfo(), SSeqIdRange::SSeqIdRange(), NStr::StartsWith(), CBlastDbBlob::Str(), CTempStringEx::substr(), sx_AddAnnotBytes(), sx_AddDescrBytes(), CRowReaderStream_Excel_CSV::Tokenize(), CRowReaderStream_IANA_CSV::Tokenize(), CRowReaderStream_Excel_CSV::Translate(), CRowReaderStream_IANA_CSV::Translate(), CRR_Util::ValidateBasicTypeFieldValue(), VDBLogWriter(), CSrvSocketTask::WriteText(), CWriteDB_IsamIndex::x_AddPdb(), CWriteDB_IsamIndex::x_AddString(), CWriteDB_IsamIndex::x_AddStringData(), CWriteDB_IsamIndex::x_AddTextId(), CDB_Stream::x_Append(), CNCMessageHandler::x_AssignCmdParams(), CTL_BCPInCmd::x_AssignParams(), CPubseqGatewayApp::x_CheckAuthorization(), x_CleanAndCompress(), CWriteDB_Impl::x_ComputeHash(), CBlastDbBlob::x_Copy(), CRR_Row< TTraits >::x_CopyFields(), CRowReaderStream_NCBI_TSV::x_ExtractNames(), CTitleParser::x_FindBrackets(), CSeqDBVol::x_GetFilteredBinaryHeader(), CSeqDBVol::x_GetHdrAsn1(), ICitationBase::x_GetLabelV1(), CAuthor::x_GetLabelV2(), CWig2tableApplication::x_GetParamName(), CWig2tableApplication::x_GetParamValue(), CTL_BCPInCmd::x_GetStringValue(), CNetServProtoParserBase::x_GetToken(), CWig2tableApplication::x_GetWord(), CSeq_id::x_IdentifyAccession(), CString_constraint::x_IsWholeWordMatch(), CBufferedLineReader::x_LoadLong(), CDB_Numeric::x_MakeFromString(), x_MakeTSqlString(), CString_constraint::x_MatchFound(), x_ParseSNP_Info(), CNCMessageHandler::x_ReadAuthMessage(), CNCActiveHandler::x_ReadCopyPut(), CBlastDbBlob::x_ReadRaw(), CBlastDbBlob::x_ReadString(), CRowReaderStream_IANA_CSV::x_SetFieldNames(), CWig2tableApplication::x_SkipWS(), SAccGuide::x_SplitSpecial(), CFeatureTableReader_Imp::x_TokenizeStrict(), and NStr::xx_Join().

◆ SizetToString()

string NStr::SizetToString ( size_t  value,
TNumToStringFlags  flags = 0,
int  base = 10 
)
static

Convert size_t to string.

Parameters
valueValue to be converted.
flagsHow to convert value to string.
baseRadix base. Default is 10. Allowed values are 2..36. Bases 8 and 16 do not add leading '0' and '0x' accordingly. If necessary you should add it yourself.
Returns
  • If conversion succeeds, set errno to zero and return the converted string value.
  • Otherwise, set errno to non-zero and return empty string.
Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 2751 of file ncbistr.cpp.

Referenced by variation::CHgvsParser::AsVariation(), CObjectIStreamAsn::BadStringChar(), Blast_GetSeqLocInfoVector(), BOOST_AUTO_TEST_CASE(), CParseTemplException< CSeqsetException >::CParseTemplException(), CEntrezDB::CreateAnnot_Nuc_Prot(), CSeqDBAliasFile::DebugDump(), CQueryFuncPromoteAndOr::Evaluate(), CQueryFuncPromoteLogic::Evaluate(), CQueryFuncPromoteEq::Evaluate(), CQueryFuncPromoteIn::Evaluate(), CQueryFuncLike::Evaluate(), CQueryFuncPromoteGtLt::Evaluate(), CQueryFuncPromoteBetween::Evaluate(), CArchiveZip::ExtractEntryToCallback(), CArchiveZip::ExtractEntryToFileSystem(), CArchiveZip::ExtractEntryToMemory(), CDense_seg::FillUnaligned(), CArchiveZip::GetEntryInfo(), CDiscrepancyAutofixTreeItemData::GetFunction(), CPrimitiveTypeInfo::GetIntegerTypeInfo(), GetInternalStopErrorMessage(), CValidErrorHandler::GetLabel(), CBioTreeContainerHandler::GetLabel(), CBioseq_set::GetLabel(), GetNextSubitemId(), CObjectOStreamAsn::GetPosition(), CObjectOStreamJson::GetPosition(), CObjectOStreamXml::GetPosition(), GetSequenceProtein(), GetStartCodonErrorMessage(), CTableDataBioTreeContainer::GetStringValue(), CVcfGlyph::GetTooltip(), CGuiObjectInfoSeq_align::GetToolTip(), CGuiObjectInfoSeqFeature::GetToolTip(), CBamLoadOptionPanel::IsInputValid(), CHttpCookie::IsValidValue(), MakeLeftHeader(), CQueryFuncPromoteBase::PreProcess(), CArgDesc::PrintXml(), CBDB_Cache::Purge(), CObjectIStreamAsn::ReadDouble(), CObjectIStreamAsnBinary::ReadDouble(), RegisterTooManyVariantsOfSameMaskingAlgorithm(), CDense_seg::RemapToLoc(), CHugeFileValidator::ReportGlobalErrors(), CHugeFileValidator::ReportPostErrors(), CSeqDB::TSequenceRanges::reserve(), RetrievePartsOfLargeChromosome(), CSeqDescrRetrievalJob::Run(), CSeqAlignCmp::Run(), s_CheckTraceMateAlign(), s_DescribeClones(), s_DumpSequences_wRange(), s_FillModuleListPSAPI(), s_GetAlignmentContent(), s_GetAlignmentTooltip(), s_GetAnnotContent(), NSearchFeatPanel::s_GetSeq_TotalRangeLabel(), s_GetSeq_TotalRangeLabel(), CBDB_FieldString::Set(), CMacroCompoundConstraintPanel::SetConstraints(), CCgiResponse::SetFilename(), sGenerateFields(), CObjectIStreamAsnBinary::SkipFNumber(), CObjectIStreamAsn::SkipSNumber(), CObjectIStreamAsn::SkipUNumber(), CDiscrepancyVisitorImpl< _Name >::Summarize(), CThreadedApp::TestApp_GlobalSyncPoint(), CArchiveZip::TestEntry(), CSourceModParser::SMod::ToString(), CObjectIStreamAsn::UnendedString(), CObjectIStreamAsnBinary::UnexpectedShortLength(), CSearchFormBase::UpdateContextCombo(), CDense_seg::Validate(), CValidError_imp::Validate(), CValidError_bioseq::ValidateDelta(), CValidError_bioseq::ValidateDeltaLoc(), CValidError_graph::ValidateGraphsOnBioseq(), CValidError_bioseq::ValidateRawConst(), CValidError_bioseq::ValidateSeqFeatContext(), CValidError_graph::ValidateSeqGraphContext(), CFeatureTrack::x_AddFeaturesLayout(), CFeatureTrack::x_AddHistogram(), CGeneModelTrack::x_AddLandMarkFeaturesLayout(), CGeneModelTrack::x_AddMainFeaturesLayout(), CSegmentMapTrack::x_AddSegmentMapLayout(), CFeatureGenerator::SImplementation::x_CreateMrnaBioseq(), CTaxTreeToolJob::x_CreateProjectItems(), CTreeBuilderJob::x_CreateProjectItems(), CFeatureGenerator::SImplementation::x_CreateProteinBioseq(), CCpgSearchJob::x_DoSearch(), CItemSelectionPanel::x_FilterItems(), CGeneFileWriter::x_GeneInfo_ParseLine(), CTaxTreeBrowser::x_GetName(), CSeqMarkHandler::x_GetText(), CLinkedFeatsGroup::x_GetUniqueLabel(), CSettingsSet::x_MakeUniqueStyleKey(), CSettingsSet::x_MakeUniqueStyleName(), CGraphTrack::x_OnJobCompleted(), CVcfTrack::x_OnJobCompleted(), CDisplaySeqalign::x_PrepareRowData(), CGeneralFuncLog::x_Print(), CRNAValidator::x_ReportRNATranslationProblems(), CValidError_align::x_ReportSegmentGaps(), CCdregionValidator::x_ReportTranslationMismatches(), CCdregionValidator::x_ReportTranslationProblems(), CCdregionValidator::x_ReportTranslExceptProblems(), CAgpConverter::x_SetChromosomeNameInSourceSubtype(), CAlignmentTrack::x_SetMsg(), CBDB_Cache::x_Store(), CSplitQueryTestFixture::x_TestCContextTranslator(), CItemSelectionPanel::x_UpdateMapWidget(), CTrackContainer::x_UpdateMsg(), CValidError_align::x_ValidateDendiag(), CValidError_align::x_ValidateDenseg(), CValidError_align::x_ValidateDim(), CValidError_bioseq::x_ValidateGeneCDSmRNACounts(), CSingleFeatValidator::x_ValidateGeneXRef(), CValidError_graph::x_ValidateGraphOnDeltaBioseq(), ILocalQueryData::x_ValidateIndex(), CValidError_align::x_ValidatePacked(), CValidError_align::x_ValidateStd(), and CValidError_align::x_ValidateStrand().

◆ SkipDelims()

void CStrTokenizeBase::SkipDelims ( void  )
inline

Skip all delimiters starting from current position.

Definition at line 164 of file ncbistr_util.hpp.

References CStrTokenizeBase::x_SkipDelims().

◆ SNode() [1/2]

CTempStringList::SNode::SNode ( )
inline

Definition at line 107 of file ncbistr_util.hpp.

◆ SNode() [2/2]

CTempStringList::SNode::SNode ( const CTempString s)
inline

Definition at line 108 of file ncbistr_util.hpp.

◆ Split() [1/6]

list< CTempString > & NStr::Split ( const CTempString  str,
const CTempString  delim,
list< CTempString > &  arr,
TSplitFlags  flags = 0,
vector< SIZE_TYPE > *  token_pos = NULL,
CTempString_Storage storage = NULL 
)
static

Definition at line 3475 of file ncbistr.cpp.

References arr, flags, s_Split(), and str().

◆ Split() [2/6]

list< CTempStringEx > & NStr::Split ( const CTempString  str,
const CTempString  delim,
list< CTempStringEx > &  arr,
TSplitFlags  flags = 0,
vector< SIZE_TYPE > *  token_pos = NULL,
CTempString_Storage storage = NULL 
)
static

Definition at line 3491 of file ncbistr.cpp.

References arr, CHECK_SPLIT_TEMPSTRING_FLAGS, flags, s_Split(), NStr::Split(), and str().

◆ Split() [3/6]

list< string > & NStr::Split ( const CTempString  str,
const CTempString  delim,
list< string > &  arr,
TSplitFlags  flags = 0,
vector< SIZE_TYPE > *  token_pos = NULL 
)
static

Split a string using specified delimiters.

Parameters
strString to be split.
delimDelimiter(s) used to split string "str". The interpretation of multi-character values depends on flags: by default, any of those characters marks a split point (when unquoted), but with fSplit_ByPattern, the entire string must occur. (Meanwhile, an empty value disables splitting.)
arrThe split tokens are added to the list "arr" and also returned by the function.
flagsFlags directing splitting, characterized under ESplitFlags.
token_posOptional array for the tokens' positions in "str".
Attention
Modifying source CTempString object or destroying it, will invalidate results.
Returns
The list "arr" is also returned.
See also
ESplitFlags, SplitInTwo, SplitByPattern
Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 3461 of file ncbistr.cpp.

Referenced by CTabDelimitedValidator::_CheckHeader(), CStructuredCommentsReader::_LoadHeaderLine(), CTabDelimitedValidator::_MakeColumns(), CTabDelimitedValidator::_OperateRows(), CDBLinkField::_ParseAndAppend(), CTabDelimitedValidator::_ProcessHeader(), CHttpCookies::Add(), CQueueClientInfoList::AddClientInfo(), NMItemData::AddConstraintIgnoreNewText(), CRefArgs::AddDefinitions(), CPCRSetList::AddFwdName(), CPCRSetList::AddFwdSeq(), CAutoSqlCustomField::AddIntArray(), CIdMapperConfig::AddMapEntry(), CSeqDB_IdRemapper::AddMapping(), CObjectLoadingTask::AddObjects(), CQueryParsePanel::AddQueryText(), CSimpleMakeFileContents::AddReadyKV(), CSrzPath::AddRepPath(), CNcbiResourceInfoFile::AddResourceInfo(), CPCRSetList::AddRevName(), CPCRSetList::AddRevSeq(), SAccGuide::AddRule(), CBAMDataLoader_Impl::AddSrzDef(), CSrcTableDbxrefColumn::AddToBioSource(), CSrcTablePrimerColumn::AddToBioSource(), CSrzPath::AddVolPath(), AgpRead(), CConvertRptUnitRangeToLoc::apply(), CLoadSecondaryAccessions::apply(), NMacroUtil::ApplyAuthorNames(), ApplyDBLinkValuesTableToSeqEntry(), SNSCommandArguments::AssignValues(), BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_SUITE_END(), CDebugDumpViewer::Bpt(), BrBookURLToCCddBookRef(), CProjectTreeBuilder::BuildOneProjectTree(), CAlignSort::CAlignSort(), CCgiResponse::CanSendTrailer(), CCountries::CapitalizeFirstLetterOfEveryWord(), CDB_ODBC_ConnParams::CDB_ODBC_ConnParams(), CDBInterfacesFileConnParams::CDBInterfacesFileConnParams(), CTraversalSpecFileParser::CDescFileNode::CDescFileNode(), CSubSource::CheckDateFormat(), CheckForFreqRatioFile(), CProjectsLstFileFilter::CheckProject(), CId2ReaderBase::CId2ReaderBase(), CIgAnnotationInfo::CIgAnnotationInfo(), CLocalToGeneralId::CLocalToGeneralId(), CMsvcSite::CMsvcSite(), CNcbiLogFields::CNcbiLogFields(), CGridCgiSampleApplication::CollectParams(), CJob::CompareAuthToken(), CCgiStatistics::Compose_Entries(), CCgiApplication::ConfigureDiagFormat(), CDBUDRandomMapper::ConfigureFromRegistry(), CDBUDPriorityMapper::ConfigureFromRegistry(), CDBUniversalMapper::ConfigureFromRegistry(), CICacheCF< CNetICacheClient >::ConfigureTimeStamp(), SMakeProjectT::ConvertLibDepends(), SMakeProjectT::ConvertLibDependsMacro(), CConfig::ConvertRegToTree(), CPSGS_IdModifiedVerFlavorId2Info::CPSGS_IdModifiedVerFlavorId2Info(), CPSGS_SatInfoChunksVerFlavorId2Info::CPSGS_SatInfoChunksVerFlavorId2Info(), CCompareWithBiosample::CreateBiosampleUpdateWebService(), CDriverManager::CreateDsFrom(), SMakeProjectT::CreateIncludeDirs(), CPluginManager< TClass >::CreateInstanceFromList(), CProjectTreeFolders::CreatePath(), pub_report::CPubData::CreateTitleWords(), CRemoteAppLauncher::CRemoteAppLauncher(), CSeqTableSetExt::CSeqTableSetExt(), CStringMatching::CStringMatching(), CWriteDB_CreateAliasFile(), CTrackConfigUtils::DecodeValueRange(), CUser_field::DeleteField(), CDiffText::Diff(), CommandProcessor::DoCommand_Highlight(), CStringConstraint::DoesTextMatch(), pub_report::DoHydraSearch(), SMakeProjectT::DoResolveDefs(), CAliasTest::DoTest(), CBDB_FileDumperApp::Dump(), CDumpSysInfo::DumpSystemInfo(), CFormatGuess::EnsureSplitLines(), CNcbiEnvRegMapper::EnvToReg(), CNewCleanup_imp::Except_textBC(), CAsnObjectLoader::Execute(), CMapperQueryOptionsArgs::ExtractAlgorithmOptions(), CMappingArgs::ExtractAlgorithmOptions(), CExonSelectorApplication::ExtractExonsFromSAM(), ExtractMiddleInitial(), CAlignFormatUtil::ExtractSeqAlignForSeqList(), CGlTextureFont::FaceFromString(), CProjBulderApp::FindDepGraph(), FindFiles(), CSampleLibraryObject::FindInPath(), CNcbiApplicationAPI::FindProgramExecutablePath(), FixCapitalizationInString(), CSubSource::FixLatLonPrecision(), CGb_qual::FixRptTypeValue(), CSubSource::FixSexQualifierValue(), COrgMod::FixStrain(), CFlatSubSourcePrimer::Format(), CGBSeqFormatter::FormatGenomeProject(), CRegistryFile::FromConfigFile(), CAgpRow::FromString(), CRgbaColor::FromString(), g_FindDataFile(), CNewCleanup_imp::GBblockBC(), CCodeGenerator::GenerateClientCode(), CFileCode::GenerateHPP(), CNewCleanup_imp::GenerefBC(), CSynRegistry::CInclude::Get(), CValidError_feat::GetAccessionsFromInferenceString(), CMsvcProjectMakefile::GetAdditionalIncludeDirs(), CMsvcProjectMakefile::GetAdditionalLIB(), CMsvcProjectMakefile::GetAdditionalSourceFiles(), CSeqUtils::GetAlignDbBatch(), CSeqUtils::GetAlignDbIsQuery(), CTrackUtils::GetAllDataKeys(), CGff2Record::GetAttribute(), NSnpGui::GetBinTooltip(), GetBlkDataReplaceNewLine(), CProjBulderApp::GetBuildConfigs(), CCgiRequest::GetCGIEntries(), CBulkCDS::GetCommandFromValuesTable(), CBulkGene::GetCommandFromValuesTable(), CMsvcSite::GetComponents(), CMsvcSite::GetConfigurableRequests(), CMsvcSite::GetConfigureDefines(), CMsvcProjectMakefile::GetCustomBuildInfo(), CDDTypedAnnotDialog::GetData(), CBlastServices::GetDatabaseInfo(), CBlastServices::GetDatabaseInfoLegacy(), CSeqDB::GetDBMetaData(), CMetaRegistry::GetDefaultSearchPath(), CCharHistogram::GetDelimiterProbablities(), CSeqDB::GetDiskUsage(), GetDllsList(), GetEmblOrgRef(), CMsvcProjectMakefile::GetExcludedLIB(), CMsvcProjectMakefile::GetExcludedSourceFiles(), CMsvcProjectMakefile::GetExtraFiles(), CDocsumTableModel::GetExtraValueAt(), CAlignFormatUtil::GetFASTALinkURL(), CAutoDefFeatureClause_Base::GetFeatureClausePhrases(), CUser_field::GetFieldRef(), CUser_object::GetFieldRef(), CApplyBsrcQualTreeItemData::GetFunction(), CApplyFeatQualTreeItemData::GetFunction(), CApplyRNAQualTreeItemData::GetFunction(), CConvertRNAQualTreeItemData::GetFunction(), CConvertCdsGeneProtTreeItemData::GetFunction(), CConvertFeatQualTreeItemData::GetFunction(), CConvertBsrcTreeItemData::GetFunction(), CCopyBsrcTreeItemData::GetFunction(), CCopyRNAQualTreeItemData::GetFunction(), CCopyCdsGeneProtTreeItemData::GetFunction(), CCopyFeatQualTreeItemData::GetFunction(), CEditQualTreeItemData::GetFunction(), CEditFeatQualTreeItemData::GetFunction(), CEditRNAQualTreeItemData::GetFunction(), CFixSrcQualsTreeItemData::GetFunction(), CAutodefTreeItemData::GetFunction(), CParseBsrcTreeItemData::GetFunction(), CParseToBsrcTreeItemData::GetFunction(), CParseToDBLinkTreeItemData::GetFunction(), CParseRNAQualTreeItemData::GetFunction(), CParseFeatQualTreeItemData::GetFunction(), CParseCdsGeneProtTreeItemdata::GetFunction(), CParseBsrcToStructCommTreeItemData::GetFunction(), CRmvBsrcQualTreeItemData::GetFunction(), CRmvFeatQualTreeItemData::GetFunction(), CRmvRNAQualTreeItemData::GetFunction(), CRmvOrgNameTreeItemData::GetFunction(), CRmvOutsideQualTreeItemData::GetFunction(), CRmvOutsideBsrcTreeItemData::GetFunction(), CRmvOutsideRNAQualTreeItemData::GetFunction(), CRmvOutsideFeatQualTreeItemData::GetFunction(), CSwapBsrcTreeItemData::GetFunction(), CSwapRNAQualTreeItemData::GetFunction(), CSwapCdsGeneProtTreeItemData::GetFunction(), CSwapFeatQualTreeItemData::GetFunction(), GetHostedLibs(), CCassConnectionFactory::GetHostPort(), IWMClient::CFingerprint::GetId(), GetIDs(), CComment_set::GetKeywords(), CUrlUtils::GetLastModified(), NSnp::GetLength(), CMsvcSite::GetLibChoiceIncludes(), CMsvcSite::GetLibInfo(), CLinkage_evidence::GetLinkageEvidence(), SInputValidator::GetListenJobs(), CProjBulderApp::GetMetaDataFiles(), CAutoDefFeatureClause_Base::GetMiscRNAElements(), CMsvc7RegSettings::GetMsvcSection(), CMsvcMetaMakefile::GetPchInfo(), CMsvcSite::GetPlatformInfo(), CProjBulderApp::GetProjectTreeInfo(), NMItemData::GetResolveFuncForDestCdsGeneProtQuals(), NMItemData::GetResolveFuncForDestFeatQuals(), NMItemData::GetResolveFuncForGeneQuals(), NMItemData::GetResolveFuncForQual(), NMItemData::GetResolveFuncForRNAQuals(), NMItemData::GetResolveFuncForSrcCdsGeneProtQuals(), NMItemData::GetResolveFuncForSrcFeatQuals(), NMItemData::GetResolveFuncForSwapFeatQuals(), NMItemData::GetResolveFuncForSwapQuals(), CMsvcProjectMakefile::GetResourceFiles(), CNetBLASTLoadOptionPanel::GetRIDs(), GetSequenceOfKeywords(), CFindITSParser::GetSpan(), CMsvcSite::GetStandardFeatures(), GetTargetedLocusNameConsensus(), CSeq_feat::GetTempExceptionTextSet(), CMacroAdvStringConstraintPanel< T >::GetTextConstraint(), CMsvcSite::GetThirdPartyLibsToInstall(), CPhyloTreeLabel::GetToolTipForNode(), CAutoDefFeatureClause_Base::GetTrnaIntergenicSpacerClausePhrases(), CInferencePanel::GetValue(), CDiscrepancyAutofixTreeItemData::GetVariables(), GetVDBScope(), CVDBBlastUtil::GetVDBSeqIdFromOID(), IdentifyLocalId(), CUrlUtils::IfModifiedSince(), CAuthorNamesContainer::ImportAuthorsFromFile(), CCgi2RCgiApp::Init(), SNetCacheAPIImpl::Init(), SNetScheduleAPIImpl::InitAffinities(), CPhyloNodeData::InitFeatures(), CIdMapperConfig::Initialize(), CPslData::Initialize(), impl::CRowInfo_SP_SQL_Server::Initialize(), CMsvcSite::InitializeLibChoices(), InitializeQueryDataLoaderConfiguration(), CViewGraphic::InitView(), InsertList(), InsertListString(), CSubSource::IsCollectionDateAfterTime(), CSubSource::IsCorrectDateFormat(), CSubSource::IsCorrectLatLonFormat(), CMsvcSite::IsLibEnabledInConfig(), CMsvcSite::IsLibOk(), CFormatGuess::IsLineAgp(), CFormatGuess::IsLineGff2(), CFormatGuess::IsLineGff3(), CFormatGuess::IsLineGlimmer3(), CFormatGuess::IsLineGtf(), CFormatGuess::IsLineGvf(), CFormatGuess::IsLinePhrapId(), CFormatGuess::IsLinePsl(), CFormatGuess::IsLineRmo(), CRptTypePanel::IsParseable(), CCDSTranslationPanel::IsValidException(), CSmallDNS::IsValidIP(), CGb_qual::IsValidRptTypeValue(), CSubSource::IsValidSexQualifierValue(), CTable2AsnStructuredCommentsReader::IsVertical(), CVDBBlastUtil::IsWGS(), CMatchFeatureTableDlg::LinearAutomatch(), CMatrixScoringMethod::Load(), CNSStartIDs::Load(), CCompoundRWRegistry::LoadBaseRegistries(), CAgpConverter::LoadChromosomeMap(), CStructuredCommentsReader::LoadComments(), CDataTool::LoadDefinitions(), CProjBulderApp::LoadDepGraph(), CForeignContaminationScreenReportReader::LoadFile(), CTempTrackProxy::LoadFromRegistry(), CTemplateScoringMethod::LoadInfo(), CProjBulderApp::LoadProjectTags(), CCgiSession_NetCache::LoadSession(), CLoadStructComments::LoadSingle(), CId1FetchApp::LookUpFlatSeqID(), NMFncParse::LookupFncArguments(), CDoiLookup::LookupIsojta(), main(), CRebase::MakeREnzyme(), CMemorySrcFileMap::MapFile(), CStringMatching::MatchString(), CNetScheduleNotificationHandler::MkBaseGETCmd(), CDirEntry::NormalizePath(), CWGSDb_Impl::NormalizePathOrAccession(), CMacroWordSubstitutionDlg::OnAdd(), CWordSubstitutionDlg::OnAdd(), CCompareWithBiosample::OnAddToSample(), CCompareWithBiosample::OnAddToSource(), CSeqGraphicWidget::OnAddTrack(), CCompareWithBiosample::OnClickOk(), CPubseqGatewayApp::OnConfig(), CPubseqGatewayApp::OnGetNA(), CUpdateMultiSeq_Dlg::OnLoadMapClick(), CMacroParamsPanel::OnPropertyChanged(), CGenBankLoadOptionPanel::OnRecentAccClicked(), CPubseqGatewayApp::OnStatistics(), CWinMaskCountsGenerator::operator()(), CTestNameToInfoMapLoader::operator()(), operator>>(), CGridCommandLineInterfaceApp::SOptions::SNCID::Parse(), CHttpCookie::Parse(), CEditingActionBiosourceStructuredVoucher::Parse(), CStringPairs< TExtraValuesMap >::Parse(), CCgiRequestProcessor::ParseAcceptHeader(), CTrackMgrClient::ParseAlignId(), ParseAttributes(), CFormattingArgs::ParseFormattingString(), CAgpRow::ParseGapCols(), CFastaReader::ParseGapLine(), CHttpRetryContext::ParseHeader(), CSeq_id::ParseIDs(), CVCFVariantList::ParseLine(), CDBUriConnParams::ParseParamPairs(), CSeqUtils::ParseRanges(), CRepeatMaskerReader::ParseRecord(), ParseSequenceRange(), ParseSequenceRangeOpenEnd(), CBDB_ConfigStructureParser::ParseStructureLine(), CTempTrackProxy::ParseSubtracks(), CNcbiApplogApp::ParseToken(), CGBQualPanel::PopulateGBQuals(), CWordPairIndexer::PopulateWordPairIndex(), CConnTest::PostCheck(), CConnTest::PreCheck(), CLocalVDBBlast::PreprocessDBs(), PrintASN1(), PrintSAM(), CBlastSeqidlistFile::PrintSeqidlistInfo(), CAlignFormatUtil::PrintTildeSepLines(), CSplitCacheApp::Process(), CCgiContext::ProcessCORSRequest(), AlnUtil::ProcessDataLine(), CBam2GraphApp::ProcessFile(), CMsvcSite::ProcessMacros(), CDataTool::ProcessModules(), ProcessSAM(), CBam2GraphApp::ProcessSrz(), CVariantDescriptors::PushBack(), CErrorLogger::PutError(), CMatchFeatureTableDlg::QuadraticAutomatch(), CBioTreeAttrReader::Read(), CGlimmerReader::Read(), CDistanceMatrix::Read(), ReadContainer(), CPhrap_Read::ReadDS(), readGFF3(), readGFF3Gap(), ReadMap(), CRebase::ReadNARFormat(), CPhrap_Contig::ReadTag(), CSearchHelper::ReadTaxFile(), CMsvcProjectMakefile::Redefine(), CCSRADataLoader::RegisterInObjectManager(), CCgiRedirectApplication::RemapEntries(), CSeq_feat::RemoveExceptText(), ReplaceWellknownSeqs(), CMsvcSite::ResolveDefine(), CExec::ResolvePath(), CDemoContigAssemblyApp::Run(), CNgAlignApp::Run(), CBlastdbConvertApp::Run(), CCompactSAMApplication::Run(), CExonSelectorApplication::Run(), CIgBlastnApp::Run(), CSplignApp::Run(), CTax4BlastDemo::Run(), CDiscRepApp::Run(), CPubmedFetchApplication::Run(), SGridWorkerNodeImpl::Run(), CMultiApplication::Run(), CXcompareAnnotsApplication::Run(), CPrimeCacheApplication::Run(), CAsnSubCacheCreateApplication::Run(), CId2FetchApp::Run(), CDemoApp::Run(), CGapStatsApplication::RunNoCatch(), CClientGenomicCollectionsSvcApplication::RunWithService(), s_AddPrimers(), s_AddPubmedLinksRow(), s_AppendPrimerNames(), s_AppendPrimerSeqs(), s_CallAligner(), s_CancelEditingSession(), s_CheckIdLookup(), s_CheckPSGMethod(), s_CheckUniqueValues(), s_ChoiceType(), s_ConfigureDeflineTitle(), s_DoUSAStateCleanup(), s_EditFolder(), s_ExpandThisQual(), s_FindSubNode(), s_GBSeqStringCleanup(), s_GetAuthorNames(), s_GetBoxStyle(), s_GetCSRADBs(), s_GetDefaultParams(), s_GetDetails(), s_GetDiskSpace_PANFS(), s_GetFullLinkoutUrl(), CApplyFeatTableTreeItemData::s_GetFunction(), CApplyCDSGeneProtTableTreeItemData::s_GetFunction(), CApplyRNATableTreeItemData::s_GetFunction(), CApplySrcTableTreeItemData::s_GetFunction(), CCompareSeqRegions::s_GetGeneId(), s_GetLatLong(), s_GetLinkoutUrl(), s_GetMandatoryFields(), CApplyTableItemData::s_GetMatchFieldConstraint(), s_GetPrimerInfo(), s_GetRangeFromString(), s_GetSequenceId(), s_GetSRASeqMetadata(), s_GetTaxIDList(), s_GetWordListFromText(), s_IsAllowedHeaderList(), s_IsAllowedMethod(), s_IsAllowedOrigin(), s_ListLinesWithPattern(), s_Match_id(), CMacroFunction_AuthorFix::s_MoveMiddleToFirst(), s_NormalizeTokens(), s_ParseErrCodeInfoStr(), s_ParseHttpHeader(), s_ParseParentQual(), s_ParsePCRColonString(), s_ParsePCRComponent(), s_ParseSubNodes(), CGenusSpeciesFixup::s_PermuteTaxname(), s_ProcessCellLineLine(), s_ProcessEvidenceString(), s_ProcessInstitutionCollectionCodeLine(), s_ProcessOrgRefMapLine(), s_ProcessQualMapLine(), s_ProjectItemSetDescr(), s_ReadConfig(), s_RemoveAliasComponents(), CMacroFunction_RemoveOrgName::s_RemoveOrgName(), s_RepairISOCollDateTimePair(), s_RepairISOCollDateTimeString(), s_ReplaceLocalId(), s_SaveToSmartClient(), s_SeqDB_TryPaths(), s_SetDBLinkField(), s_SetPrimerNames(), s_SetPrimerSeqs(), s_SetVectorValue(), s_SplitCommaSeparatedStringInParens(), s_SplitGeneSyn(), s_SplitMLAuthorName(), s_TokenizeTRnaString(), s_ValidateCustomDelim(), s_WordsToJsonArray(), CBamUILoadManager::SaveSettings(), CAsnSubCacheCreateApplication::SBlobVersion::SBlobVersion(), SCass_BlobId::SCass_BlobId(), SCmdLineArgListImpl::SCmdLineArgListImpl(), NSNPWebServices::SearchByVarId(), NSnpGui::SelectClinSigTerm(), CRequestContext::SelectLastHitID(), CRequestContext::SelectLastSessionID(), SSnpFilter::SerializeFrom(), CSeq_id::Set(), CGlResMgr::SetApiLevel(), CBamCoverageGraphPanel::SetBamFiles(), CTMgr_ClientInfo::SetContext(), CMacroPanelLoader::SetCtrlValue(), CIdMapperConfig::SetCurrentContext(), CFlexibleDatePanel::SetDate(), SetField(), CUser_object::SetFieldRef(), CUser_field::SetFieldRef(), CClassTypeInfo::SetGlobalHook(), CChoiceTypeInfo::SetGlobalHook(), CEUtils_IdGroupSet::SetGroups(), CNetScheduleAccessList::SetHosts(), CEUtils_IdGroup::SetIds(), ColumnarVcfCache::SetInfoFields(), CTaxIdSet::SetMappingFromFile(), CSeqGraphicPane::SetMarkers(), CBedFeatureRecord::SetRgb(), CSelectionVisitor::SetSelectedObjectSig(), SetSeqAnnotChoiceMask(), SetSeqIdChoiceMask(), CMultipleAssemblyProgramPanel::SetValue(), CEditingActionDescAuthorNameList::SetValue(), CEditingActionFeatTranslExcept::SetValue(), CRptTypePanel::SetValue(), sGetModInfo(), sGetTestParameters(), SkipWeasel(), SOptionOrCommandInfo::SOptionOrCommandInfo(), sParseGeneOntologyTerm(), sParseRange(), NStr::Split(), CCustomTree::Split(), NStr::SplitByPattern(), SplitValues(), sReadAA_I(), sReadAA_M(), CCDDClientPool::StringToBlobId(), CDirEntry::StringToMode(), CSeqUtils::StringToRange(), AlnUtil::StripBlanks(), CRequestContext::sx_GetContextFieldsMask(), CNcbiEncrypt::sx_InitKeyMap(), CHttpCookies::sx_RevertDomain(), CDbTest::Test(), CFormatGuess::TestFormatBed(), CFormatGuess::TestFormatBed15(), CFormatGuess::TestFormatDistanceMatrix(), CFormatGuess::TestFormatTextAsn(), TestOneLatLonCountry(), CBLASTParams::ToArgVec(), CRowReaderStream_CharDelimited< NStr::fSplit_ByPattern, Arguments... >::Tokenize(), CReadUtil::Tokenize(), CGff2Record::TokenizeGFF(), CGAssemblyOtherPanel::TransferDataToWindow(), CGAssemblyPanel::TransferDataToWindow(), CSequencingTechnologyPanel::TransferDataToWindow(), CSubmitterNamePanel::TransferDataToWindow(), CSubmitterPanel_Depr::TransferDataToWindow(), CtmRNASubPanel::TransferDataToWindow(), transform_DD_mm_YYYY(), transform_DD_month_comma_YYYY(), transform_DD_month_YYYY(), transform_mm_DD_YYYY(), transform_MM_YYYY(), transform_month_DD_YYYY(), transform_month_YYYY(), transform_YYYY_MM(), transform_YYYY_mm_DD(), transform_YYYY_month(), CCodeGenerator::UndoGenerateCode(), CTableImportListCtrl::UpdateColumnNames(), CProjBulderApp::UpdateDepGraph(), CApplyFeatTableTreeItemData::UpdateTarget(), CValidError_imp::ValidateOrgModVoucher(), CStyledTextOStream::WriteMultiLineText(), CNgAlignApp::x_AddAligners(), CBlastDBCmdApp::x_AddCmdOptions(), CBlastTabularInfo::x_AddDefaultFieldsToShow(), CDllResolver::x_AddExtraDllPath(), CNgAlignApp::x_AddFilters(), CKeywordsItem::x_AddKeyword(), CAutoDefModifierCombo::x_AddMinicircle(), CFeatureItem::x_AddQualExceptions(), CFeatureItem::x_AddRptUnitQual(), CNgAlignApp::x_AddScorers(), CTar::x_Append(), CArchive::x_Append(), CSourceModParser::x_ApplyGenomeProjectsDBMods(), CSourceModParser::x_ApplyMods(), CSrcTablePrimerColumn::x_ApplyStringToPrimerSet(), CSourceModParser::x_ApplyTPAMods(), CNCMessageHandler::x_AssignCmdParams(), CTooltipFrame::x_BreakIntoLines(), CMakeBlastDBApp::x_BuildDatabase(), SNSCommandArguments::x_CheckAffinityList(), CGLCanvas::x_CheckGlVersion(), SNSCommandArguments::x_CheckGroupList(), CDebugDumpViewer::x_CheckLocation(), CQueueDataBase::x_CheckOpenPreconditions(), CCgiUserAgent::x_CheckPattern(), CFormatGuess::x_CheckStripJsonNumbers(), CPubseqReader::x_ConnectAtSlot(), CPubseq2Reader::x_ConnectAtSlot(), CTaxon1::x_ConvertOrgrefProps(), CSplitDblinkQuals::x_ConvertStrToStrs(), CBLAST_DB_Dialog::x_CreateItems(), CGBDataLoader_Native::x_CreateReaders(), CPubseqGatewayApp::x_CreateRequestContext(), CNgAlignApp::x_CreateSequenceSet(), CGBDataLoader_Native::x_CreateWriters(), CComponentSearchJob::x_DoSearch(), CQueryParsePanel::x_ExecuteQuery(), x_FirstWord(), CColumnarVCFReader::x_GatherSampleColNames(), CNetStorageServer::x_GetAdminClientNames(), CMacroEditorContext::x_GetAsnPathToFeatQuals(), COrgName::x_GetAttribFlag(), COrgName::x_GetAttribValue(), CWigGraph::x_GetBigWigData(), CAsnSubCacheCreateApplication::x_GetBioseqHandle(), CRelaxedLookupDlg::x_GetCitMatchSearchTerms(), CVcfGlyph::x_GetClinVarToolTip(), CBlastDBAliasApp::x_GetDbsToAggregate(), CNcbiEncrypt::x_GetDomainKeys(), CODBC_Connection::x_GetDriverName(), SNSCommandArguments::x_GetDumpFields(), CPubseqGatewayApp::x_GetExcludeBlobs(), CTableReaderMacro::x_GetFunction(), CMsvcProjectMakefile::x_GetHeaders(), CTableReaderMacro::x_GetIterator(), CTableReaderMacro::x_GetMatchFieldConstraint(), CPubseqGatewayApp::x_GetNames(), CBlastVdbCmdApp::x_GetQueries(), CParseQualTreeItemData::x_GetResolveFuncForMultValQuals(), CMakeProfileDBApp::x_GetSMPFilenames(), CVDBBlastUtil::x_GetSRARunAccessions(), CBamUILoadManager::x_GetSrzRefSeqs(), CEditingActionBiosourceTaxnameAfterBinomial::x_GetTextAfterNomial(), CSrcTaxnameAfterBinomialColumn::x_GetTextAfterNomial(), CPubseqGatewayApp::x_GetTimeSeries(), NSnpBins::CGeneMap::x_Init(), CBlastVdbCmdApp::x_InitApplicationData(), CBlastDBCmdApp::x_InitBlastDB_TaxIdList(), CNcbiTestApplication::x_InitCommonParserVars(), CDisplaySeqalign::x_InitDefLinesHeader(), CBioseqIndex::x_InitDescs(), CAsn2FastaApp::x_InitFeatDisplay(), CLatLonCountryMap::x_InitFromDefaultList(), CBamFileInfo::x_Initialize(), CFormatGuess::x_IsBlankOrNumbers(), CStrainSerotypeInfluenza::x_IsParsableInfluenzaVirusName(), CSeqTechDlg::x_IsSpecialTech(), CFeaturePanel::x_LoadSettings(), CAlignmentTrack::x_LoadSettings(), CTaxonCache::x_LoadTaxonCache(), CDiagContext::x_LogEnvironment(), CUpdateAlign::x_MapNonPresentIDs(), CBlastDBCmdApp::x_ModifyConfigForBatchEntry(), CDiagStrErrCodeMatcher::x_Parse(), CGFFReader::x_ParseAlignRecord(), CSplitQueryTestFixture::x_ParseConfigLine(), CRebase::x_ParseCutPair(), CTraversalSpecFileParser::x_ParseDeprecated(), CGFFReader::x_ParseFeatureInterval(), CFindITSParser::x_ParseLine(), CTraversalSpecFileParser::x_ParseOutputClassNameClause(), CSeedTop::x_ParsePattern(), CColumnarVCFReaderApp::x_ParseRange(), CGFFReader::x_ParseStructuredComment(), CGFFReader::x_ParseV3Attributes(), CFindOverlapJob::x_PrepareAligner(), CGenBankLoadOptionPanel::x_ProccessText(), CNetScheduleHandler::x_ProcessChangeAffinity(), CBlast_SAM_Formatter::x_ProcessCustomSpec(), CBlastDBCmdApp::x_ProcessEntry(), CNetScheduleHandler::x_ProcessGetJob(), CMakeClusterDBApp::x_ProcessInputFile(), CNetScheduleHandler::x_ProcessJobExchange(), CMemorySrcFileMap::x_ProcessLine(), CMakeBlastDBApp::x_ProcessMaskData(), CSplignApp::x_ProcessPair(), CNetScheduleHandler::x_ProcessReading(), CFilterColumnsDlg::x_ProcessSelectionPattern(), CNetScheduleHandler::x_ProcessSetAffinity(), SPubseqGatewaySettings::x_ReadAdminSection(), CArchive::x_ReadAndProcess(), CTar::x_ReadAndProcess(), SErrorEmulatorParameter::x_ReadCommon(), CNcbiTestApplication::x_ReadConfiguration(), CQueueDataBase::x_ReadDumpQueueDesrc(), CURLTooltipHandler::x_ReformatUrlMarkerParam(), COrgName::x_ResetAttribFlag(), CSatInfoSchema::x_ResolveServiceName(), CDescrModApply::x_SetDBLinkField(), CFeatureGenerator::SImplementation::x_SetExceptText(), CBlastTabularInfo::x_SetFieldsToShow(), CDeflineGenerator::x_SetFlags(), CNetScheduleServer::x_SetFromList(), CDescrModApply::x_SetGBblockIds(), CDescrModApply::x_SetGBblockKeywords(), CDescrModApply::x_SetGenomeProjects(), CModAdder::x_SetHist(), CDescrModApply::x_SetTpaAssembly(), CDataLoadersUtil::x_SetupASNCacheDataLoader(), CDataLoadersUtil::x_SetupBlastDataLoader(), CDataLoadersUtil::x_SetupLDS2DataLoader(), CNewCleanup_imp::x_SplitDbtag(), CStrainSerotypeInfluenza::x_SplittingQualifiersAtCommas(), CStrainSerotypeInfluenza::x_SplittingStructCollections(), CSearch_func::x_StringContainsUnderscore(), CSearch_func::x_StringMayContainPlural(), CGBSeqFormatter::x_StrOStreamToTextOStream(), CFormatGuess::x_TestTableDelimiter(), CCountries::x_Tokenize(), CFilteringArgs::x_TokenizeFilteringArgs(), CStrainSerotypeInfluenza::x_TrimmingOrganismNames(), CFormatGuess::x_TryProcessCLUSTALSeqData(), CSequenceSearchForm::x_UpdateFileList(), COrfSearchForm::x_UpdateKozak(), CSingleFeatValidator::x_ValidateExceptText(), CVcfWriter::x_WriteFeatureInfo(), CGff2Reader::xAlignmentSetDenseg(), CGff2Reader::xAlignmentSetSpliced_seg(), CBedReader::xDetermineLikelyColumnCount(), CAlnScannerSequin::xExtractSequinSequenceData(), CGvfReader::xFeatureSetLocationInterval(), CGvfReader::xFeatureSetLocationPoint(), CGff3Reader::xFeatureSetXrefGrandParent(), CKeywordParser::xFinalize(), CGff2Reader::xGenerateParentChildXrefs(), CSrcChkApp::xGetDesiredFields(), CAlnScannerMultAlign::xGetExpectedDataSize(), seqsubmit_split::CSeqSubSplitter::xGetFileExtension(), xGetGenBankBlocks(), CGff2Reader::xGetTargetParts(), CAutoSqlCustomField::xHandleSpecialCaseRgb(), CAlnScannerClustal::xImportAlignmentData(), CAlnScannerPhylip::xImportAlignmentData(), CBedLineReader::xInitializeBlocks(), CGff3ImportData::xInitializeDataCds(), CGff3ImportData::xInitializeDataGene(), CGff3ImportData::xInitializeDbxref(), CGff3ImportData::xInitializeMultiValue(), C5ColLineReader::xInitializeRecord(), CBedLineReader::xInitializeRgbFromRgbColumn(), CAlnScannerSequin::xIsSequinOffsetsLine(), CGff2Record::xMigrateAttributeDefault(), CGff2Record::xMigrateAttributes(), CGff2Reader::xNeedsNewSeqAnnot(), CReaderBase::xParseBrowserLine(), CVcfReader::xParseData(), CUCSCRegionReader::xParseFeatureUCSCFormat(), CMicroArrayReader::xProcessFeature(), CVcfReader::xProcessHeaderLine(), CGffDeconcatApp::xProcessLine(), CAlnScannerNexus::xProcessMatrix(), CVcfReader::xProcessMetaLineFilter(), CVcfReader::xProcessMetaLineFormat(), CVcfReader::xProcessMetaLineInfo(), CGtfReader::xProcessQualifierSpecialCase(), CGff3Reader::xProcessSequenceRegionPragma(), CBedLineReader::xProcessTrackLine(), CBedReader::xReadBedRecordRaw(), CAlnFormatGuesser::xSampleIsMultAlign(), CAlnFormatGuesser::xSampleIsPhylip(), CAlnFormatGuesser::xSampleIsSequin(), CGff2Reader::xSetAncestryLine(), CBedReader::xSetFeatureColorFromItemRgb(), CBedReader::xSetFeatureLocationBlock(), CBedReader::xSetFeatureLocationRna(), CMultiReaderApp::xSetFlags(), CUCSCRegionReader::xSmartFieldSplit(), CBedColumnData::xSplitColumns(), C5ColLineReader::xSplitLine(), CBedLineReader::xSplitLine(), CGff3LineReader::xSplitLine(), CGtfLineReader::xSplitLine(), xSplitLines(), CAnnotWriterApp::xTryProcessInputIdList(), CGff3Reader::xUpdateAnnotRna(), CGvfReader::xVariationSetDeletions(), CGvfReader::xVariationSetInsertions(), and CGvfReader::xVariationSetSnvs().

◆ Split() [4/6]

vector< CTempString > & NStr::Split ( const CTempString  str,
const CTempString  delim,
vector< CTempString > &  arr,
TSplitFlags  flags = 0,
vector< SIZE_TYPE > *  token_pos = NULL,
CTempString_Storage storage = NULL 
)
static

Definition at line 3483 of file ncbistr.cpp.

References arr, CHECK_SPLIT_TEMPSTRING_FLAGS, flags, s_Split(), NStr::Split(), and str().

◆ Split() [5/6]

vector< CTempStringEx > & NStr::Split ( const CTempString  str,
const CTempString  delim,
vector< CTempStringEx > &  arr,
TSplitFlags  flags = 0,
vector< SIZE_TYPE > *  token_pos = NULL,
CTempString_Storage storage = NULL 
)
static

Definition at line 3499 of file ncbistr.cpp.

References arr, CHECK_SPLIT_TEMPSTRING_FLAGS, flags, s_Split(), NStr::Split(), and str().

◆ Split() [6/6]

vector< string > & NStr::Split ( const CTempString  str,
const CTempString  delim,
vector< string > &  arr,
TSplitFlags  flags = 0,
vector< SIZE_TYPE > *  token_pos = NULL 
)
static

Definition at line 3468 of file ncbistr.cpp.

References arr, flags, s_Split(), and str().

◆ SplitByPattern() [1/6]

list< CTempString > & NStr::SplitByPattern ( const CTempString  str,
const CTempString  delim,
list< CTempString > &  arr,
TSplitFlags  flags = 0,
vector< SIZE_TYPE > *  token_pos = NULL,
CTempString_Storage storage = NULL 
)
static

Definition at line 3521 of file ncbistr.cpp.

References arr, flags, NStr::fSplit_ByPattern, s_Split(), and str().

◆ SplitByPattern() [2/6]

list< CTempStringEx > & NStr::SplitByPattern ( const CTempString  str,
const CTempString  delim,
list< CTempStringEx > &  arr,
TSplitFlags  flags = 0,
vector< SIZE_TYPE > *  token_pos = NULL,
CTempString_Storage storage = NULL 
)
static

◆ SplitByPattern() [3/6]

list< string > & NStr::SplitByPattern ( const CTempString  str,
const CTempString  delim,
list< string > &  arr,
TSplitFlags  flags = 0,
vector< SIZE_TYPE > *  token_pos = NULL 
)
static

◆ SplitByPattern() [4/6]

vector< CTempString > & NStr::SplitByPattern ( const CTempString  str,
const CTempString  delim,
vector< CTempString > &  arr,
TSplitFlags  flags = 0,
vector< SIZE_TYPE > *  token_pos = NULL,
CTempString_Storage storage = NULL 
)
static

◆ SplitByPattern() [5/6]

vector< CTempStringEx > & NStr::SplitByPattern ( const CTempString  str,
const CTempString  delim,
vector< CTempStringEx > &  arr,
TSplitFlags  flags = 0,
vector< SIZE_TYPE > *  token_pos = NULL,
CTempString_Storage storage = NULL 
)
static

◆ SplitByPattern() [6/6]

vector< string > & NStr::SplitByPattern ( const CTempString  str,
const CTempString  delim,
vector< string > &  arr,
TSplitFlags  flags = 0,
vector< SIZE_TYPE > *  token_pos = NULL 
)
static

Definition at line 3514 of file ncbistr.cpp.

References arr, flags, NStr::fSplit_ByPattern, s_Split(), and str().

◆ SplitInTwo() [1/3]

bool NStr::SplitInTwo ( const CTempString  str,
const CTempString  delim,
CTempString str1,
CTempString str2,
TSplitFlags  flags = 0,
CTempString_Storage storage = NULL 
)
static

Definition at line 3566 of file ncbistr.cpp.

◆ SplitInTwo() [2/3]

bool NStr::SplitInTwo ( const CTempString  str,
const CTempString  delim,
CTempStringEx str1,
CTempStringEx str2,
TSplitFlags  flags = 0,
CTempString_Storage storage = NULL 
)
static

Definition at line 3578 of file ncbistr.cpp.

◆ SplitInTwo() [3/3]

bool NStr::SplitInTwo ( const CTempString  str,
const CTempString  delim,
string str1,
string str2,
TSplitFlags  flags = 0 
)
static

Split a string into two pieces using the specified delimiters.

Parameters
strString to be split.
delimDelimiters used to split string "str".
str1The sub-string of "str" before the first character of "delim". It will not contain any characters in "delim". Will be empty if "str" begin with a delimiter.
str2The sub-string of "str" after the first character of "delim" found. May contain "delim" characters. Will be empty if "str" had no "delim" characters or ended with the "delim" character.
flagsFlags directing splitting, characterized under ESplitFlags. Note, that fSplit_Truncate_End don't have any effect due nature of this method.
Attention
Modifying source CTempString object or destroying it, will invalidate results.
Returns
true if a symbol from "delim" was found in "str", false if not. This lets you distinguish when there were no delimiters and when the very last character was the first delimiter.
See also
ESplitFlags, Split
Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 3554 of file ncbistr.cpp.

Referenced by CRefArgs::AddDefinitions(), CSimpleMakeFileContents::AddReadyKV(), SAccGuide::AddRule(), CSrcTableDbxrefColumn::AddToBioSource(), CMsvcConfigure::AnalyzeDefines(), CExpansionRule::ApplyRule(), CGetLoadProcessor::Authenticate(), BOOST_AUTO_TEST_CASE(), CBlob_id::CBlob_id(), CDB_ODBC_ConnParams::CDB_ODBC_ConnParams(), CDiagStrErrCodeMatcher::CDiagStrErrCodeMatcher(), CNcbiResourceInfo::CNcbiResourceInfo(), CNcbiResourceInfoFile::CNcbiResourceInfoFile(), CRemoveSequencesDlg::CombineLabelsAll(), CRBSubpanel::CombineLabelsAll(), CDBLB_ServiceMapper::ConfigureFromRegistry(), CRegistryFile::DeleteField(), EnaGetLineData(), CMQueryFunctionValue::Evaluate(), SQueueInfoToJson::ExecOn(), CGBSeqFormatter::FormatGenomeProject(), CGlBitmapFont::FromString(), CGlTextureFont::FromString(), g_GenericStatToJson(), g_GetWorkerNodes(), g_LegacyStatToJson(), g_LoadLinkageEvidence(), g_ProcessJobInfo(), CNewCleanup_imp::GBQualSeqFeatBC(), GenbankGetKeywordLine(), CCgiRequest::GetCGIEntries(), CAddSecondary::GetCommand(), CCassConnectionFactory::GetHostPort(), SNetStorage_NetCacheBlob::GetInfo(), NDirectNetStorageImpl::CNetCache::GetInfo(), CUrlUtils::GetLastModified(), NSnp::GetLength(), CIdMapperApp::GetMapper(), CMemorySrcFileMap::GetMods(), C5ColLineReader::GetNextRecord(), XSDParser::GetNextToken(), CMsvcSite::GetPlatformInfo(), CCDSTranslationPanel::GetProductId(), CPsgBlobId::GetSatSatkey(), CUnculturedTool::GetSuggestedCorrection(), CEditingActionFeatDualVal1::GetValue(), CEditingActionFeatDualVal2::GetValue(), CProjBulderApp::Gui_ConfirmConfiguration(), CMsvc7RegSettings::IdentifyPlatform(), CUrlUtils::IfModifiedSince(), CMacroFlowEditor::ImportLibrary(), CExpansionRule::Init(), SThrottleParams::SIOFailureThreshold::Init(), CMsvcSite::InitializeLibChoices(), CStringConstraint::IsInRange(), CFormatGuess::IsLineAugustus(), CEditingActionFeatDualVal1::IsSetValue(), CEditingActionFeatDualVal2::IsSetValue(), CAlignFormatUtil::IsWGSPattern(), CStructuredCommentsReader::LoadCommentsByRow(), CForeignContaminationScreenReportReader::LoadFile(), CCgiSession_NetCache::LoadSession(), CCountries::LoadUSAExceptionMap(), CDiagStrErrCodeMatcher::Match(), CNewCleanup_imp::MoveDbxrefs(), CCountries::NewFixCountry(), NS_ValidateClasses(), NS_ValidateQueues(), CNetScheduleServerListener::OnErrorImpl(), ncbi::grid::netcache::search::operator<<(), operator>>(), CNewCleanup_imp::OrgnameBC(), SSocketAddress::Parse(), CStringPairs< TExtraValuesMap >::Parse(), CCgiRequestProcessor::ParseAcceptHeader(), ParseAccessionRange(), CNetCacheKey::ParseBlobKey(), CMaskFromFasta::ParseDataLine(), CFormattingArgs::ParseFormattingString(), CFeatureTableReader_Imp::ParseInitialFeatureLine(), CTrackData::ParseLine(), CDBUriConnParams::ParseParamPairs(), CRepeatMaskerReader::ParseRecord(), CNcbiApplogApp::ParseToken(), CUnculTaxTool::PreloadCache(), CDiagContext::PrintStart(), AlnUtil::ProcessDefline(), ReadMap(), CBDB_SplitTest::ReadTestSet(), CTabDelimitedValidator::RegisterAliases(), CCgi2RCgiApp::RenderPage(), CMemorySrcFileMap::ReportUnusedIds(), CEditingActionFeatDualVal1::ResetValue(), CEditingActionFeatDualVal2::ResetValue(), SGridWorkerNodeImpl::Run(), CRunTestApplication::Run(), s_CheckValueForTID(), s_DbtagParse(), s_DoUSAStateCleanup(), s_GetBigBedFeats(), s_GetLinkoutUrl(), s_GetStrForStructuredComment(), s_IsSameAccession(), s_ResolveFieldsOfChoice(), s_ResolveFieldsOfClass(), s_SetFieldsOfChoice(), s_SetFieldsOfClass(), s_SocketConnectorBuilder(), s_SplitKV(), s_SplitVersion(), SeqDB_SimplifyAccession(), CTMgr_ClientInfo::SetContext(), IEditMacroFunction::SetQualStringValue(), IMacroBioDataIter::STableToApply::SetTableToApply(), CEditingActionBiosourceDbxref::SetValue(), CEditingActionFeatDualVal1::SetValue(), CEditingActionFeatDualVal2::SetValue(), CEditingActionFeatDbxref::SetValue(), sGetModInfo(), sGetTestParameters(), CAlnScannerFastaGap::sSplitFastaDef(), CNetScheduleAdmin::StatusSnapshot(), SPSG_ThrottleParams::SThreshold::SThreshold(), CDirEntry::StringToMode(), StringToRange(), CParallelProcessing< TParams >::SImpl::Submitter(), sUpdateCase(), CFormatGuess::TestFormatFlatFileEna(), CFormatGuess::TestFormatFlatFileGenbank(), CFormatGuess::TestFormatFlatFileUniProt(), TraverseAndRunTestCases(), CUnculTaxTool::TryRankFix(), UniProtGetLineData(), CFeatureTableReader_Imp::x_AddQualifierToFeature(), CFeatureGenerator::SImplementation::x_AddSelectMarkup(), CNCMessageHandler::x_AssignCmdParams(), IMacroBioDataIter::STableToApply::x_CacheColFromTable(), CImportFeatTable::x_CreateCommand(), CWigGraph::x_GetBigWigSummary(), CTL_CursorCmdExpl::x_GetBlobDescriptor(), CVcfGlyph::x_GetClinVarToolTip(), CQueueDataBase::x_GetConfigQueues(), CConnTest::x_GetFirewallConfiguration(), IMacroBioDataIter::STableToApply::x_InitAndCheck(), CNcbiEncrypt::x_LoadKeys(), CDiagContext::x_LogEnvironment(), CDB_ODBC_ConnParams::x_MapPairToParam(), CAdapterSearchApplication::x_MaskAdaptersPaired(), CDiagStrErrCodeMatcher::x_Parse(), CGff2Reader::x_ParseDbtag(), SDiagMessage::x_ParseExtraArgs(), CTemplate1TypeStrings::x_ParseTemplateName(), CBlastDBCmdApp::x_ProcessBatchEntry(), CBlastDBCmdApp::x_ProcessBatchEntry_NoDup(), CBlastDBCmdApp::x_ProcessBatchPig(), CMacroApplySrcTablePanel::x_ProcessFirstLine(), IRWRegistry::x_Read(), CNcbiTestApplication::x_ReadConfiguration(), SPubseqGatewaySettings::x_ReadCountersSection(), CQueueDataBase::x_ReadDumpQueueDesrc(), CQueueDataBase::x_ReadIniFileQueueClassDescriptions(), CQueueDataBase::x_ReadIniFileQueueDescriptions(), CQueueDataBase::x_ReadLinkedSections(), CNCActiveHandler::x_ReadPeerVersion(), CMemorySrcFileMap::x_RegisterLine(), CMacroEngine::x_ResolveRTVar(), CMacroResolver::x_ResolveRTVar(), CSatInfoSchema::x_ResolveServiceName(), CTaxIdSet::x_SelectBestTaxid(), CGFFReader::x_SplitKeyValuePair(), CUnculturedTool::x_TryRankFix(), CFeatureTableReader_Imp::x_TryToParseOffset(), CMakeProfileDBApp::x_UpdateCobalt(), CBLASTDatabases::x_UpdateDbMap(), CValidError_imp::x_ValidatePages(), CSoapMessage::x_VerifyFaultObj(), CGtfReadRecord::xAssignAttributesFromGff(), CGvfReadRecord::xAssignAttributesFromGff(), CVcfReader::xAssignVariantProps(), CFeatTableEdit::xGetCurrentLocusTagPrefix(), CMicroArrayReader::xGetData(), CAlnScannerPhylip::xImportAlignmentData(), CGff3LineReader::xInitializeAttributes(), CGtfLineReader::xInitializeAttributes(), CGff3ImportData::xInitializeDbxref(), CFeatTableEdit::xNextProteinId(), CFeatTableEdit::xNextTranscriptId(), CBedAutoSql::xParseAutoSqlColumnDef(), CVcfReader::xParseData(), CGvfReader::xParseStructuredComment(), CMultiReaderApp::xPostProcessAnnot(), CBedAutoSql::xProcessLine(), CVcfReader::xProcessMetaLineFilter(), CVcfReader::xProcessMetaLineFormat(), CVcfReader::xProcessMetaLineInfo(), CBedLineReader::xProcessTrackLine(), CReaderBase::xSetBrowserRegion(), CBedReader::xSetFeatureColorByStrand(), and C5ColLineReader::xSplitLine().

◆ SQLEncode() [1/2]

static CStringUTF8 NStr::SQLEncode ( const CStringUTF8 str)
inlinestatic

Definition at line 3192 of file ncbistr.hpp.

References NStr::eSqlEnc_Plain, NStr::SQLEncode(), and str().

◆ SQLEncode() [2/2]

CStringUTF8 NStr::SQLEncode ( const CStringUTF8 str,
ESqlEncode  flag 
)
static

SQL-encode string.

There are some assumptions/notes about the function: 1. Only for MS SQL and Sybase. 2. Only for string values in WHERE and LIKE clauses. 3. The ' symbol must not be used as an escape symbol in LIKE clause. 4. It must not be used for non-string values. 5. It expects a string without any outer quotes, and it adds single quotes to the returned string. 6. It expects UTF-8 (including its subsets, ASCII and Latin1) or Win1252 string, and the input encoding is preserved.

Parameters
strThe string to encode
flagWhether to tag the result with an N prefix if it contains any non-ASCII characters. Such tagging is generally advisable, but off by default per historical practice, since there are corner cases in which it may be inappropriate.
Returns
Encoded string with added outer single quotes

Definition at line 6140 of file ncbistr.cpp.

Referenced by CDbapiSimpleApp::DemoDynamicSql(), CSdbapiSimpleApp::DemoDynamicSql(), NStr::SQLEncode(), CPubseqReader::x_ConnectAtSlot(), CPubseq2Reader::x_ConnectAtSlot(), and CId2FetchApp::x_InitPubSeqConnection().

◆ StartsWith() [1/2]

bool NStr::StartsWith ( const CTempString  str,
char  start,
ECase  use_case = eCase 
)
inlinestatic

Check if a string starts with a specified character value.

Parameters
strString to check.
startCharacter value to check for.
use_caseWhether to do a case sensitive compare(default is eCase), or a case-insensitive compare (eNocase) while checking.

Definition at line 5419 of file ncbistr.hpp.

References NStr::eCase, str(), tolower(), and toupper().

◆ StartsWith() [2/2]

bool NStr::StartsWith ( const CTempString  str,
const CTempString  start,
ECase  use_case = eCase 
)
inlinestatic

Check if a string starts with a specified prefix value.

Parameters
strString to check.
startPrefix value to check for.
use_caseWhether to do a case sensitive compare(default is eCase), or a case-insensitive compare (eNocase) while checking.
Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 5412 of file ncbistr.hpp.

References NStr::Equal(), CTempString::size(), and str().

Referenced by CStructuredCommentsReader::_LoadHeaderLine(), CSimpleMakeFileContents::SParser::AcceptLine(), CUnculTaxTool::AddBioSource(), CSeqTableLocColumns::AddColumn(), AddColumnsToFeatureTable(), NMItemData::AddConstraintIgnoreNewText(), CBamUIDataSource::AddDataLoader(), AddFeatureToSeqTable(), CPCRSetList::AddFwdName(), CPCRSetList::AddFwdSeq(), AddMiscRNAFeatures(), CSimpleMakeFileContents::AddReadyKV(), CSpecificHostRequest::AddReply(), CPCRSetList::AddRevName(), CPCRSetList::AddRevSeq(), CGRPCClientContext::AddStandardNCBIMetadata(), CBioSource::AllowMatingTypeQualifier(), AllowOrphanedProtein(), CBioSource::AllowSexQualifier(), CExplodeRNAFeats::apply(), CRemoveUnindexedFeatures::apply(), ApplyChimeraValuesTableToSeqEntry(), ApplyFeatureSeqTableToSeqEntry(), NMacroUtil::ApplyFirstName(), NMacroUtil::ApplyMiddleInitial(), CExpansionRule::ApplyRule(), CEditSubpanel::ApplyToAll(), CEditSubpanel::ApplyToSelected(), CNcbiApplicationAPI::AppMain(), CValidator::BadCharsInAuthorName(), CNCMessageHandler::BeginProxyResponse(), CGRPCServerCallbacks::BeginRequest(), CNewCleanup_imp::BiosourceBC(), BOOST_AUTO_TEST_CASE(), BuildChimeraValuesTableFromSeqEntry(), BuildDBLinkValuesTableFromSeqEntry(), impl::CConnection::CalculateServerType(), CSeq_id_Resolver::CanCreate(), CannotProcess(), CAutoDefGeneClause::CAutoDefGeneClause(), CAutoDefMobileElementClause::CAutoDefMobileElementClause(), CAutoDefSatelliteClause::CAutoDefSatelliteClause(), CCgiEntryReaderContext::CCgiEntryReaderContext(), CDBUriConnParams::CDBUriConnParams(), CDDTypedAnnotDialog::CDDTypedAnnotDialog(), CValidError_bioseq::CheckForMissingChromosome(), CheckSTRAND(), CheckTPG(), CCitGenCleaner::Clean(), CCitSubCleaner::Clean(), CGridCommandLineInterfaceApp::Cmd_BlobInfo(), CGridCommandLineInterfaceApp::Cmd_Suspend(), CMiscSeqTableColumn::CMiscSeqTableColumn(), CNamespace::CNamespace(), CCachedAssembly::Compression(), CReaderServiceConnector::Connect(), ContainsSgml(), CBlastDBAliasApp::ConvertGiFile(), SMakeProjectT::ConvertLibDependsMacro(), pub_report::ConvertPMCtoPMID(), CVPath::ConvertSysPathToPOSIX(), CPager::CPager(), CPileUpGraph::CPileUpGraph(), CSrcTableColumnBaseFactory::Create(), CFieldHandlerFactory::Create(), CFeatureSeqTableColumnBaseFactory::Create(), SMakeProjectT::Create3PartyLibs(), CAnnotationASN1::CImplementationData::create_ModelEvidence_user_object(), CreateActionDesc(), CreateActionSeqid(), CMacroAddConstraint::CreateControls(), SMakeProjectT::CreateDefines(), CTrackConfigManager::CreateDisplayName(), SAppProjectT::CreateNcbiCToolkitLibs(), CHtmlTooltipFormatter::CreateNcbiLink(), CTextTooltipFormatter::CreateNcbiLink(), STrackSettings::CreateProfileString(), CVcfTrackDataFactory::CreateTrackData(), CVcfTrackFactory::CreateTracks(), CSDB_ConnectionParam::CSDB_ConnectionParam(), CWriteDB_ConsolidateAliasFiles(), CNewCleanup_imp::DbtagBC(), CSequenceEditingEventHandler::DeleteSpecificStructuredComment(), CAutoDefFeatureClause::DoesmRNAProductNameMatch(), CStringConstraint::DoesTextMatch(), CAliasTest::DoTest(), EnaGetLineData(), CNcbiEnvironment::Enumerate(), CSimpleEnvRegMapper::EnvToReg(), CNcbiEnvRegMapper::EnvToReg(), SQueueInfoToJson::ExecOn(), CTrackUtils::ExtractTrackConfig(), CValidError_CI::Filter(), CSeqTranslator::FindBestFrame(), COrgMod::FindInstitutionCode(), CSubSource::FixDateFormat(), CBioSource::FixEnvironmentalSample(), FixInitials(), CSubSource::FixLatLonFormat(), CGb_qual::FixRecombinationClassValue(), COrgMod::FixStructuredVoucher(), CFlatSubmitterSeqidQVal::Format(), CFlatSubSourcePrimer::Format(), CFlatXrefQVal::Format(), CReferenceItem::FormatAuthors(), CGenbankFormatter::FormatCache(), CGenbankFormatter::FormatContig(), CHTMLFormatterEx::FormatTaxid(), CCSRABlobId::FromString(), g_GenericStatToJson(), g_ProcessJobInfo(), g_WorkerNodeInfoToJson(), NSearchFeatPanel::GatherFeatures(), CNewCleanup_imp::GBQualSeqFeatBC(), CAliasTypeStrings::GenerateCode(), CDeflineGenerator::GenerateDefline(), CValidError_feat::GetAccessionsFromInferenceString(), CProjectsLstFileFilter::GetAllowedTagsInfo(), CSeqUtils::GetAnnotSelector(), GetAsnDataViaHTTPS(), CPubField::GetAuthorField(), GetBlkDataReplaceNewLine(), CConvertCdsToMiscFeat::GetCommand(), CEditSequenceEnds::GetCommand(), CReadBlastApp::getCoreDataType(), CDDTypedAnnotDialog::GetData(), CValidErrorFormat::GetDescriptorContent(), GetDiscrepancyCaseName(), CBlastOptionsFactory::GetDocumentation(), GetEmblOrgRef(), NMItemData::GetExistingTextDescr(), CMsvcProjectMakefile::GetExtraFiles(), CAutoDefFeatureClause_Base::GetFeatureClausePhrases(), CValidErrorFormat::GetFeatureContentLabel(), CFieldChoicePanel::GetFieldName(), CProteinFieldPanel::GetFieldName(), CFieldNamePanel::GetFieldTypeFromName(), CWGSDataLoader_Impl::GetFileInfoByGeneral(), COrgName::GetFlatName(), CUnculturedTaxnameQual::GetFormatErrors(), CApplyFeatQualTreeItemData::GetFunction(), CApplyRNAQualTreeItemData::GetFunction(), CConvertRNAQualTreeItemData::GetFunction(), CCopyRNAQualTreeItemData::GetFunction(), CEditRNAQualTreeItemData::GetFunction(), CParseRNAQualTreeItemData::GetFunction(), CRmvRNAQualTreeItemData::GetFunction(), CRmvOutsideRNAQualTreeItemData::GetFunction(), CCSRABlobId::GetGeneralIdType(), CWGSDb_Impl::GetGeneralSeq_id(), CGenomeAnnotComment::GetGenomeBuildNumber(), CBioSource::GetGenomeByOrganelle(), CMacroEditorContext::GetGUIFieldName(), NMItemData::GetHandleBlank(), CAutoDefModifierCombo::GetInfluenzaType(), CInfluenzaSet::GetInfluenzaType(), CDbtag::GetLabel(), SrcEditDialog::GetLabelForTitle(), CCit_jour::GetLabelV2(), CCit_sub::GetLabelV2(), CUrlUtils::GetLastModified(), CBulkLocationPanel::GetLocForBioseq(), GetLowTrace(), CApplyAuthorsTreeItemData::GetMacroDescription(), CAutodefTreeItemData::GetMacroDescription(), CFieldHandlerNamePanel::GetMacroFieldName(), CVcfTrackFactory::GetMatchedAnnots(), CWord_substitution::GetMatchLens(), CFarPointerSeq::GetMessageForId(), variation::CVariationUtil::GetMolType(), CFastaBioseqSource::GetNext(), CGffIdGenerator::GetNextGffExonId(), CDBLinkField::GetNormalizedDBLinkFieldName(), CAutoDef::GetOneDefLine(), CBioSource::GetOriginByString(), CInferencePrefixList::GetPrefixAndRemainder(), CCDSTranslationPanel::GetProductId(), CCleanup::GetPubdescLabels(), GetPubdescLabels(), CNetScheduleAdmin::GetQueueList(), CGBDataLoader_Native::GetReaderWriterName(), GetReplacementSeqIds(), NMItemData::GetRNASpecificFields(), NMItemData::GetRNASpecificFieldsForTableReader(), CRNAFieldNamePanel::GetRnaType(), CDualRNAFieldNamePanel::GetRnaType(), GetRptTypeValue(), CVarTrackFactory::GetSettings(), CAutoDefModifierCombo::GetSourceDescriptionString(), GetSrcRequirements(), CCgi2RCgiApp::GetStatusAndCtgTime(), GetStatusByMessage(), GetStdPath(), CUnculturedTool::GetSuggestedCorrection(), GetTargetedLocusNameConsensus(), CVDBMgr::GetTimestamp(), GetTitle(), CGuiObjectInfoVariation::GetToolTip(), CInferencePanel::GetValue(), CEditingActionDescAuthorInitials::GetValue(), CEditingActionDescAuthorNameList::GetValue(), CStructuredCommentCommandConverter::GetValuesTableFromSeqEntry(), CAutodefTreeItemData::GetVariables(), GetWGSMasterSeq_id(), CSeq_id_Textseq_Info::GoodPrefix(), CProjBulderApp::Gui_ConfirmConfiguration(), CProjBulderApp::Gui_ConfirmProjects(), HasBadGenomeAssemblyName(), CNetICacheClient::HasBlob(), HasCultureCollectionForATCCStrain(), CBamVDBPath::HasSchemaPrefix(), HasStrainForATCCCultureCollection(), CTrackUtils::HasTrack(), CSysLog::HonorRegistrySettings(), CSimpleBlobStore::Init(), CProjectsLstFileFilter::InitFromFile(), CIdMapperConfig::Initialize(), CAutoDefIntergenicSpacerClause::InitWithString(), CLocationEditPolicy::Interpret5Policy(), CMacroInterpreter::InterpretDoFunctions(), InterpretSpecificHostResult(), CSeqUtils::IsAlignDb(), CGff2Reader::IsAlignmentData(), CGff2Record::IsAlignmentRecord(), CFormatGuess::IsAllComment(), CFormatGuess::IsAsnComment(), CSubSource::IsChromosomeNameValid(), CLinePreBuffer::IsCommentLine(), SMakeProjectT::IsConfigurableDefine(), CAutoDefFeatureClause::IsControlRegion(), CSubSource::IsCorrectLatLonFormat(), CMsvcSite::IsCppflagDescribed(), CSymResolver::IsDefine(), IsElectronicJournal(), IsExplicitSNPName(), CGencollSvc::isGenCollSequence(), CRepeatMaskerReader::IsIgnoredLine(), SAnnotSelector::IsIncludedNamedAnnotAccession(), CAttribTableColumnIdPanel::IsInputValid(), CMsvcSite::IsLibOk(), SMakeProjectT::IsMakeAppFile(), SMakeProjectT::IsMakeDllFile(), SMakeProjectT::IsMakeLibFile(), IsMatchingIdMissing(), IsMicroSatellite(), IsMissingRequiredClone(), IsNG(), IsNTNCNWACAccession(), CPager::IsPagerCommand(), CSubSource::IsPlasmidNameValid(), CTrackUtils::isRemoteData(), CSeqUtils::isRmtAnnotName(), IsSpName(), COrgMod::IsStructuredVoucherValid(), IsSubdir(), CMessageHandlerThrowOnError::IsTaxidQuery(), CPCRPrimerSeq::IsValid(), COrgMod::IsValidTypeMaterial(), CBioSource::IsViral(), IsWGSGeneral(), JoinString(), CAutoDefExonListClause::Label(), CMatchFeatureTableDlg::LinearAutomatch(), CProjBulderApp::LoadDepGraph(), CCgiApplication::LogRequest(), CUnculTaxTool::LookupSuggestions(), FeatUtil::MakeCodeBreak(), CWorkerNodeControlServer::MakeProcessor(), CReferenceItem::Matches(), CBlob_Annot_Info::Matches(), CHttpCookie::MatchPath(), NcbiOpenURL(), NCBITEST_INIT_VARIABLES(), CCountries::NewFixCountry(), Normalize(), CDBLinkFieldType::NormalizeDBLinkFieldName(), CMacroInterpreter::NormalizeFieldForFeatPanel(), NMItemData::NormalizeFieldForFeatPanel(), CComment_rule::NormalizePrefix(), CPubFieldType::NormalizePubFieldName(), NSTGetBackendConfiguration(), NSTValidateServices(), CProcessor::OffsetId(), CRemarksAndSerialNumberPanel::OnButtonClick(), CPublicationTypePanel::OnDoiLookup(), CTrackListCtrl::OnGetItemText(), CJournalPanel::OnJournalPmidTextUpdated(), CRowReaderStream_NCBI_TSV::OnNextLine(), CMacroParamsPanel::OnPropertyChanged(), CAgpValidateReader::OnScaffoldEnd(), CTextSubpanel::OnSelectButton(), CLocationListCtrl::OnSortClick(), CTestNameToInfoMapLoader::operator()(), PPredDbTagByName::operator()(), IsStandard::operator()(), SRemoveNamedStrain::operator()(), CStreamLineReaderConverter::operator++(), CBioSourceKind::operator=(), operator>>(), ParseAttributes(), CNetCacheKey::ParseBlobKey(), CFastaReader::ParseDataLine(), XSDParser::ParseElementContent(), CGb_qual::ParseExperiment(), CFormattingArgs::ParseFormattingString(), CFastaReader::ParseGapLine(), CHttpRetryContext::ParseHeader(), CGb_qual::ParseInferenceString(), CFeatureTableReader_Imp::ParseInitialFeatureLine(), ParseMoleculeTypeString(), CAutoDefParsedtRNAClause::ParseString(), CWGSResolver_Ids::ParseWGSPrefix(), CUnculTaxTool::PreloadCache(), CTabularFormatter_Comment::Print(), CValXMLStream::Print(), CBlastFormat::PrintArchive(), CNetCacheAPI::PrintBlobInfo(), CNetICacheClient::PrintBlobInfo(), CAutoDefFeatureClause_Base::PrintClause(), CPrintJobInfo::PrintXput(), CBiosampleChkApp::ProcessAsnInput(), CCgiContext::ProcessCORSRequest(), AlnUtil::ProcessDefline(), CBam2GraphApp::ProcessFile(), CCgiRequestProcessor::ProcessHelpRequest(), ProgramNameToEnum(), PromoteIfDifferent(), CNewCleanup_imp::ProtrefBC(), CMatchFeatureTableDlg::QuadraticAutomatch(), CFieldHandler::QualifierNamesAreEquivalent(), QualifierNamesAreEquivalent(), CDiagErrCodeInfo::Read(), CRepeatLibrary::Read(), SNetServerConnectionImpl::ReadCmdOutputLine(), CColumnarVCFReader::ReadData(), CColumnarVCFReader::ReadHeader(), CCgi2RCgiApp::ReadJob(), SQueueParameters::ReadLinkedSections(), CBlastInputReader::ReadOneSeq(), CFastaReader::ReadOneSeq(), CHgvsReader::ReadSeqAnnot(), CBedReader::ReadTrackData(), CWiggleReader::ReadTrackData(), CColumnarVCFReader::ReadVariantsForChrs(), CMsvcProjectMakefile::Redefine(), CNcbiApplogApp::Redirect(), CNcbiEnvRegMapper::RegToEnv(), COrgMod::RemoveAbbreviation(), CSubSource::RemoveCultureNotes(), RemoveFieldNameFromString(), NMacroUtil::RemoveFirstName(), NMacroUtil::RemoveMiddleInitial(), COrgrefProp::RemoveOrgrefProp(), CTraversalNode::RemoveXFromFuncName(), CCgi2RCgiApp::RenderPage(), CWGSClient::ResolveGeneral(), CNewCleanup_imp::RnaFeatBC(), CExplodeRNAFeats::RNAWordsFromString(), CSplignApp::Run(), CNcbiApplogApp::Run(), CAgpFastaComparator::Run(), CPrimeCacheApplication::Run(), CBiosampleChkApp::Run(), CConversionApp::Run(), CDemoApp::Run(), CTLSApp::Run(), CRunTestApplication::Run(), CStructuredCommentPanel::s_AddPoundSigns(), CSingleFeatValidator::s_BioseqHasRefSeqThatStartsWithPrefix(), s_CalculateMatchingColumns(), s_CitGenIsJustBackBoneIDNumber(), s_CitMatches(), CCleanup::s_CleanupGeneOntology(), s_CompleteGenomeNeedsChromosome(), fix_pub::s_ConsortiaMatch(), s_ConvertMetaData(), s_CuratedRefSeq(), s_CuratedRefSeqLowerToWarning(), s_DoPubsMatch(), s_DoUSAStateCleanup(), s_DropErrorItem(), CMacroFunction_EditStringQual::s_EditText(), s_EncodeMetadataName(), s_FailsGenusOrSpeciesTest(), s_FilterPubdesc(), s_FindInMapAsPrefix(), s_FindInSetAsPrefix(), s_FindPathToGeneInfoFiles(), s_FindPathToWM(), CMacroFunction_AuthorFix::s_FixInitials(), IAuthorEditor::s_FixInitials(), s_FixStrainForPrefix(), s_FormatCitGen(), s_FormatCitSub(), s_GatherIdLabels(), s_GetAnnotSelector(), s_GetBlastScore(), s_GetCgiTunnel2GridUrl(), s_GetErrTypeFromString(), s_GetFtpHostAndFile(), CApplyFeatTableTreeItemData::s_GetFunction(), CApplyRNATableTreeItemData::s_GetFunction(), CApplyStrCommTableTreeItemData::s_GetFunction(), CRNAFieldNamePanel::s_GetMacroFieldName(), s_GetMakefileIncludes(), s_GetMiRNAProduct(), s_GetRnaMappingLocs(), s_GetSpecimenVoucherText(), s_GetTitle(), s_GuessId(), s_HasPrefixMatch(), s_HasTPAPrefix(), variation::CHgvsParser::s_hgvsaa2ncbieaa(), s_HtmlizeLatLon(), s_HtmlizeStructuredCommentData(), s_IsAllDigitsOrPeriods(), s_IsArchaea(), s_IsBacteria(), s_IsCommented(), s_IsCompoundRptTypeValue(), s_IsGenbankId(), s_IsGeneralId(), s_IsReportableStructuredComment(), s_IsrRNA(), s_IsState(), s_IsStdTrack(), s_IsSysPath(), CUnculturedTool::s_IsUnculturedName(), CMacroFunction_PubFields::s_IsUnpublished(), s_IsUsingRemoteBlastDbDataLoader(), s_JoinLinkableStrs(), CAgpToSeqEntry::s_LocalSeqIdFromStr(), CTableReaderMacro::s_LooksLikeHeader(), s_MapLinkoutGenParam(), s_MatchesBoundary(), CSingleAuthorPanel::s_ParseInitialsFromName(), s_ParseOptionalSettings(), s_ParseParentQual(), s_ParseTRnaFromAnticodonString(), s_ProcessInstitutionCollectionCodeLine(), s_ReadPerClientConfig(), s_RemoveAliasComponents(), s_RemoveBracketedOrgFromEnd(), s_RemoveInitial(), s_RemoveOrgFromEndOfProtein(), CStructuredCommentPanel::s_RemovePoundSigns(), s_RetrieveMessage(), CMacroFunction_AuthorFix::s_ReverseAuthorNames(), s_RnaPosition(), variation::CHgvsParser::s_SeqIdToHgvsStr(), s_SetFieldsOfContainer(), s_SetTrnaProduct(), s_ShouldConvertToGeneral(), s_StringToCodeBreak(), s_StringToInt8(), s_StrucCommOrder(), s_SuppressMultipleEquivBioSources(), s_TestVCFData(), s_ToArchiveName(), s_TokenizeTRnaString(), CMacroFunction_AuthorFix::s_TruncateMiddleInitials(), s_UseThisSeqToTextSeqID(), SeqIdToIdentifier(), CFeatureTrack::SetAnnot(), CGeneModelTrack::SetAnnot(), CGraphTrack::SetAnnot(), CHistogramGlyph::SetAnnotName(), CPubField::SetAuthorField(), CCleanup::SetCDSPartialsByFrameAndTranslation(), CTextSubpanel::SetClusters(), SetCultureCollectionFromStrain(), CApplyTableItemData::SetData(), CApplyStrCommTableTreeItemData::SetData(), CApplyRNATableTreeItemData::SetData(), CSingleQualPanel::SetField(), CFieldChoicePanel::SetFieldName(), CStructCommentFieldPanel::SetFieldName(), CBamLoadOptionPanel::SetIndexFiles(), CMacroAdvStringConstraintPanel< T >::SetMatcher(), CAutoDefParsedClause::SetMiscRNAWord(), CRNAFieldNamePanel::SetRnaType(), CDualRNAFieldNamePanel::SetRnaType(), SetUserAlternateEmailAddress(), CEditingActionDescAuthorFirstName::SetValue(), CInferencePanel::SetValue(), sParseGeneOntologyTerm(), SpecificHostValueToCheck(), SrchKeyword(), CUnculTaxTool::StandardFixes(), CMacroLib::StoreSynonymList(), CGtfRecord::StrAttributes(), ICitationBase::SWNC(), TestCdsFromLastBioseqWithCodeBreak(), CFormatGuess::TestFormatAugustus(), CFormatGuess::TestFormatBed(), CFormatGuess::TestFormatBed15(), CFormatGuess::TestFormatCLUSTAL(), CFormatGuess::TestFormatGff2(), CFormatGuess::TestFormatGff3(), CFormatGuess::TestFormatGtf(), CFormatGuess::TestFormatGvf(), CFormatGuess::TestFormatPsl(), CFormatGuess::TestFormatVcf(), CFormatGuess::TestFormatWiggle(), CFormatGuess::TestFormatXml(), TestTrnaAnticodonFromLastBioseq(), CLocationListCtrl::TransferDataFromWindow(), CPmidValidator::TransferFromWindow(), CNetScheduleConfigLoader::Transform(), TraverseAndRunTestCases(), CUnculTaxTool::TrimSuggestions(), CCodeGenerator::UndoGenerateCode(), CProjBulderApp::UpdateDepGraph(), NMItemData::UpdateTargetForCdsGeneProt(), NMItemData::UpdateTargetForDualRnas(), CCountries::USAStateCleanup(), CValidError_imp::Validate(), CPmidValidator::Validate(), ValidateAccessionString(), CValidError_imp::ValidateBioSource(), CValidError_imp::ValidateBioSourceForSeq(), CValidError_desc::ValidateDblink(), CValidError_bioseq::ValidateDupOrOverlapFeats(), CValidError_feat::ValidateInference(), CValidError_feat::ValidateInferenceAccession(), CAsnvalThreadState::ValidateInput(), CSubSource::ValidateLatLonCountry(), CValidError_bioseqset::ValidateNucProtSet(), CValidError_imp::ValidateOrgModVoucher(), CValidError_imp::ValidateOrgName(), CValidError_imp::ValidateOrgRef(), CValidError_imp::ValidatePubGen(), CValidError_bioseq::ValidateRawConst(), CValidError_bioseq::ValidateSeqDescContext(), CValidError_bioseq::ValidateSeqFeatContext(), CValidError_bioseq::ValidateSeqIds(), CBedTrackRecord::Write(), CCgiResponse::WriteHeader(), CIdMapperGCAssembly::x_AddAliasMappings(), CLinkUtils::x_AddDbxrefFeatureLinks(), CConvertGeneToRNA::x_AddGeneFieldsToComment(), CLinkUtils::x_AddLink(), CAutoDefFeatureClause_Base::x_AddOnetRNAIntergenicSpacerElement(), CAutoDefModifierCombo::x_AddOrgModString(), CFeatureItem::x_AddQualSeqfeatNote(), CFeatureItem::x_AddQualsVariation(), CFeatureItem::x_AddRecombinationClassQual(), CFeatureItem::x_AddRegulatoryClassQual(), CAutoDefModifierCombo::x_AddRequiredSubSourceModifiers(), CFeatureItem::x_AddRptUnitQual(), CSatelliteColumn::x_AddSatellitePrefix(), CStrainSerotypeInfluenza::x_AddToInfluenzaNames(), CAppendModToOrg::x_ApplyToBioSource(), CFixOrgModInst::x_ApplyToBioSource(), CRemoveUnpublishedPubs::x_ApplyToPubdesc(), CRemovePublishedPubs::x_ApplyToPubdesc(), SGridWorkerNodeImpl::x_AreMastersBusy(), variation::CHgvsParser::x_AsHgvsInstExpression(), CGvfWriteRecord::x_AssignAttributesCustom(), CNCMessageHandler::x_AssignCmdParams(), CSingleFeatValidator::x_BioseqHasNmAccession(), CFeaturePropagator::x_CdsCleanupPartials(), CFormatGuess::x_CheckJsonStart(), CAgpReader::x_CheckPragmaComment(), CSparseGraph::x_CheckRemoteData(), CDiffList::x_CleanupAndMerge_SingleEdits(), CCgiResponse::x_ClientSupportsChunkedTransfer(), CRegexpTemplateTester::x_Compare(), CFeatureGenerator::SImplementation::x_ConstructRnaName(), CNewCleanup_imp::x_ConvertGoQualifiers(), CTaxon1::x_ConvertOrgrefProps(), CBlastDBAliasApp::x_ConvertSeqIDFile(), CGBDataLoader_Native::x_CreateDriver(), CImportFeatTable::x_DoImportCDS(), CGenbankGatherer::x_DoSingleSection(), CDBSourceItem::x_ExtractLinkableSource(), CNewCleanup_imp::x_ExtractSatelliteFromComment(), CMiscSeqTable::x_FindIDColumn(), CAutoDefFeatureClause::x_FindNoncodingFeatureKeywordProduct(), CStrainSerotypeInfluenza::x_FixupOrganismNames(), CValidErrorFormat::x_FormatBadSpecificHostForSubmitterReport(), CValidErrorFormat::x_FormatGenericForSubmitterReport(), CDBSourceItem::x_GatherInfo(), CReferenceItem::x_GatherRemark(), CColumnarVCFReader::x_GatherSampleColNames(), CTableReaderMacro::x_GatherValuesAndMatchField(), CGeneFileWriter::x_Gene2Accn_ParseLine(), CGeneFileWriter::x_Gene2PM_ParseLine(), CGeneFileWriter::x_GeneInfo_ParseLine(), CMacroEditorContext::x_GetAsnPathToCdsGeneProt(), CMacroEditorContext::x_GetAsnPathtoGene(), CMacroEditorContext::x_GetAsnPathToRna(), CAssemblyInfo::x_GetAssmInfo(), COrgName::x_GetAttribFlag(), COrgName::x_GetAttribValue(), CCorrectGenesDialog::x_GetConstrainedList(), CAttribTableColumnIdPanel::x_GetConstraintField(), CUnculturedTool::x_GetCorrection(), CAutoDefFeatureClause::x_GetDescription(), CAutoDefFeatureClause::x_GetFeatureTypeWord(), CAssignQueryTreeGetArgs::x_GetFieldForSubname(), CDBPoolBalancer::x_GetFlags(), CMacroEditorContext::x_GetGUIFieldForBsrcText(), CMacroEditorContext::x_GetGUIFieldForCDS(), CMacroEditorContext::x_GetGUIFieldForCdsGeneProtRna(), CMacroEditorContext::x_GetGUIFieldForGene(), CMacroEditorContext::x_GetGUIFieldForMiscDescr(), CMacroEditorContext::x_GetGUIFieldForProtein(), CMacroEditorContext::x_GetGUIFieldForRNA(), CMiscSeqTable::x_GetIdColumnProps(), CTableReaderMacro::x_GetIterator(), CTableReaderMacro::x_GetMatchFieldConstraint(), CNSTServiceRegistry::x_GetMetadataServices(), CAltitudePanel::x_GetNumber(), CAutoDefFeatureClause::x_GetProductName(), CGuiObjectInfoSeq_feat::x_GetProductSequence(), CLocationListCtrl::x_GetRowData(), CNcbiTestApplication::x_GetTrimmedTestName(), CDustMaskApplication::x_GetWriter(), SegMaskerApplication::x_GetWriter(), CWinMaskConfig::x_GetWriter(), CCommandArgDescriptions::x_IdentifyCommand(), CReferenceItem::x_Init(), CMacroInterpreter::x_InsertFeatureType(), CMacroInterpreter::x_InsertFeatureTypeToWhereClause(), variation_ref::CHgvsParser::x_InstToString(), CTaxValidationAndCleanup::x_InterpretTaxonomyError(), CGFFReader::x_IsLineUcscMetaInformation(), x_IsLocalCDDEntryId(), CLayoutTrack::x_IsNCBITrack(), CStrainSerotypeInfluenza::x_IsParsableInfluenzaVirusName(), CCdregionValidator::x_IsProductMisplaced(), CSatelliteTypeNameColumn::x_IsQualAMatch(), CGRPCServerCallbacks::x_IsRealRequest(), CSeqTechDlg::x_IsSpecialTech(), CSeq_loc_Mapper::x_IsUCSCRandomChr(), CFeatureTableReader_Imp::x_IsWebComment(), CTraversalNode::x_LoadDataFromASNNode(), CFeaturePanel::x_LoadSettings(), CHTMLPage::x_LoadTemplateLib(), CSubSource::x_MeetsCommonChromosomeLinkageGroupPlasmidNameRules(), CTraversalCodeGenerator::x_MemberVarNameToArg(), CNewCleanup_imp::x_MovedNamedValuesInStrain(), CGraphTrack::x_OnJobCompleted(), CRegexpTemplateTester::x_Op_Skip(), CNewCleanup_imp::x_OrgnameModBC(), CGFFReader::x_ParseFeatRecord(), CGFFReader::x_ParseFeatureInterval(), CFeatureTableReader_Imp::x_ParseFeatureTableLine(), CUnicodeToAsciiTranslation::x_ParseLine(), CTraversalSpecFileParser::x_ParseMemberClause(), CFeatureTableReader_Imp::x_ParseTrnaExtString(), CTraversalSpecFileParser::x_ParseUseArgClause(), CNewCleanup_imp::x_PostProcessing(), CId2ReaderBase::x_ProcessGetBlobId(), CColumnarVCFReader::x_ProcessHeaderLine(), CCgiRequest::x_ProcessInputStream(), CGridClient::x_ProlongJobFieldLifetime(), CQueueDataBase::x_ReadDumpQueueDesrc(), CFeature_table_reader::x_ReadFeatureTable(), CQueueDataBase::x_ReadLinkedSections(), CNCActiveHandler::x_ReadPeerVersion(), CMacroFunction_StringFastConstraints::x_ReadSynonymsFor(), CMacroFunction_StringSlowConstraints::x_ReadSynonymsFor(), CCountries::x_RemoveDelimitersFromEnds(), CSeqGraphicPane::x_RenderTooltipConnector(), x_RepairCountryName(), CCompareWithBiosample::x_ReportBiosampleUpdate(), CValidError_bioseq::x_ReportOverlappingPeptidePair(), COrgName::x_ResetAttribFlag(), CGFFReader::x_ResolveNewSeqName(), CFeaturePanel::x_SaveSettings(), CFeatureGenerator::x_SetAnnotName(), CMasterContext::x_SetBaseName(), CSourceItem::x_SetSource(), CDeflineGenerator::x_SetTitleFromProtein(), CDeflineGenerator::x_SetTitleFromProteinIdx(), CDataLoadersUtil::x_SetupBlastDataLoader(), CValidError_bioseq::x_SetupCommonFlags(), CValidError_bioseq::x_ShowBioProjectWarning(), CUnculturedTool::x_StandardFixes(), CCorrectRNAStrandDlg::x_StrandFromString(), CMacroInterpreter::x_StructVoucherPartValidateArgs(), CAttribTableColumnIdPanel::x_TableReaderMacro(), CMatchFeatureTableDlg::x_TokenMatch(), CAutoDefFeatureClause_Base::x_tRNAGeneFromProduct(), CFeatureTableReader_Imp::x_TrnaToAaString(), CHugeFile::x_TryOpenMemoryFile(), CFeatureTableReader_Imp::x_TryToParseOffset(), CMacroInterpreter::x_UpdateFieldsForMatPeptide(), CSingleFeatValidator::x_ValidateCompareVal(), CValidError_bioseq::x_ValidateMolInfoForBioSource(), CMRNAValidator::x_ValidateMrna(), CProtValidator::x_ValidateProteinName(), CRNAValidator::x_ValidateTrnaType(), CNCActiveHandler::x_WaitOneLineAnswer(), CFeatTableEdit::xAddTranscriptAndProteinIdsToMrna(), CGtfReadRecord::xAssignAttributesFromGff(), CVcfReader::xAssigndbSNPTag(), CVcfReader::xAssignVariationIds(), Section::xBuildSubBlock(), CFeatTableEdit::xFeatureAddProteinIdCds(), CFeatTableEdit::xFeatureAddProteinIdDefault(), CFeatTableEdit::xFeatureAddProteinIdMrna(), CFeatTableEdit::xFeatureAddTranscriptIdCds(), CFeatTableEdit::xFeatureAddTranscriptIdDefault(), CFeatTableEdit::xFeatureAddTranscriptIdMrna(), CSoMap::xFeatureMakeImp(), CSoMap::xFeatureMakeRna(), CGtfReader::xFeatureTrimQualifiers(), xgbparselex_ver(), CBedReader::xGetData(), CWiggleReader::xGetData(), xGetGenBankBlocks(), CAutoSqlCustomField::xHandleSpecialCaseRgb(), CFeatLineReader::xIgnoreLine(), CBedLineReader::xIgnoreLine(), CAlnScannerClustal::xImportAlignmentData(), CAlnScannerFastaGap::xImportAlignmentData(), CAlnScannerMultAlign::xImportAlignmentData(), CGff3LineReader::xInitializeAttributes(), CGtfLineReader::xInitializeAttributes(), C5ColLineReader::xInitializeRecord(), CBedLineReader::xInitializeRgbFromRgbColumn(), CReaderBase::xIsBrowserLine(), CVcfReader::xIsCommentLine(), CGff2Reader::xIsFastaMarker(), CGff2Reader::xIsSequenceRegion(), CReaderBase::xIsTrackLine(), C5ColLineReader::xLineTypeOf(), CGff2Record::xMigrateAttributesGo(), CVcfReader::xNormalizeData(), CGff2Record::xNormalizedAttributeValue(), CReaderBase::xParseBrowserLine(), CWiggleReader::xParseBrowserLine(), CReaderBase::xParseComment(), CVcfReader::xParseData(), CQualParser::xParseQualifierStart(), CGff2Reader::xParseStructuredComment(), CBedReader::xParseTrackLine(), CGff3Reader::xProcessData(), CVcfReader::xProcessDataLine(), CWiggleReader::xProcessFixedStepData(), CVcfReader::xProcessHeaderLine(), CBedAutoSql::xProcessLine(), CVcfReader::xProcessMetaLine(), CVcfReader::xProcessMetaLineFilter(), CVcfReader::xProcessMetaLineFormat(), CVcfReader::xProcessMetaLineInfo(), CWiggleReader::xProcessVariableStepData(), CBedReader::xReadBedRecordRaw(), CAlnFormatGuesser::xSampleIsClustal(), CAlnFormatGuesser::xSampleIsFastaGap(), CAlnFormatGuesser::xSampleIsMultAlign(), CAlnFormatGuesser::xSampleIsNexus(), CBedReader::xSetFeatureColorFromItemRgb(), CVcfReader::xSetFileFormat(), CMultiReaderApp::xSetFormat(), and C5ColLineReader::xSplitLine().

◆ strcasecmp() [1/2]

template<typename _TChar >
static int XStr::strcasecmp ( const _TChar *  s1,
const _TChar *  s2 
)
inlinestatic

Definition at line 324 of file ncbi_xstr.hpp.

References CTempXStr< _TChar >::CompareNocase().

Referenced by XStr::CompareNocase().

◆ strcasecmp() [2/2]

int NStr::strcasecmp ( const char *  s1,
const char *  s2 
)
inlinestatic

Case-insensitive comparison of two zero-terminated strings.

Parameters
s1String to be compared – operand 1.
s2String to be compared – operand 2.
Returns
  • 0, if s1 == s2;
  • Negative integer, if s1 < s2;
  • Positive integer, if s1 > s2.
See also
strcmp(), strncmp(), strncasecmp()
Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 5220 of file ncbistr.hpp.

References strcasecmp, and tolower().

Referenced by BDB_StringCaseCompare(), NStr::CompareNocase(), and CAutoDefSourceGroup::x_SortDescriptions().

◆ strcmp() [1/2]

template<typename _TChar >
static int XStr::strcmp ( const _TChar *  s1,
const _TChar *  s2 
)
inlinestatic

Definition at line 312 of file ncbi_xstr.hpp.

References CTempXStr< _TChar >::CompareCase().

Referenced by XStr::CompareCase().

◆ strcmp() [2/2]

int NStr::strcmp ( const char *  s1,
const char *  s2 
)
inlinestatic

String compare.

Parameters
s1String to be compared – operand 1.
s2String to be compared – operand 2.
Returns
  • 0, if s1 == s2;
  • Negative integer, if s1 < s2;
  • Positive integer, if s1 > s2.
See also
strncmp(), strcasecmp(), strncasecmp()
Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 5208 of file ncbistr.hpp.

References util::strcmp().

Referenced by CNcbiApplicationAPI::AppMain(), NStr::CompareCase(), XSDParser::IsAttribute(), XSDParser::IsValue(), SConstCharCompare::operator()(), CCgiApplication::PreparseArgs(), and CObjectIStreamXml::ReadName().

◆ strftime()

size_t NStr::strftime ( char *  s,
size_t  maxsize,
const char *  format,
const struct tm *  timeptr 
)
inlinestatic

Wrapper for the function strftime() that corrects handling D and T time formats on MS Windows.

Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 5276 of file ncbistr.hpp.

References format, NStr::Replace(), and NStr::ReplaceInPlace().

◆ StringToBool()

bool NStr::StringToBool ( const CTempString  str)
static

Convert string to bool.

Parameters
strBoolean string value to be converted. Can recognize case-insensitive version as one of: TRUE - 'true, 't', 'yes', 'y', '1', 'on'; FALSE - 'false', 'f', 'no', 'n', '0', 'off'.
Returns
  • If conversion succeeds, set errno to zero and return TRUE or FALSE.
  • Otherwise, set errno to non-zero and throw an exception.

Definition at line 2821 of file ncbistr.cpp.

References s_kFalseString, s_kTrueString, and rapidjson::value.

Referenced by CPluginArgSet::AddDefaultArgument(), CPluginValue::AsBoolean(), CArg_Boolean::CArg_Boolean(), SInputValidator::CheckGetResults(), CPSGDataLoader_Impl::CPSGDataLoader_Impl(), CSubtreeBoundary::CreateShapes(), CMQueryFunctionValue::Evaluate(), CRegistryFile::FromConfigFile(), CConfig::GetBool(), IRegistry::GetBool(), CDataType::GetBoolVar(), CMsvcPrjProjectContext::GetConfigData(), CRR_Util::GetFieldValueConverted(), CMsvcPrjProjectContext::GetPchHeader(), CMsvcMetaMakefile::GetPchInfo(), CTaxon2_data::GetProperty(), CGraphOverlayFactory::GetSettings(), CGraphTrackFactory::GetSettings(), CSequenceTrackFactory::GetSettings(), CSixFramesTransTrackFactory::GetSettings(), CAlignmentTrackFactory::GetSettings(), CVcfTrackFactory::GetSettings(), CProjBulderApp::Gui_ConfirmConfiguration(), CCacheReader::InitializeCache(), CCacheWriter::InitializeCache(), CUsageReportAPI::IsEnabled(), CMsvcPrjProjectContext::IsPchEnabled(), CTempTrackProxy::LoadFromRegistry(), impl::CDriverContext::MakeConnection(), NCBITEST_INIT_TREE(), value_slice::CValueConvert< CP, string >::operator bool(), value_slice::CValueConvert< CP, const char * >::operator bool(), CProjBulderApp::ParseArguments(), STrackSettings::ParseSettings(), CJsonParser::ParseValue(), CQueryFuncPromoteBase::PreProcess(), CSGQueryNodeValue::PromoteTo(), SErrorEmulatorParameter::ReadBool(), CObjectIStreamJson::ReadBool(), CObjectIStreamXml::ReadName(), impl::CDriverContext::ResetEnvSybase(), CTableQueryExec::ResolveIdentifier(), CTreeQueryExec::ResolveIdentifier(), s_ConvertParamValue< bool >(), s_ConvertValue(), s_GetBoolValue(), s_GetDefaultUsePSG(), s_GetLogConfigBool(), s_LoadTempTrackRecursive(), s_ParseReadJobResponse(), s_WriteHeader(), CMacroPanelLoader::SetCtrlValue(), CApplyTableItemData::SetData(), CApplyStrCommTableTreeItemData::SetData(), CApplyRNATableTreeItemData::SetData(), IAddGapsInfo::SetData(), CNetCacheAPIParameters::StringToBool(), CParamParser< TDescription, TParam >::StringToValue(), CGeneModelConfig::UpdateSettings(), DTDParser::x_AttribValue(), CBlastUsageReport::x_CheckBlastUsageEnv(), CGBDataLoader_Native::x_CreateDriver(), CMacroInterpreter::x_EditRelFeatQualValidateArgs(), CMacroInterpreter::x_EditStringQualValidateArgs(), CMacroInterpreter::x_EditSubfieldValidateArgs(), CSDB_ConnectionParam::x_FillBoolParam(), CTableReaderMacro::x_GatherValuesAndMatchField(), CSnpTrackFactory::x_GetSettings(), CFeatureTrackFactory::x_GetSettings(), CGraphOverlay::x_LoadSettings(), CVarTrack::x_LoadSettings(), CVcfTrack::x_LoadSettings(), CEpigenomicsTrack::x_LoadSettings(), CGraphTrack::x_LoadSettings(), CSegmentMapTrack::x_LoadSettings(), CSequenceTrack::x_LoadSettings(), CAlignmentTrack::x_LoadSettings(), CSixFramesTransTrack::x_LoadSettings(), CIntronTrack::x_ParseSettings(), CVcfTrack::x_ParseSettings(), CCgiApplication::x_ProcessVersionRequest(), CMacroAdvStringConstraintPanel< T >::x_SetControls(), CMacroInterpreter::x_StoreParsingArguments(), and DTDParser::x_Value().

◆ StringToDouble()

double NStr::StringToDouble ( const CTempStringEx  str,
TStringToNumFlags  flags = 0 
)
static

Convert string to double.

Parameters
strString to be converted.
flagsHow to convert string to value. Do not support fAllowCommas flag.
Returns
  • If invalid flags are passed, throw an exception.
  • If conversion succeeds, set errno to zero and return the converted value.
  • Otherwise, if fConvErr_NoThrow is not set, throw an exception.
  • Otherwise, set errno to non-zero and return zero.
Note
  • Denormal or infinite results are considered successful conversion.
  • To enforce finite and normalized result, use fDecimalPosixFinite flag.

Definition at line 1387 of file ncbistr.cpp.

References flags, s_StringToDouble(), ncbi::grid::netcache::search::fields::size, and str().

Referenced by CPluginArgSet::AddDefaultArgument(), CAutoSqlCustomField::AddDouble(), CAccPatternCounter::AddName(), CRunOfDigits::AddString(), adjustPercentIdentToDisplayValue(), CPluginValue::AsDouble(), CGff2Record::AssignFromGff(), BOOST_AUTO_TEST_CASE(), CArg_Double::CArg_Double(), impl::CConnection::CConnection(), CGridCgiSampleApplication::CollectParams(), CDBLB_ServiceMapper::ConfigureFromRegistry(), CTableImportDataSource::ConvertToSeqAnnot(), CSubtreeBoundary::CreateShapes(), ASNParser::Double(), CMQueryFunctionValue::Evaluate(), CFilteringArgs::ExtractAlgorithmOptions(), CMappingArgs::ExtractAlgorithmOptions(), CSubSource::FixAltitude(), CRegistryFile::FromConfigFile(), g_GetConfigDouble(), CFeatGlyph::GetCustomColorIdx(), SInputValidator::GetDeadline(), CConfig::GetDouble(), IRegistry::GetDouble(), CTableDataBioTreeContainer::GetRealValue(), CJsonNode::GuessType(), CTableDataBioTreeContainer::Init(), CPhyloNodeData::InitFeatures(), GffUtil::InitializeScore(), CNcbiTestApplication::InitTestFramework(), CMatrixScoringMethod::Load(), impl::CDriverContext::MakePooledConnection(), NCBITEST_INIT_VARIABLES(), NSTValidateProlongValue(), CHistConfigDlg::OnHeightUpdated(), CGridWidget::OnSearchIncludeCellValue(), value_slice::CValueConvert< CP, string >::operator double(), value_slice::CValueConvert< CP, const char * >::operator double(), value_slice::CValueConvert< CP, string >::operator float(), value_slice::CValueConvert< CP, const char * >::operator float(), value_slice::CValueConvert< CP, string >::operator long double(), value_slice::CValueConvert< CP, const char * >::operator long double(), CVisitorAccumulateProperty::operator()(), CTreeConvertNonSingleChild2ContainerFunc< TBioTreeContainer, TTreeType >::operator()(), CJsonParser::ParseDouble(), CHttpRetryContext::ParseHeader(), CRepeatMaskerReader::ParseRecord(), CQueryFuncPromoteBase::PreProcess(), CPsgPerfApplication::PrintResult(), CPsgPerfApplication::ProcessLine(), CSGQueryNodeValue::PromoteTo(), CGlimmerReader::Read(), CDistanceMatrix::Read(), SErrorEmulatorParameter::ReadDouble(), CGlTestApplication::Render(), CTableQueryExec::ResolveIdentifier(), CTreeQueryExec::ResolveIdentifier(), RestoreModelAttributes(), s_ConvertValue(), s_GetBigBedSummary(), s_GetItem(), s_HtmlizeLatLon(), s_isAlnInFilteringRange(), s_IsNumber(), s_NodeToDistMat(), CGlyphContainer::SetComments(), CQueryFuncPromoteBase::SetCompareType(), CPhyloNodeData::SetMarkerColors(), CEditingActionDescUserObject::SetValue(), CUser_field::SetValue(), CParamParser< TDescription, TParam >::StringToValue(), CHydraServer::text(), CCleanupAlignmentsParamsPanel::TransferDataFromWindow(), CFloatTextValidator::TransferFromWindow(), CFloatTextValidator::Validate(), CArgAllowValuesGreaterThanOrEqual::Verify(), CArgAllowValuesLessThanOrEqual::Verify(), CArgAllowValuesBetween::Verify(), CArgAllow_Doubles::Verify(), CBLASTParams::x_ArgsToBlastOptions(), DTDParser::x_AttribValue(), CPubseqGatewayApp::x_ConvertDoubleParameter(), CIncreasingTime::x_GetDoubleParam(), CTableColumnTypeGuesser::x_GuessType(), CLatLonCountryMap::x_InitFromDefaultList(), CLatLonCountryMap::x_InitFromFile(), CFormatGuess::x_IsNumber(), CGFFReader::x_ParseAlignRecord(), CMacroVarAsk::x_ParseString(), CNcbiTestApplication::x_ReadConfiguration(), CNSTServiceRegistry::x_ReadProlongInTTLs(), NStr::x_StringToNumeric(), CAlignFilter::x_TermValue(), DTDParser::x_Value(), CGff2Reader::xAlignmentSetScore(), CVcfReader::xAssignVariantProps(), CBedLineReader::xInitializeRgbFromScoreColumn(), CBedLineReader::xInitializeScore(), CVcfReader::xParseData(), CGffDeconcatApp::xSetExtension(), CBedReader::xSetFeatureColorFromScore(), CBedReader::xSetFeatureScore(), CVcfReader::xSetFileFormat(), and CBedGraphWriter::xWriteSingleFeature().

◆ StringToDoubleEx()

double NStr::StringToDoubleEx ( const char *  str,
size_t  size,
TStringToNumFlags  flags = 0 
)
static

This version accepts zero-terminated string.

Deprecated:
It is unsafe to use this method directly, please use StringToDouble() instead.

Definition at line 1380 of file ncbistr.cpp.

◆ StringToDoublePosix()

double NStr::StringToDoublePosix ( const char *  str,
char **  endptr = 0,
TStringToNumFlags  flags = 0 
)
static

Convert string to double-precision value (analog of strtod function)

Parameters
strString to be converted.
endptrPointer to character that stops scan.
Returns
Double-precision value. This function always uses dot as decimal separator.
  • on overflow, it returns HUGE_VAL and sets errno to ERANGE;
  • on underflow, it returns 0 and sets errno to ERANGE;
  • if conversion was impossible, it returns 0 and sets errno. Also, when input string equals (case-insensitive) to
  • "NAN", the function returns NaN;
  • "INF" or "INFINITY", the function returns HUGE_VAL;
  • "-INF" or "-INFINITY", the function returns -HUGE_VAL;
Note
  • If conversion succeeds, set errno to zero and return the converted value.
  • Otherwise, set errno to non-zero and return zero.
  • Denormal or infinite results are considered successful conversion.
  • To enforce finite and normalized result, use fDecimalPosixFinite flag.
  • This function is meant to be more "low-level" than other StringToXxx functions - for example, it allows trailing characters (and doesn't include a flags parameter for tweaking such behavior). This could result in strings like "nanosecond" being converted to NaN, "-inf=input_file" being converted to -INF, or other unexpected behavior. Therefore, please consider using StringToDouble unless you specifically need this functionality.

Definition at line 984 of file ncbistr.cpp.

Referenced by CTableDataBioTreeContainer::GetRealValue(), CObjectIStreamAsn::ReadDouble(), CObjectIStreamAsnBinary::ReadDouble(), CObjectIStreamJson::ReadDouble(), and CObjectIStreamXml::ReadDouble().

◆ StringToEncoding()

EEncoding CUtf8::StringToEncoding ( const CTempString encoding_name)
static

Convert encoding name into EEncoding enum, taking into account synonyms as per http://www.iana.org/assignments/character-sets.

Parameters
encoding_nameName of the encoding
Returns
EEncoding enum; eEncoding_Unknown for unsupported encodings

Definition at line 6795 of file ncbistr.cpp.

◆ StringToInt()

int NStr::StringToInt ( const CTempString  str,
TStringToNumFlags  flags = 0,
int  base = 10 
)
static

Convert string to int.

Parameters
strString to be converted.
flagsHow to convert string to value.
baseRadix base. Allowed values are 0, 2..36. Zero means to use the first characters to determine the base - a leading "0x" or "0X" means base 16; otherwise a leading 0 means base 8; otherwise base 10.
Returns
  • If conversion succeeds, set errno to zero and return the converted value.
  • Otherwise, if fConvErr_NoThrow is not set, throw an exception.
  • Otherwise, set errno to non-zero and return zero.

Definition at line 630 of file ncbistr.cpp.

References flags, kMax_Int, S2N_CONVERT_ERROR, S2N_CONVERT_GUARD_EX, str(), NStr::StringToInt8(), and rapidjson::value.

Referenced by CTabDelimitedValidator::_MakeColumns(), AddAssemblyUserFieldsFromSeqTable(), CPluginArgSet::AddDefaultArgument(), AddFeatureSeqTableRowToSeqEntry(), CReadUtil::AddGeneOntologyTerm(), CAutoSqlCustomField::AddInt(), CSrcTableTaxonIdColumn::AddToBioSource(), CSrcTableDbxrefColumn::AddToBioSource(), CGeneticCodeColumn::AddToFeature(), AgpRead(), CConvertRptUnitRangeToLoc::apply(), CPluginValue::AsInteger(), CReadUtil::AsSeqId(), SNSCommandArguments::AssignValues(), BOOST_AUTO_TEST_CASE(), CGff3LocationRecord::CGff3LocationRecord(), CGtfLocationRecord::CGtfLocationRecord(), SInputValidator::CheckCtgTime(), SInputValidator::CheckJobKey(), CNetScheduleNotificationHandler::CheckJobStatusNotification(), CIgAnnotationInfo::CIgAnnotationInfo(), CkNonTerSP(), pub_report::ConvertPMCtoPMID(), CPepXML::ConvertScanID(), CPager::CPager(), CPSGS_IdModifiedVerFlavorId2Info::CPSGS_IdModifiedVerFlavorId2Info(), CPSGS_SatInfoChunksVerFlavorId2Info::CPSGS_SatInfoChunksVerFlavorId2Info(), CLDS2_DataLoaderCF::CreateAndRegister(), CDbapiCtlibCFBase::CreateInstance(), CDbapiOdbcCFBase::CreateInstance(), CSelection::CSelection(), CVersionAPI::CVersionAPI(), CWriteDB_LMDB::CWriteDB_LMDB(), CWriteDB_TaxID::CWriteDB_TaxID(), CSubSource::DateFromCollectionDate(), CSubSource::DetectDateFormat(), DTDParser::EnumeratedBlock(), CFilteringArgs::ExtractAlgorithmOptions(), CMappingArgs::ExtractAlgorithmOptions(), ExtractStatAlgoVersion(), CSeq_annot::ExtractZoomLevel(), CImportStrategy::FetchData(), CFilter::Filter(), CSubSource::FixDateFormat(), CRegistryFile::FromConfigFile(), g_GetConfigInt(), g_WorkerNodeInfoToJson(), gb_refs_common(), get_date(), get_muid(), get_num(), get_s_date(), CAssemblyInfo::GetAssms_Term(), CDataType::GetBoolVar(), CCgiRequest::GetCGIEntries(), CObjectIStreamAsn::GetChoiceIndex(), SRequestBuilder::SReader< SPsgCgiEntries >::GetChunkId(), GetCitBook(), CAddSecondary::GetCommand(), GetDataFromRN(), CSubSource::GetDateFromISODate(), CPager::GetDisplayedPage(), GetFeatureFromTableId(), CUser_field::GetFieldRef(), CwxAlnStatOptionsDlg::GetGraphHeight(), GetImprintPtr(), CConfig::GetInt(), IRegistry::GetInt(), CNetScheduleAPI::GetJobDetails(), CGraphTrack::GetLegend(), NSnp::GetLength(), CBulkLocationPanel::GetLocForBioseq(), GetLowTrace(), CObjectIStreamAsn::GetMemberIndex(), GetMTByQueriesBatchSize(), C5ColLineReader::GetNextRecord(), CIDs::GetNumber(), CPager::GetPageSize(), CDataLoaderFactory::GetPriority(), CTaxon2_data::GetProperty(), GetQueryBatchSize(), GetReleaseInfo(), GetReplacementSeqIds(), CApplyRNAITSDlg::GetRNAITSList_AlignCoordFromDlg(), CApplyRNAITSDlg::GetRNAITSList_SeqCoordFromDlg(), CMsvcProjectRuleMakefile::GetRulePriority(), CSixFramesTransTrackFactory::GetSettings(), CAlignmentTrackFactory::GetSettings(), CVcfTrackFactory::GetSettings(), CFindITSParser::GetSpan(), GetTaxIdWithWindowMaskerSupport(), CReadUtil::GetTrackOffset(), GetVariant(), CPubField::GuessDate(), CTableDataBioTreeContainer::Init(), SThrottleParams::SIOFailureThreshold::Init(), CPhyloNodeData::InitFeatures(), CPslData::Initialize(), InsertList(), CStringConstraint::IsInRange(), CSubSource::IsISOFormatDateOnly(), CSubSource::IsISOFormatTime(), CFormatGuess::IsLineGlimmer3(), CFormatGuess::IsLinePsl(), CPager::IsPagerCommand(), CGenomeProjectField::IsValid(), CRptUnitRangeColumn::IsValid(), CForeignContaminationScreenReportReader::LoadFile(), CSpectrumSet::LoadMultDTA(), CId1FetchApp::LookUpFlatSeqID(), FeatUtil::MakeCodeBreak(), impl::CDriverContext::MakeConnection(), impl::CDriverContext::MakePooledConnection(), CDiagStrErrCodeMatcher::Match(), ASNParser::Number(), CTrackData::Offset(), CCompareWithBiosample::OnClickOk(), CApplyRNAITSDlg::OnCtrlFromKillFocus(), CApplyRNAITSDlg::OnCtrlToKillFocus(), CPhyloTreeWidget::OnInfoTip(), CAlnPropertiesDlg::OnOkClick(), CwxPhyloSettingsDlg::OnOkClick(), CwxTreeLabelEdit::OnOkClick(), CwxSeqMarkerSetDlg::OnOkClick(), CPhyloTreeWidget::OnSearchTip(), CPhyloTreeWidget::OnTipActivated(), CPhyloTreeWidget::OnZoomTip(), value_slice::CValueConvert< CP, string >::operator Int1(), value_slice::CValueConvert< CP, const char * >::operator Int1(), value_slice::CValueConvert< CP, string >::operator Int2(), value_slice::CValueConvert< CP, const char * >::operator Int2(), value_slice::CValueConvert< CP, string >::operator Int4(), value_slice::CValueConvert< CP, const char * >::operator Int4(), SNetScheduleAPIImpl::SServerParamsSync::operator()(), SPriorityCollapse::operator()(), CIdResolverCanonical::operator()(), CGridCommandLineInterfaceApp::SOptions::SNCID::Parse(), ParseAccessionRange(), CProjBulderApp::ParseArguments(), XSDParser::ParseEnumeration(), CFormattingArgs::ParseFormattingString(), XSDParser::ParseMaxOccurs(), SDiagMessage::ParseMessage(), XSDParser::ParseMinOccurs(), JSDParser::ParseNode(), CRepeatMaskerReader::ParseRecord(), SSNP_Info::ParseSeq_feat(), ParseSequenceRange(), ParseSequenceRangeOpenEnd(), CDBUriConnParams::ParseServer(), STrackSettings::ParseSettings(), CCgi2RCgiApp::PopulatePage(), CQueryFuncPromoteBase::PreProcess(), PrintErrorArchive(), PrintSAM(), CSplitCacheApp::Process(), AlnUtil::ProcessDataLine(), PrositePatternLength(), CGlimmerReader::Read(), CConversionApp::Read(), CGeneFileUtils::ReadGeneInfo(), SErrorEmulatorParameter::ReadInt(), CPhrap_Contig::ReadTag(), CSearchHelper::ReadTaxFile(), CSeqTestApplication::Render(), CNetScheduleNotificationHandler::RequestJobWatching(), CBlastdbConvertApp::Run(), CGridCommandLineInterfaceApp::Run(), CMagicBlastApp::Run(), CTax4BlastDemo::Run(), CAnalyzeShiftApp::Run(), CTbl2AsnApp::Run(), CMultiApplication::Run(), CXcompareAnnotsApplication::Run(), CPrimeCacheApplication::Run(), CId2FetchApp::Run(), CDemoApp::Run(), CClientGenomicCollectionsSvcApplication::RunWithService(), s_AddCDS(), s_AddFastMeSubtree(), s_AddPubmedLinksRow(), CTrackMgrClient::s_Ask(), s_ChooseMonthAndDay(), s_ChrName(), s_ConvertFastMeTree(), s_ConvertValue(), s_CopyToIntColumn(), s_DbtagParse(), s_GetBigBedFeats(), s_GetChildNum(), s_GetDetails(), CCompareSeqRegions::s_GetGeneId(), s_GetRangeFromString(), s_GetRoundNumber(), CAgpToSeqEntry::s_LocalSeqIdFromStr(), s_OldGetTaxIdWithWindowMaskerSupport(), s_ParseErrCodeInfoStr(), s_PreFetchSeqs(), s_ReadServerParams(), s_RptUnitIsBaseRange(), s_SetFeatId(), s_StringToCodeBreak(), s_TestResultTreeContainer(), s_TestTree(), s_TraverseDynTree(), s_TraverseTree(), s_UnpackContainerField(), s_URLDecode(), impl::CDriverContext::SatisfyPoolMinimum(), CAsnSubCacheCreateApplication::SBlobVersion::SBlobVersion(), SCigarAlignment::SCigarAlignment(), SSnpFilter::SerializeFrom(), CIgBlastTabularInfo::SetAirrFormatData(), CGlResMgr::SetApiLevel(), CQueryFuncPromoteBase::SetCompareType(), CApplyTableItemData::SetData(), CApplyStrCommTableTreeItemData::SetData(), CApplyRNATableTreeItemData::SetData(), IAddGapsInfo::SetData(), CFlexibleDatePanel::SetDate(), CAutoSqlStandardFields::SetDisplayData(), CSearchDatabase::SetFilteringAlgorithm(), CDiagContext::SetProperty(), IEditMacroFunction::SetQualStringValue(), CPhyloSelectionSetMgr::SetSelectionSetProperty(), CSeq_annot_SplitInfo::SetSeq_annot(), CGenomeProjectField::SetVal(), CEditingActionBiosourceDbxref::SetValue(), CEditingActionDescGenomeProjectId::SetValue(), CEditingActionDescUserObject::SetValue(), CEditingActionFeatDbxref::SetValue(), CEditingActionFeatTranslExcept::SetValue(), CEditingActionFeatTranslTable::SetValue(), CSeqTableGrid::SetValue(), CHookTax_id::SkipClassMember(), sParseVersion(), SpecNumber(), SplitQuery_GetChunkSize(), SplitQuery_GetOverlapChunkSize(), SPSG_ThrottleParams::SThreshold::SThreshold(), CParamParser< TDescription, TParam >::StringToValue(), TestDelay(), CESearchGeneric::Text(), CHydraServer::text(), CCleanupAlignmentsParamsPanel::TransferDataFromWindow(), CProSplignPanel::TransferDataFromWindow(), CLocationListCtrl::TransferDataFromWindow(), CPublishedRefPanel::TransferDataFromWindow(), CSingleAssemblyTrackingPanel::TransferDataFromWindow(), CSingleRefGeneTrackLocPanel::TransferDataFromWindow(), CFeatureFilterDlg::TransferDataFromWindow(), CSingleCDSExceptionPanel::TransferDataFromWindow(), CSingleDbxref_SubPanel::TransferDataFromWindow(), CTableImportListCtrl::UpdateColumnNames(), SPSG_Request::UpdateItem(), CwxPhyloSettingsDlg::UpdateSample(), CGeneModelConfig::UpdateSettings(), CGapFeatValidator::Validate(), CValidError_bioseq::ValidateWGSMaster(), CArgAllowGeneticCodeInteger::Verify(), CConversionApp::Write(), CMsvcConfigure::WriteExtraDefines(), CMacroFunction_SetPubDate::x_AddDate(), CSixFramesTransTrack::x_AddTranslations(), CSourceModParser::x_ApplyMods(), SGridWorkerNodeImpl::x_AreMastersBusy(), CBLASTParams::x_ArgsToBlastOptions(), CNCMessageHandler::x_AssignCmdParams(), CCreateGeneModelTask::x_AssignIDsAndUpdateGenes(), CSeqDBImpl::x_BuildMaskAlgorithmList(), CGLCanvas::x_CheckGlVersion(), CDebugDumpViewer::x_CheckLocation(), CAliasTest::x_CheckNumber(), CBlastUsageReport::x_CheckRunEnv(), CSeqDBVol::x_CheckVersions(), CPubseqGatewayApp::x_ConvertIntParameter(), CFindOverlapJob::x_CreateProjectItems(), CNgAlignApp::x_CreateSequenceSet(), CDisplaySeqalign::x_DisplayAlignSortInfo(), CShowBlastDefline::x_DisplayDeflineTable(), CAlnGraphic::x_DisplayMaster(), CCpgSearchJob::x_DoSearch(), COrfSearchJob::x_DoSearch(), CSDB_ConnectionParam::x_FillLowerParams(), CDisplaySeqalign::x_FormatAlignSortInfo(), CGeneFileWriter::x_Gene2Accn_ParseLine(), CGeneFileWriter::x_Gene2PM_ParseLine(), CGeneFileWriter::x_GeneInfo_ParseLine(), variation_ref::CHgvsParser::x_general_pos(), variation::CHgvsParser::x_general_pos(), CBlastHitMatrixCGIApplication::x_GetCGIContextParams(), CRelaxedLookupDlg::x_GetPubIds(), CRelaxedLookupDlg::x_GetSearchTerms(), CVarTrackFactory::x_GetSettings(), CMacroEngineParallel::x_GetThreadCount(), CPubseqGatewayApp::x_GetTimeSeries(), CTableColumnTypeGuesser::x_GuessType(), CAsn2FastaApp::x_InitOStreams(), CBlastDBCmdApp::x_InitSearchRequest(), CPhyTreeFormatter::x_InitTreeFeatures(), variation_ref::CHgvsParser::x_int_fuzz(), variation::CHgvsParser::x_int_fuzz(), CFeaturePanel::x_LoadSettings(), CGraphOverlay::x_LoadSettings(), CGraphTrack::x_LoadSettings(), CSegmentMapTrack::x_LoadSettings(), CAlignmentTrack::x_LoadSettings(), CSixFramesTransTrack::x_LoadSettings(), CTaxonCache::x_LoadTaxonCache(), CDisplaySeqalign::x_MapDefLine(), CDB_ODBC_ConnParams::x_MapPairToParam(), CPhyloTreePriorityNode::x_OnStep(), CDiagStrErrCodeMatcher::x_Parse(), CSplitQueryTestFixture::x_ParseConfigLine(), CRebase::x_ParseCutPair(), CFeatureTrack::x_ParseSettings(), CGFFReader::x_ParseStructuredComment(), CFindOverlapJob::x_PrepareAligner(), CGlCgiImageApplication::x_PreProcess(), CCgiFontTestApp::x_PreProcess(), CAlnMultiCGIApplication::x_PreProcess(), CBlastDBCmdApp::x_ProcessBatchPig(), NSnpGui::x_ProcessDbgaptext(), CNetScheduleHandler::x_ProcessMsgBatchHeader(), variation_ref::CHgvsParser::x_prot_ext(), variation::CHgvsParser::x_prot_ext(), variation_ref::CHgvsParser::x_prot_fs(), variation::CHgvsParser::x_prot_fs(), CNCActiveHandler::x_ReadFoundMeta(), CNCActiveHandler::x_ReadSyncGetAnswer(), CNCActiveHandler::x_ReadSyncProInfoAnswer(), CRPSBlastApp::x_RunMTBySplitQuery(), CRPSTBlastnApp::x_RunMTBySplitQuery(), CwxSeqTextViewOptions::x_SaveSettings(), CUCSCRegionReader::x_SetFeatureLocation(), CUrl::x_SetPort(), CMacroInterpreter::x_SetPubDateValidateArgs(), CDisplaySeqalign::x_ShowAlnvecInfoTemplate(), variation_ref::CHgvsParser::x_ssr(), variation::CHgvsParser::x_ssr(), NStr::x_StringToNumeric(), CDescrModApply::x_TryOrgNameMod(), CFeatureTableReader_Imp::x_TryToParseOffset(), ASNParser::x_Type(), CValidError_imp::x_ValidatePages(), CGff2Reader::xAlignmentSetDenseg(), CGff2Reader::xAlignmentSetSpliced_seg(), CVcfReader::xAssigndbSNPTag(), CVcfReader::xAssignVariantProps(), CBedReader::xContainsRnaFeature(), CBedReader::xContainsThickFeature(), CBedReader::xDetermineLikelyColumnCount(), CAlnScannerMultAlign::xGetExpectedDataSize(), CGff2Reader::xGetStartsOnMinusStrand(), CGff2Reader::xGetStartsOnPlusStrand(), CAutoSqlCustomField::xHandleSpecialCaseRgb(), CAlnScannerClustal::xImportAlignmentData(), CAlnScannerPhylip::xImportAlignmentData(), CBedLineReader::xInitializeBlocks(), CBedLineReader::xInitializeChromInterval(), CGff3ImportData::xInitializeDataCds(), CGff3LineReader::xInitializeLocation(), CGtfLineReader::xInitializeLocation(), C5ColLineReader::xInitializeRecord(), CBedLineReader::xInitializeRgbFromRgbColumn(), CBedLineReader::xInitializeThickInterval(), CGff2Record::xMigrateAttributes(), XMLRefs(), CVcfReader::xParseData(), CAlnScannerNexus::xProcessDimensions(), CBedLineReader::xProcessTrackLine(), CBedReader::xReadBedRecordRaw(), CAlnFormatGuesser::xSampleIsMultAlign(), CAlnFormatGuesser::xSampleIsSequin(), CReaderBase::xSetBrowserRegion(), CBedReader::xSetFeatureColorFromItemRgb(), CBedReader::xSetFeatureDisplayData(), CMicroArrayReader::xSetFeatureDisplayData(), CBedReader::xSetFeatureLocation(), CMicroArrayReader::xSetFeatureLocation(), CBedReader::xSetFeatureLocationCds(), CBedReader::xSetFeatureLocationThick(), CBedReader::xSetFeatureScore(), CMultiReaderApp::xSetFlags(), and CGff2Reader::xSetSplicedExon().

◆ StringToInt8()

Int8 NStr::StringToInt8 ( const CTempString  str,
TStringToNumFlags  flags = 0,
int  base = 10 
)
static

Convert string to Int8.

Parameters
strString to be converted.
flagsHow to convert string to value.
baseRadix base. Allowed values are 0, 2..36. Zero means to use the first characters to determine the base - a leading "0x" or "0X" means base 16; otherwise a leading 0 means base 8; otherwise base 10.
Returns
  • If conversion succeeds, set errno to zero and return the converted value.
  • Otherwise, if fConvErr_NoThrow is not set, throw an exception.
  • Otherwise, set errno to non-zero and return zero.

Definition at line 793 of file ncbistr.cpp.

Referenced by CSeqDB_NSeqsWalker::AddString(), CBlastDBAliasApp::ConvertGiFile(), CMQueryFunctionValue::Evaluate(), CSeqDBGiList::FindId(), CSeqDBNegativeList::FindId(), g_FixMisplacedPID(), g_LegacyStatToJson(), g_WorkerNodeInfoToJson(), SRequestBuilder::SReader< SPsgCgiEntries >::GetBlobId(), CObject_id::GetIdType(), SRequestBuilder::SReader< SPsgCgiEntries >::GetIpg(), CRemoteBlast::GetResultSet(), CEntrezDB::GetUidAttr(), CJsonNode::GuessType(), CPublicationTypePanel::OnDoiLookup(), CPubseqGatewayApp::OnStatistics(), value_slice::CValueConvert< CP, string >::operator Int8(), value_slice::CValueConvert< CP, const char * >::operator Int8(), CVisitorAccumulateProperty::operator()(), CJsonParser::ParseInt(), CSGQueryNodeValue::PromoteTo(), CObjectIStreamJson::ReadInt8(), CAgpRow::ReadSeqPos(), CTableQueryExec::ResolveIdentifier(), CTreeQueryExec::ResolveIdentifier(), s_ConvertValue(), s_StringToInt8(), s_UseThisSeqToTextSeqID(), CAsnSubCacheCreateApplication::SBlobVersion::SBlobVersion(), SeqDB_SimplifySeqid(), CDiagContext::SetProperty(), NStr::StringToInt(), CMacroFunction_SetPubDateField::TheFunction(), CWriteDB_IsamIndex::x_AddTraceIds(), CNCMessageHandler::x_AssignCmdParams(), DTDParser::x_AttribValue(), CAliasTest::x_CheckNumber8(), CMacroFunction_EditStringQual::x_EditFields(), CMacroVarAsk::x_ParseString(), CCompoundIDDumpParser::x_ReadInt8(), NStr::x_StringToNumeric(), and DTDParser::x_Value().

◆ StringToLong()

long NStr::StringToLong ( const CTempString  str,
TStringToNumFlags  flags = 0,
int  base = 10 
)
static

Convert string to long.

Parameters
strString to be converted.
flagsHow to convert string to value.
baseRadix base. Allowed values are 0, 2..36. Zero means to use the first characters to determine the base - a leading "0x" or "0X" means base 16; otherwise a leading 0 means base 8; otherwise base 10.
Returns
  • If conversion succeeds, set errno to zero and return the converted value.
  • Otherwise, if fConvErr_NoThrow is not set, throw an exception.
  • Otherwise, set errno to non-zero and return zero.

Definition at line 653 of file ncbistr.cpp.

Referenced by CIdMapperConfig::AddMapEntry(), CBlastDBSeqId::CBlastDBSeqId(), CTableDataBioTreeContainer::GetIntValue(), CPubseqGatewayApp::OnTestIO(), value_slice::CValueConvert< CP, string >::operator long(), value_slice::CValueConvert< CP, const char * >::operator long(), s_GetItem(), s_SetEnumValue(), IAddGapsInfo::SetData(), SetSimpleTypeValue(), CPMCIDConverterServer::start_element(), CSeqUtils::StringToRange(), CFeatureTableReader_Imp::x_AddQualifierToCdregion(), CFeatureTableReader_Imp::x_AddQualifierToFeature(), CPubseqGatewayApp::x_ConvertIntParameter(), CMacroFunction_EditStringQual::x_EditFields(), CTimeSpan::x_Init(), CTime::x_Init(), CNewCleanup_imp::x_IsDotBaseRange(), CNewCleanup_imp::x_IsHyphenBaseRange(), CMacroFunction_RemoveOutside::x_RmvOutsideFields(), CFeatureTableReader_Imp::x_StringToLongNoThrow(), and NStr::x_StringToNumeric().

◆ StringToNonNegativeInt()

int NStr::StringToNonNegativeInt ( const CTempString  str,
TStringToNumFlags  flags = 0 
)
static

◆ StringToNumeric() [1/3]

template<typename TNumeric >
static bool NStr::StringToNumeric ( const CTempString  str,
TNumeric *  value,
TStringToNumFlags  flags = 0,
int  base = 10 
)
inlinestatic

Convert string to a numeric value.

Parameters
str[in] String to be converted.
value[out] The numeric value represented by "str". Zero on any error.
flags[in] Optional flags to tune up how the string is converted to value.
base[in] Radix base. Allowed values are 0, 2..36. Zero means to use the first characters to determine the base - a leading "0x" or "0X" means base 16; otherwise a leading 0 means base 8; otherwise base 10.
Returns
  • If conversion succeeds, set errno to zero, set the value, and return true.
  • Otherwise, if fConvErr_NoThrow is not set, throw an exception.
  • Otherwise, set errno to non-zero, set the value to zero, and return false.

Definition at line 356 of file ncbistr.hpp.

References flags, str(), rapidjson::value, and NStr::x_StringToNumeric().

◆ StringToNumeric() [2/3]

template<typename TNumeric >
static TNumeric NStr::StringToNumeric ( const CTempString  str,
TStringToNumFlags  flags = 0,
int  base = 10 
)
inlinestatic

Convert string to a numeric value.

Parameters
strString to be converted.
flagsOptional flags to tune up how the string is converted to value.
baseRadix base. Allowed values are 0, 2..36. Zero means to use the first characters to determine the base - a leading "0x" or "0X" means base 16; otherwise a leading 0 means base 8; otherwise base 10.
Returns
  • If conversion succeeds, set errno to zero and return the converted value.
  • Otherwise, if fConvErr_NoThrow is not set, throw an exception.
  • Otherwise, set errno to non-zero and return zero.

Definition at line 330 of file ncbistr.hpp.

References flags, and str().

Referenced by CCassPrm::AsInt16(), CCassPrm::AsInt32(), CCassPrm::AsInt64(), CCassPrm::AsInt8(), CEndpointKey::CEndpointKey(), cmpTableValues(), CDBLB_ServiceMapper::ConfigureFromRegistry(), CSequenceIStreamBlastDB::CSequenceIStreamBlastDB(), CTL_Connection::CTL_Connection(), CGlTextureFont::FromString(), g_LoadLinkageEvidence(), CCassBlobOp::GetBigBlobSizeLimit(), CCassBlobOp::GetBlobChunkSize(), CRR_Util::GetFieldValueConverted(), CSeqDB::GetMaskAlgorithmDetails(), CECitMatch_Request::GetResponse(), impl::CDriverContext::MakeConnection(), CProcessor::OffsetId(), CPubmedFetchApplication::Run(), s_IsNumericId(), s_ParseInt(), CDirEntry::SetOwner(), CSeq_id_Resolver__ChrNamesFromGC::x_Create(), CDBPoolBalancer::x_GetPoolMax(), CMakeBlastDBApp::x_ProcessMaskData(), CODBC_Connection::x_SetConnAttributesBefore(), and SAccGuide::x_SplitSpecial().

◆ StringToNumeric() [3/3]

static int NStr::StringToNumeric ( const string str)
inlinestatic
Deprecated:
Use template-based StringToNumeric<> or StringToNonNegativeInt() instead.

Definition at line 380 of file ncbistr.hpp.

References str(), and NStr::StringToNonNegativeInt().

◆ StringToPtr()

const void * NStr::StringToPtr ( const CTempStringEx  str,
TStringToNumFlags  flags = 0 
)
static

Convert string to pointer.

Parameters
strString to be converted.
flagsHow to convert string to value. Only fConvErr_NoErrMessage flag is supported here.
Returns
Pointer value corresponding to its string representation.
  • If conversion succeeds, set errno to zero and return the converted value.
  • Otherwise, set errno to non-zero and return NULL.

Definition at line 2781 of file ncbistr.cpp.

Referenced by CPluginObject::PostRead(), and CDataLoaderFactory::x_GetObjectManager().

◆ StringToSizet()

size_t NStr::StringToSizet ( const CTempString  str,
TStringToNumFlags  flags = 0,
int  base = 10 
)
static

Convert string to size_t.

Parameters
strString to be converted.
flagsHow to convert string to value.
baseRadix base. Allowed values are 0, 2..36. Zero means to use the first characters to determine the base - a leading "0x" or "0X" means base 16; otherwise a leading 0 means base 8; otherwise base 10.
Returns
  • If conversion succeeds, set errno to zero and return the converted value.
  • Otherwise, if fConvErr_NoThrow is not set, throw an exception.
  • Otherwise, set errno to non-zero and return zero.

Definition at line 1769 of file ncbistr.cpp.

Referenced by CJob::CompareAuthToken(), g_FindSegs(), CVcfVariant::ParseInfoColumns(), CGridCommandLineInterfaceApp::Run(), s_ESearchQuery(), CNcbiApplicationAPI::x_HonorStandardSettings(), and CDensegGraphicDataSource::x_InitCigar().

◆ StringToUInt()

unsigned int NStr::StringToUInt ( const CTempString  str,
TStringToNumFlags  flags = 0,
int  base = 10 
)
static

Convert string to unsigned int.

Parameters
strString to be converted.
flagsHow to convert string to value.
baseRadix base. Allowed values are 0, 2..36. Zero means to use the first characters to determine the base - a leading "0x" or "0X" means base 16; otherwise a leading 0 means base 8; otherwise base 10.
Returns
  • If conversion succeeds, set errno to zero and return the converted value.
  • Otherwise, if fConvErr_NoThrow is not set, throw an exception.
  • Otherwise, set errno to non-zero and return zero.

Definition at line 642 of file ncbistr.cpp.

Referenced by SAccGuide::AddRule(), CSeqDB_MaxLengthWalker::AddString(), CSeqDB_MinLengthWalker::AddString(), CSeqDB_MembBitWalker::AddString(), CSeqDB_OidMaskTypeWalker::AddString(), CAutoSqlCustomField::AddUint(), CGroupExplode::apply(), CGff2Record::AssignFromGff(), SNSCommandArguments::AssignValues(), BOOST_AUTO_TEST_CASE(), CDebugDumpViewer::Bpt(), impl::CConnection::CConnection(), CDBInterfacesFileConnParams::CDBInterfacesFileConnParams(), CFastaBioseqSource::CFastaBioseqSource(), CGridCommandLineInterfaceApp::Cmd_Suspend(), cmp_labels(), CJob::CompareAuthToken(), CSeqDBAliasNode::ComputeMasks(), CCgi2RCgiApp::CreateContextWithFlags(), CSQLITE3_BlobCacheCF::CreateInstance(), CSeqMaskerIstatAscii::CSeqMaskerIstatAscii(), CVCFVariantList::CVCFVariantList(), CDbapiSimpleApp::DemoDynamicSql(), CSdbapiSimpleApp::DemoDynamicSql(), DirectCompareFunction(), CSrzPath::FindAccPath(), CContElemConverter< CCgiEntry >::FromString(), CRgbaColor::FromString(), CCgiRequest::GetContentLength(), CGencollSvc::GetGenCollService(), CVariantDescriptors::GetMaxFeatureLength(), CTableSelectionBioTreeContainer::GetSelection(), CPhyTreeView::GetSelection(), CNCDistributionConf::GetSlotByNetCacheKey(), CSraMgr::GetSpotInfo(), CCgi2RCgiApp::GetStatus(), CAutoDefFeatureClause_Base::GroupConsecutiveExons(), CNCDistributionConf::InitMirrorConfig(), IsStringInSpan(), CMessageHandlerThrowOnError::IsTaxidQuery(), CRequestContext::IsValidSessionID(), CNSStartIDs::Load(), make_server(), value_slice::CValueConvert< CP, string >::operator Uint1(), value_slice::CValueConvert< CP, const char * >::operator Uint1(), value_slice::CValueConvert< CP, string >::operator Uint2(), value_slice::CValueConvert< CP, const char * >::operator Uint2(), value_slice::CValueConvert< CP, string >::operator Uint4(), value_slice::CValueConvert< CP, const char * >::operator Uint4(), visitor_taxid_query::operator()(), CArgs::operator[](), CMaskFromFasta::ParseDataLine(), CFastaReader::ParseGapLine(), CVCFVariantList::ParseLine(), CSeqUtils::ParseRanges(), CRepeatMaskerReader::ParseRecord(), CObjFingerprint::ParseSignature(), CNcbiApplogApp::ParseToken(), CNCActiveSyncControl::PrintState(), CSuspendProcessor::Process(), CAckAlertProcessor::Process(), CDistanceMatrix::Read(), SNetICacheClientImpl::ReadCurrentBlobNotOlderThan(), CWig2tableApplication::ReadFixedStep(), CBDB_SplitTest::ReadTestSet(), CWig2tableApplication::ReadVariableStep(), CCgi2RCgiApp::RenderPage(), CDemoContigAssemblyApp::Run(), CGridCommandLineInterfaceApp::Run(), CNcbiApplogApp::Run(), SGridWorkerNodeImpl::Run(), CXcompareAnnotsApplication::Run(), s_GetNextLogPrefix(), s_GetNumDbsPerChunk(), s_IsSuccessor(), s_SocketConnectorBuilder(), SCompartmentData::SCompartmentData(), CTableDataBioTreeContainer::SelectTaxIds(), CAutoSqlStandardFields::SetLocation(), SPatternUnit::SPatternUnit(), CNetScheduleAdmin::StatusSnapshot(), CDirEntry::StringToMode(), sx_GetReadId(), CNCBlobStorage::WriteDbInfo(), CSourceModParser::x_ApplyGenomeProjectsDBMods(), CNCMessageHandler::x_AssignCmdParams(), CWriteDB_LMDB::x_CommitTransaction(), CGBDataLoader_Native::x_CreateDriver(), CTreeBuilderJob::x_CreateProjectItems(), SNetCacheAPIImpl::x_ExtractBlobAge(), CVCFVariantsBase::x_Filter(), CRemoteBlast::x_GetPsiIterationsFromServer(), CNcbiApplicationAPI::x_HonorStandardSettings(), CThreadedApp::x_InitializeThreadGroups(), CSeqDBIsam::x_LoadData(), CSeqDBIsam::x_LoadStringData(), variation_ref::CHgvsParser::x_nuc_inv(), CGFFReader::x_ParseAlignRecord(), CGff2Reader::x_ParseDbtag(), CGFFReader::x_ParseFeatureInterval(), CUnicodeToAsciiTranslation::x_ParseLine(), CURLTooltipHandler::x_ParseUnalignedRegionHref(), CArgDescriptions::x_PostCheck(), CFilterColumnsDlg::x_ProcessSelectionPattern(), SErrorEmulatorParameter::x_ReadCommon(), CNCActiveHandler::x_ReadFoundMeta(), CNCActiveHandler::x_ReadSyncGetAnswer(), CNCActiveHandler::x_ReadSyncProInfoAnswer(), CDescrModApply::x_SetGenomeProjects(), NStr::x_StringToNumeric(), CFormatGuess::x_TryProcessCLUSTALSeqData(), SGridWorkerNodeImpl::x_WNCoreInit(), CGtfReader::xFeatureSetDataCds(), CGvfReader::xFeatureSetLocationInterval(), CGvfReader::xFeatureSetLocationPoint(), CWiggleReader::xGetFixedStepInfo(), CWiggleReader::xGetVariableStepInfo(), CBedAutoSql::xProcessLine(), CBedReader::xSetFeatureLocationBlock(), and CBedReader::xSetFeatureLocationRna().

◆ StringToUInt8()

Uint8 NStr::StringToUInt8 ( const CTempString  str,
TStringToNumFlags  flags = 0,
int  base = 10 
)
static

Convert string to Uint8.

Parameters
strString to be converted.
flagsHow to convert string to value.
baseRadix base. Allowed values are 0, 2..36. Zero means to use the first characters to determine the base - a leading "0x" or "0X" means base 16; otherwise a leading 0 means base 8; otherwise base 10.
Returns
  • If conversion succeeds, set errno to zero and return the converted value.
  • Otherwise, if fConvErr_NoThrow is not set, throw an exception.
  • Otherwise, set errno to non-zero and return zero.

Definition at line 873 of file ncbistr.cpp.

Referenced by CSeqDB_TotalLengthWalker::AddString(), CNetCacheReader::CNetCacheReader(), g_WorkerNodeInfoToJson(), CNetCacheAPI::GetBlobSize(), CNetICacheClient::GetBlobSize(), CUrlUtils::GetRemoteFileSize(), CCgi2RCgiApp::GetStatus(), CNCDistributionConf::InitMirrorConfig(), CRequestContext::IsValidSessionID(), CESearchParser< T >::OnEndElement(), value_slice::CValueConvert< CP, string >::operator Uint8(), value_slice::CValueConvert< CP, const char * >::operator Uint8(), SDiagMessage::ParseMessage(), CNcbiApplogApp::ParseToken(), CObjectIStreamJson::ReadUint8(), CGridCommandLineInterfaceApp::Run(), CNcbiApplogApp::Run(), s_FraqToNanosec(), s_GetDiskSpace_PANFS(), s_ParseInt(), s_ParsePAXNumeric(), s_SetJobExpTime(), CNCBlobAccessor::UpdatePurgeData(), CNCMessageHandler::x_AssignCmdParams(), CTar::x_ExtractSparseFile(), CColumnarVCFReaderApp::x_ParseRange(), CWriteDB_Impl::x_Publish(), CNCActiveHandler::x_ReadFoundMeta(), CNCActiveHandler::x_ReadHttpDataPrefix(), CNCActiveHandler::x_ReadPeerVersion(), CNCActiveHandler::x_ReadSizeToRead(), CNCActiveHandler::x_ReadSyncGetAnswer(), CNCActiveHandler::x_ReadSyncProInfoAnswer(), CNCActiveHandler::x_ReadSyncStartAnswer(), CCompoundIDDumpParser::x_ReadUint8(), NStr::x_StringToNumeric(), CDebugDumpViewer::x_StrToPtr(), and CUCSCRegionReader::xParseFeatureUCSCFormat().

◆ StringToUInt8_DataSize() [1/2]

Uint8 NStr::StringToUInt8_DataSize ( const CTempString  str,
TStringToNumFlags  flags,
int  base 
)
static

Convert string to number of bytes.

String can contain "software" qualifiers: MB(megabyte), KB (kilobyte). Example: 100MB, 1024KB Note the qualifiers are power-of-2 based, aka kibi-, mebi- etc, so that 1KB = 1024B (not 1000B), 1MB = 1024KB = 1048576B, etc.

Parameters
strString to be converted.
flagsHow to convert string to value.
baseNumeric base of the number (before the qualifier). Allowed values are 0, 2..20. Zero means to use the first characters to determine the base - a leading "0x" or "0X" means base 16; otherwise a leading 0 means base 8; otherwise base 10. The base is limited to 20 to prevent 'K' from being interpreted as a digit in the number.
Returns
  • If conversion succeeds, set errno to zero and return the converted value.
  • Otherwise, if fConvErr_NoThrow is not set, throw an exception.
  • Otherwise, set errno to non-zero and return zero.
Deprecated:
Use StringToUInt8_DataSize(str, flags) instead.

Definition at line 1461 of file ncbistr.cpp.

◆ StringToUInt8_DataSize() [2/2]

Uint8 NStr::StringToUInt8_DataSize ( const CTempString  str,
TStringToNumFlags  flags = 0 
)
static

Convert string that can contain "software" qualifiers to Uint8.

String can contain "software" qualifiers: G(giga-), MB(mega-), KiB (kibi-) etc. Example: 100MB, 1024KiB, 5.7G. Meaning of qualifiers depends on flags and by default is 1000-based (i.e. K=1000, M=10^6 etc.) except in cases when qualifiers with "iB" are used, i.e. KiB=1024, MiB=1024^2 etc. When flags parameter contains fDS_ForceBinary then qualifiers without "iB" (i.e. "K" or "MB") will also be 1024-based. String can contain a decimal fraction (except when fDS_ProhibitFractions flag is used), in this case the resultant Uint8 number will be rounded to fit into integer value.

Parameters
strString to be converted.
flagsHow to convert string to value.
Returns
  • If invalid flags are passed, throw an exception.
  • If conversion succeeds, return the converted value.
  • Otherwise, if fConvErr_NoThrow is not set, throw an exception.
  • Otherwise, set errno to non-zero and return zero.

Definition at line 1539 of file ncbistr.cpp.

Referenced by BDB_CreateEnv(), CArg_DataSize::CArg_DataSize(), CCgiApplication::CheckMemoryLimit(), ConfigureLogging(), CTableImportDataSource::ConvertToSeqAnnot(), CConfig::GetDataSize(), CNCDistributionConf::Initialize(), SQueueParameters::ReadMaxInputSize(), SQueueParameters::ReadMaxOutputSize(), BlastdbCopyApplication::Run(), s_GetAmbiguityCacheSize(), s_ReadVariableParams(), CMakeBlastDBApp::x_BuildDatabase(), CMakeClusterDBApp::x_BuildDatabase(), CTableColumnTypeGuesser::x_GuessType(), CNcbiApplicationAPI::x_HonorStandardSettings(), CAlignmentTrack::x_LoadSettings(), and SGridWorkerNodeImpl::x_WNCoreInit().

◆ StringToULong()

unsigned long NStr::StringToULong ( const CTempString  str,
TStringToNumFlags  flags = 0,
int  base = 10 
)
static

Convert string to unsigned long.

Parameters
strString to be converted.
flagsHow to convert string to value.
baseRadix base. Allowed values are 0, 2..36. Zero means to use the first characters to determine the base - a leading "0x" or "0X" means base 16; otherwise a leading 0 means base 8; otherwise base 10.
Returns
  • If conversion succeeds, set errno to zero and return the converted value.
  • Otherwise, if fConvErr_NoThrow is not set, throw an exception.
  • Otherwise, set errno to non-zero and return zero.

Definition at line 665 of file ncbistr.cpp.

Referenced by CTimeSpan::AssignFromSmartString(), BrBookURLToCCddBookRef(), CAddFluComments::ConcatIds(), CSmallDNS::IsValidIP(), value_slice::CValueConvert< CP, string >::operator unsigned long(), value_slice::CValueConvert< CP, const char * >::operator unsigned long(), SRetryProcessing::operator()(), CAddFluComments::SCompareStr::operator()(), CNcbiApplogApp::ParseToken(), s_FixPages(), SErrorEmulatorParameter::x_ReadCommon(), NStr::x_StringToNumeric(), CDebugDumpViewer::x_StrToPtr(), CBedReader::xDetermineLikelyColumnCount(), CBedLineReader::xInitializeRgbFromRgbColumn(), and CBedReader::xSetFeatureColorFromItemRgb().

◆ strncasecmp() [1/2]

template<typename _TChar >
static int XStr::strncasecmp ( const _TChar *  s1,
const _TChar *  s2,
size_t  n 
)
inlinestatic

Definition at line 330 of file ncbi_xstr.hpp.

References CTempXStr< _TChar >::CompareNocase(), and n.

◆ strncasecmp() [2/2]

int NStr::strncasecmp ( const char *  s1,
const char *  s2,
size_t  n 
)
inlinestatic

Case-insensitive comparison of two zero-terminated strings, narrowed to the specified number of characters.

Parameters
s1String to be compared – operand 1.
s2String to be compared – operand 2.
Returns
  • 0, if s1 == s2;
  • Negative integer, if s1 < s2.
  • Positive integer, if s1 > s2.
See also
strcmp(), strcasecmp(), strcasecmp()
Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 5247 of file ncbistr.hpp.

References n, strncasecmp, and tolower().

Referenced by CConnTest::CheckFWConnections(), NStr::EqualNocase(), CObjectIStreamAsn::ReadDouble(), s_DoesTextContainOnlyTheseWords(), s_DumpHeader(), s_NoCaseEqual(), s_OSReason(), CConnTest::StatefulOkay(), CProjBulderApp::UseAbsolutePath(), CValidError_bioseqset::ValidatePopSet(), and CTime::x_Init().

◆ strncmp() [1/2]

template<typename _TChar >
static int XStr::strncmp ( const _TChar *  s1,
const _TChar *  s2,
size_t  n 
)
inlinestatic

Definition at line 318 of file ncbi_xstr.hpp.

References CTempXStr< _TChar >::CompareCase(), and n.

◆ strncmp() [2/2]

int NStr::strncmp ( const char *  s1,
const char *  s2,
size_t  n 
)
inlinestatic

String compare up to specified number of characters.

Parameters
s1String to be compared – operand 1.
s2String to be compared – operand 2.
nNumber of characters in string
Returns
  • 0, if s1 == s2;
  • Negative integer, if s1 < s2;
  • Positive integer, if s1 > s2.
See also
strcmp(), strcasecmp(), strncasecmp()
Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 5214 of file ncbistr.hpp.

References n, and util::strncmp().

Referenced by NStr::EqualCase(), CNetCacheServerListener::OnErrorImpl(), and CNCMessageHandler::x_ReadAuthMessage().

◆ substr() [1/4]

CTempString CTempString::substr ( size_type  pos) const
inline

Obtain a substring from this string, beginning at a given offset.

Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 776 of file tempstr.hpp.

References CTempString::CTempString().

Referenced by CSeqTableLocColumns::AddColumn(), CTitleParser::Apply(), CRawSeqToDeltaSeqByLoc::apply_impl(), CGRPCServerCallbacks::BeginRequest(), BOOST_AUTO_TEST_CASE(), CRawSeqToDeltaSeqByLoc::ByAssemblyGapFeatures_impl(), CEndpointKey::CEndpointKey(), NStr::Compare(), CSeqTableSetAnyObjField::CSeqTableSetAnyObjField(), CDiff::Diff(), DoesSingleStringMatchConstraint(), NStr::Equal(), NStr::EqualCase(), NStr::EqualNocase(), SAccGuide::Find(), ICitationBase::FixPages(), fta_add_hist(), fta_if_wgs_acc(), g_IsDataFileOld(), CAutoDefFeatureClause_Base::GetFeatureClausePhrases(), CDbXrefColumn::GetFromFeat(), CCodonsRecColumn::GetFromFeat(), CAntiCodonColumn::GetFromFeat(), CTagPeptideColumn::GetFromFeat(), CFieldHandlerNamePanel::GetMacroFieldName(), CDBLinkField::GetNormalizedDBLinkFieldName(), NMItemData::GetResolveFuncForPubQual(), GetTwoFieldSubfield(), GetWGSMasterSeq_id(), CFastaReader::IsValidLocalID(), CFastaIdValidate::IsValidLocalString(), make_server(), variation::Ncbieaa2HgvsAA(), CWGSDb_Impl::NormalizePathOrAccession(), CFastaDeflineReader::ParseDefline(), CFastaReader::ParseGapLine(), CFeatureTableReader_Imp::ParseInitialFeatureLine(), CSNPBlobId::ParseNA(), CWGSDb_Impl::ParseRowType(), CSourceModParser::ParseTitle(), ParseTrack(), CAltValidator::ProcessQueue(), CColumnarVCFReader::ReadHeader(), CFastaReader::ReadOneSeq(), s_CheckForFastaTag(), CAgpToSeqEntry::s_LocalSeqIdFromStr(), s_ParseFastaIdString(), s_ProcessECNumberLine(), s_URLDecode(), s_WriteLine(), CTextseq_id::Set(), CSeq_id::Set(), sGetAccession(), sGetMods(), CWGSDb_Impl::SProtAccInfo::SProtAccInfo(), sSetLocusLineOffsets(), CMacroLib::StoreSynonymList(), CDiffList::x_CleanupAndMerge_Equities(), CDiff::x_Diff(), CDiff::x_DiffBisectSplit(), CDiff::x_DiffHalfMatchI(), CCSraShortReadIterator::x_GetReadData(), CWGSDb_Impl::x_InitIdParams(), CString_constraint::x_MatchFound(), CPoolBalancer::x_NameToKey(), CRegexpTemplateTester::x_Op_Skip(), CShortReadFastaInputSource::x_ParseDefline(), CCorrectRNAStrandDlg::x_ProcessRNAStrandLine(), CNCActiveHandler::x_ReadHttpDataPrefix(), CNCActiveHandler::x_ReadSizeToRead(), CValidError_bioseq::x_ReportDuplicatePubLabels(), CDeflineGenerator::x_SetTitleFromBioSrc(), CDeflineGenerator::x_SetTitleFromMap(), CDeflineGenerator::x_SetTitleFromPDB(), CDeflineGenerator::x_SetTitleFromWGS(), SAccGuide::x_SplitSpecial(), CRegexpTemplateTester::x_SubstituteVars(), CFeatureTableReader_Imp::x_TryToParseOffset(), and CGff2Record::xNormalizedAttributeValue().

◆ substr() [2/4]

CTempStringEx CTempStringEx::substr ( size_type  pos) const
inline

◆ substr() [3/4]

CTempString CTempString::substr ( size_type  pos,
size_type  len 
) const
inline

Obtain a substring from this string, beginning at a given offset and extending a specified length.

Definition at line 783 of file tempstr.hpp.

References CTempString::CTempString(), and len.

◆ substr() [4/4]

CTempStringEx CTempStringEx::substr ( size_type  pos,
size_type  len 
) const
inline

Obtain a substring from this string, beginning at a given offset and extending a specified length.

Definition at line 1021 of file tempstr.hpp.

References CTempStringEx::CTempStringEx(), CTempString::data(), CTempStringEx::eNoZeroAtEnd, len, CTempStringEx::m_ZeroAtEnd, max(), and CTempString::size().

◆ SymbolToChar() [1/2]

char CUtf8::SymbolToChar ( TUnicodeSymbol  sym,
const locale lcl 
)
static

Convert Unicode code point into encoded character.

Parameters
symUnicode code point (symbol)
lclCharacter locale
Returns
Encoded character

Definition at line 6940 of file ncbistr.cpp.

References SLocaleEncoder::ToUnicode().

◆ SymbolToChar() [2/2]

char CUtf8::SymbolToChar ( TUnicodeSymbol  sym,
EEncoding  encoding 
)
static

Convert Unicode code point into encoded character.

Parameters
symUnicode code point (symbol)
encodingCharacter encoding
Returns
Encoded character

Definition at line 6864 of file ncbistr.cpp.

Referenced by CObjectIStreamJson::ReadEncodedChar(), CObjectOStreamXml::WriteEncodedChar(), and CObjectIStreamXml::x_ReadEncodedChar().

◆ ToLower() [1/3]

char * NStr::ToLower ( char *  str)
static

Convert string to lower case – char* version.

Parameters
strString to be converted.
Returns
Lower cased string.

Definition at line 395 of file ncbistr.cpp.

References str(), and tolower().

◆ ToLower() [2/3]

static void NStr::ToLower ( const char *  )
staticprivate

Privatized ToLower() with const char* parameter to prevent passing of constant strings.

◆ ToLower() [3/3]

string & NStr::ToLower ( string str)
static

Convert string to lower case – string& version.

Parameters
strString to be converted.
Returns
Lower cased string.

Definition at line 405 of file ncbistr.cpp.

References NON_CONST_ITERATE, str(), and tolower().

Referenced by CTabDelimitedValidator::_ProcessHeader(), CMultiReader::AddAnnots(), CMultiReader::AddAnnotToMap(), CPseudoPanel::AddCommand(), CGff2Record::AssignFromGff(), CTimeSpan::AssignFromSmartString(), CSubSource::AutoFix(), CFieldChoicePanel::AutoMatchSrc(), BDB_CreateEnv(), CGRPCServerCallbacks::BeginRequest(), CAlignFormatUtil::BuildFormatQueryString(), CBioTreeSelection::CBioTreeSelection(), CELinkParser< T >::CELinkParser(), CFlatSubSourcePrimer::CFlatSubSourcePrimer(), AlnUtil::CheckId(), CheckSTRAND(), CheckTPG(), CPCRPrimerSeq::Clean(), CTextUtil::CleanJournalTitle(), NSnp::ClinSigAsString(), NSnpGui::ClinSigFromString(), CNcbiLogFields::CNcbiLogFields(), CBlastOptionsBuilder::ComputeProgram(), CTraversalSpecFileParser::CDescFileNode::ConvertToMemberMacro(), CreateActionCdsGeneProt(), CreateActionFeat(), CreateActionRna(), CTrackConfigManager::CreateDisplayName(), CBlastOptionsFactory::CreateTask(), CStringConstraint::DoesTextMatch(), SBuildInfo::ExtraNameXml(), CAttribMenu::FindItem(), CSubSource::FixCapitalization(), FixCapitalizationInElement(), FixCapitalizationInString(), FixOrdinalNumbers(), CGb_qual::FixRecombinationClassValue(), CSubSource::FixSexQualifierValue(), CFlatAnticodonQVal::Format(), g_GetNormalizedModVal(), g_ServerInfoToJson(), CNewCleanup_imp::GBQualSeqFeatBC(), CAuthListValidator::get_lastnames(), CBlastOptionsFactory::GetDocumentation(), NMItemData::GetExistingTextDescr(), CBioTreeSelection::GetFeatureId(), CApplyAuthorsTreeItemData::GetMacroDescription(), ILayoutTrackFactory::GetMatchedAnnots(), GetNormalizedSeqId(), CGenericPropsPanel::GetPseudoChoice(), CGBDataLoader_Native::GetReaderWriterName(), NMItemData::GetResolveFuncForPubQual(), GetStateAbbreviation(), COrgMod::GetSubtypeValue(), CSubSource::GetSubtypeValue(), CImageIO::GetTypeFromFileName(), CAggregateFeatureTrack::GetTypeList(), CSeqIdGuesser::Guess(), CTableColumnTypeGuesser::GuessColumn(), CBioTreeSelection::HasFeature(), CMacroFlowEditor::ImportLibrary(), IsAllLowerCase(), CPaintSequence::IsClipboard(), CAlignFormatUtil::IsMixedDatabase(), CGenericPropsPanel::IsPseudo(), CLayoutTrack::isRemotePath(), CPSGS_CassProcessorBase::IsTimeoutError(), CSubSource::IsValidSexQualifierValue(), COrgMod::IsValidSubtypeName(), CSubSource::IsValidSubtypeName(), CCgiApplication::LogRequest(), CAutoLowerCase::lowercase(), CHttpCookie::MatchDomain(), CwxPhyloEditDlg::OnButton4Click(), CPaintSequence::OnPaste(), CHttpCookie::Parse(), ParseVersionString(), CWordPairIndexer::PopulateWordPairIndex(), CSeqDBGiList::PreprocessIdsForISAMSiLookup(), CSeqDBNegativeList::PreprocessIdsForISAMSiLookup(), CHttpRequest::PrintLogFields(), CDiagContext::PrintStart(), ProgramNameToEnum(), CAttribMenu::RemoveItem(), CAttribMenu::RemoveMenuR(), CRegistryReadView::ResolveField(), CNcbiApplogApp::Run(), CTAbleValApp::Run(), CTestApplication::Run(), s_AddLatencyOptions(), s_AppendPrimerSeqs(), CMacroFunction_ConvertLocStrand::s_ConvertLocationStrand(), s_ConvertMetaData(), s_EncodeMetadataName(), s_FixQualCapitalization(), s_GetFind(), s_GetNormalizedString(), s_GetRadioBoxLabelForItem(), CSequenceUpdater::s_GetValidExtension(), s_init_UseGeoLocNameForCountry(), s_NormalizeLinkageEvidenceString(), s_PostProcessID(), s_ResetLibInstallKey(), s_ToLower(), s_UnpackUserField(), NSnpGui::SelectClinSigTerm(), SeqDB_ReadMemoryMixList(), SeqDB_SimplifyAccession(), SeqDB_SimplifySeqid(), CConservationScoringMethod::SetConservedOption(), CHttpCookie::SetDomain(), CTabularFormatter::SetFormat(), CGlyphContainer::SetHighlights(), CELinkParser< T >::SetLinkName(), CGffBaseColumns::SetType(), CAnnotImportData::SetValue(), SeverityToLowerString(), CReadInSkipObjectHook< Object >::SkipObject(), sParseGeneOntologyTerm(), StringToEAlignFormat(), SuspiciousId(), CMacroFunction_Autodef::TheFunction(), CMacroFunction_AutodefComplete::TheFunction(), CPaintSequence::TranslateCDS(), CPaintSequence::UpdateData(), CAnnotImportData::ValueOf(), CProjBulderApp::VerifyArguments(), CCountries::WholeCountryFix(), CFeatureItem::x_AddFTableAnticodon(), CSeqIdGuesser::x_AddIdString(), CFeatureTableReader_Imp::x_AddQualifierToFeature(), CFeatureItem::x_AddQualsVariation(), CNewCleanup_imp::x_AddReplaceQual(), CReferenceItem::x_CapitalizeTitleIfNecessary(), CGb_qual::x_CleanupRptAndReplaceSeq(), CNetStorageHandler::x_ConvertMetadataArgument(), CNSClientId::x_ConvertToClaimedType(), CGBDataLoader_Native::x_CreateDriver(), CNetStorageHandler::x_CreateUser(), CDisplaySeqalign::x_DisplayMpvAnchor(), CString_constraint::x_DoesSingleStringMatchConstraint(), COrfSearchJob::x_DoSearch(), CVcfFeatureJob::x_Execute(), CTableImportDataSource::x_FindHeaderRows(), CMatchesListCtrl::CUVHitCmp::x_FindStrongestMatchType(), CGapStatsApplication::x_GapNameToGapXMLNodeName(), CSubtreeBoundary::x_GetColorParameter(), CSubtreeBoundary::x_GetParameter(), CPhyloNodeData::x_GetParameter(), CTableAnnotDataSource::x_GetStrand(), CConvert2BlastMaskApplication::x_GetWriter(), CFeatureItem::x_ImportQuals(), CDll::x_Init(), CUrl::x_IsHostPort(), CFeaturePanel::x_LoadSettings(), CGeneModelTrack::x_NeedHighlight(), CSegmentMapTrack::x_NeedHighlight(), CFeatureTrack::x_NeedHighlight(), CDisplaySeqalign::x_PrepareRowData(), CNetStorageHandler::x_ProcessGetAttr(), CNetStorageHandler::x_ProcessGetUserObjects(), CNetStorageHandler::x_ProcessSetAttr(), CProtValidator::x_ReportUninformativeNames(), CTraversalNode::x_TemplatizeType(), x_TitleFromChromosome(), CRemoveGeneXrefTreeItemData::x_TranslateType(), CCassConnectionFactory::x_ValidateArgs(), CVcfWriter::x_WriteFeatureInfo(), CFastaOstream::x_WriteSequence(), CGvfWriter::xAssignFeatureAttributes(), CGff3Writer::xAssignFeatureAttributesQualifiers(), CVcfReader::xAssignVariationIds(), CQualCleanup::xCleanToLower(), CSrcWriter::xCompressFieldName(), C5ColImportData::xFeatureSetType(), CMultiReader::xGetAnnotLoader(), CAlnScannerNexus::xGetArgPos(), CAlnScanner::xGetExistingSeqIdInfo(), CAutoSqlCustomField::xHandleSpecialCaseRgb(), CAlnScannerNexus::xImportAlignmentData(), CAlnScannerPhylip::xImportAlignmentData(), CGff3LineReader::xInitializeAttributes(), CGtfLineReader::xInitializeAttributes(), CGtfLineReader::xInitializeType(), CGff2Reader::xIsFastaMarker(), CGff2Reader::xIsSequenceRegion(), CBedAutoSql::xParseAutoSqlColumnDef(), CAlnScannerNexus::xProcessCommand(), CAlnScannerNexus::xProcessDataBlockCommand(), CGff3AnnotAssembler::xProcessFeatureDefault(), CAlnScannerNexus::xProcessNCBIBlockCommand(), CAlnScannerNexus::xProcessTaxaBlockCommand(), CAlnFormatGuesser::xSampleIsClustal(), CAlnFormatGuesser::xSampleIsNexus(), and CAlnScannerNexus::xUnexpectedEndBlock().

◆ ToUpper() [1/3]

char * NStr::ToUpper ( char *  str)
static

Convert string to upper case – char* version.

Parameters
strString to be converted.
Returns
Upper cased string.

Definition at line 414 of file ncbistr.cpp.

References str(), and toupper().

◆ ToUpper() [2/3]

static void NStr::ToUpper ( const char *  )
staticprivate

Privatized ToUpper() with const char* parameter to prevent passing of constant strings.

◆ ToUpper() [3/3]

string & NStr::ToUpper ( string str)
static

Convert string to upper case – string& version.

Parameters
strString to be converted.
Returns
Upper cased string.

Definition at line 424 of file ncbistr.cpp.

References NON_CONST_ITERATE, str(), and toupper().

Referenced by CBoyerMooreMatcher::AddDelimiters(), CSeqSearch::AddNucleotidePattern(), SAccGuide::AddRule(), CTextFsm< MatchType >::AddWord(), BlastFindMatrixPath(), CBlastFormatUtil::BlastGetVersion(), BOOST_AUTO_TEST_CASE(), CAlignFormatUtil::BuildFormatQueryString(), CapitalizeAfterApostrophe(), python::CConnection::CConnection(), CGencollService::CGencollService(), CSubSource::CheckCellLine(), CSeq_id::ComposeOSLT(), CwxExportVectorImageDlg::Create(), CwxExportAlnmultiImgDlg::Create(), CSubstMatrix::CSubstMatrix(), DateToString(), CPkgManager::DependsOn(), CFlatFileMessage::Dump(), CSrzPath::FindAccPath(), CSNPDb_Impl::FindSeq(), CFlatFileViewContext::FindSequence(), CTextItemPanel::FindText(), FixAffiliationShortWordsInElement(), FixCapitalizationInString(), CPkgManager::GetBasePkgs(), GetCanadaStateAbbreviation(), CPkgManager::GetDependentPkgs(), CValidErrorFormat::GetDescriptorContent(), CWGSDataLoader_Impl::GetFileInfoByAcc(), CWGSDataLoader_Impl::GetFileInfoByGeneral(), GetFirstInitial(), CWriteUtil::GetIdType(), GetLabel(), CSeq_id::GetLabel(), CCit_book::GetLabelV2(), CCit_sub::GetLabelV2(), CAutoDef::GetOneDefLine(), CWGSDb_Impl::GetProtAccRowId(), CCommentItem::GetRefTrackStatus(), CAlnReader::GetSeqAlign(), CVDBGraphDb_Impl::GetSeqInfo(), CMolinfo_field::GetSequenceQualFromBioseq(), GetStateAbbreviation(), CCommentItem::GetStringForTPA(), CVcfGlyph::GetTooltip(), CSeq_id::IdentifyAccession(), InitSpellChecker(), IsAllCaps(), CPDB_seq_id::IsChainConflict(), CPkgManager::LoadPackages(), CWGSDb_Impl::Lookup(), CMSHits::MakePepString(), CDiscrepancyPanel::OnFindNext(), CDiscrepancyPanel::OnFindPrev(), CDiscrepancyPanel::OnFindText(), CwxExportVectorImageDlg::OnTimer(), CVcfVariant::ParseInfoColumns(), CFeatTableEdit::ProcessCodonRecognized(), CPhrap_Seq::ReadData(), CNcbiEnvRegMapper::RegToEnv(), CWGSClient::ResolveGeneral(), CWGSClient::ResolveWGSAcc(), CCleanup::s_CleanupGenomeAssembly(), s_CreateThirdPartyLibsInstallMakefile(), CMacroFunction_FixPubCaps::s_FixCapitalizationInAuthor(), CMacroFunction_FixPubCaps::s_FixCapsInPubAffil_Sub(), s_FormatCitBook(), s_FormatCitBookArt(), s_GetConfigString(), s_GetDescription(), s_HeaderToHttp(), variation::CHgvsParser::s_hgvsaa2ncbieaa(), s_IsAllowedHeaderList(), s_MakeUniquenessVal(), s_PreProcessAccessionsForDBv5(), s_ProcessCellLineLine(), s_RunBlast2NWSeq(), s_SetReplaces(), s_SetTrnaProduct(), s_SettRNAProduct(), s_TokenizeTRnaString(), sAbbreviate(), CPkgManager::ScanPackages(), CConnTest::ServiceOkay(), CSeq_id::Set(), CPkgManager::SetAppPkg(), CBlastDBExtractor::SetSeqId(), CEditingActionFeatCodonsRecognized::SetValue(), CGBQualDirectionPanel::SetValue(), CBoyerMooreMatcher::SetWordDelimiters(), CWGSDb_Impl::SProtAccInfo::SProtAccInfo(), CConnTest::StatefulOkay(), CDiscrepancyVisitorImpl< _Name >::Summarize(), CGAssemblyPanel::TransferDataFromWindow(), CCodonsStringListValidator::TransferFromWindow(), CAutoLowerCase::uppercase(), CTable2AsnValidator::ValReportErrorStats(), CFixAffilCap::x_ApplyToCAffil(), CNCMessageHandler::x_AssignCmdParams(), CBlastUsageReport::x_CheckRunEnv(), CHgvsNaIrepReader::x_CreateIUPACna(), CCreateNeedlemanWunschJob::x_CreateProjectItems(), COrfSearchJob::x_DoSearch(), CIgBlast::x_FindDJAln(), CEnvironmentRegistry::x_Get(), CWGSResolver_VDB::x_GetAccPrefixes(), CPkgManager::x_GetBasePkgs(), CNSAffinityRegistry::x_GetDumpFileName(), CNSGroupsRegistry::x_GetDumpFileName(), CTraversalCodeGenerator::x_GetIncludeGuard(), CQueue::x_GetJobsDumpFileName(), x_GetLabel_Content(), CCit_art::x_GetLabelV2(), SDiagMessage::x_GetModule(), CTableColumnTypeGuesser::x_GuessType(), CBoyerMooreMatcher::x_InitPattern(), CWriteDB_LMDB::x_InsertEntry(), CPkgManager::x_LoadPackage(), CSeedTop::x_ParsePattern(), CPSGS_AsyncResolveBase::x_PrepareSecondaryAsIsSi2csiQuery(), CBlastFormat::x_PrintAirrRearrangement(), CBlastFormat::x_PrintIgTabularReport(), CBlastFormat::x_PrintTabularReport(), CGenBankLoadOptionPanel::x_ProccessText(), CIgBlast::x_ProcessDGeneResult(), CPssmEngine::x_PSIMatrix2Asn1(), variation_ref::CHgvsParser::x_raw_seq(), variation::CHgvsParser::x_raw_seq(), CAppNWA::x_ReadFastaFile(), CPSGS_ResolveBase::x_ResolveAsIsInCache(), CTreeQueryExec::x_ResolveFunctionName(), CPSGS_ResolveBase::x_ResolveViaComposeOSLTInCache(), CEnvironmentRegistry::x_Set(), CEnvironmentRegistry::x_Unset(), and CPkgManager::x_ValidatePackage().

◆ TransformJoin()

template<typename TIterator , typename FTransform >
string NStr::TransformJoin ( TIterator  from,
TIterator  to,
const CTempString delim,
FTransform  fnTransform 
)
static
Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 5560 of file ncbistr.hpp.

References kEmptyStr, and result.

Referenced by NStr::x_Join().

◆ TrimPrefix_Unsafe()

CTempString NStr::TrimPrefix_Unsafe ( const CTempString  str,
const CTempString  prefix,
ECase  use_case = eCase 
)
static

Trim prefix from a string.

"Unsafe" counterpart to TrimPrefixInPlace().

Parameters
strString to trim from.
prefixPrefix to remove. If string doesn't have specified prefix, it doesn't changes.
use_caseWhether to do a case sensitive compare (default is eCase), or a case-insensitive compare (eNocase) while checking for a prefix.
Attention
The lifespan of the result string is the same as one of the source. So, for example, if the source is temporary string, or it changes somehow, then the result will be invalid right away (will point to already released or wrong range in the memory).
See also
TrimPrefixInPlace

Definition at line 3266 of file ncbistr.cpp.

◆ TrimPrefixInPlace() [1/2]

void NStr::TrimPrefixInPlace ( CTempString str,
const CTempString  prefix,
ECase  use_case = eCase 
)
static

Definition at line 3254 of file ncbistr.cpp.

◆ TrimPrefixInPlace() [2/2]

void NStr::TrimPrefixInPlace ( string str,
const CTempString  prefix,
ECase  use_case = eCase 
)
static

◆ TrimSuffix_Unsafe()

CTempString NStr::TrimSuffix_Unsafe ( const CTempString  str,
const CTempString  suffix,
ECase  use_case = eCase 
)
static

Trim suffix from a string.

"Unsafe" counterpart to TrimSuffixInPlace().

Parameters
strString to trim from.
suffixSuffix to remove. If string doesn't have specified suffix, it doesn't changes.
use_caseWhether to do a case sensitive compare (default is eCase), or a case-insensitive compare (eNocase) while checking for a suffix.
Attention
The lifespan of the result string is the same as one of the source. So, for example, if the source is temporary string, or it changes somehow, then the result will be invalid right away (will point to already released or wrong range in the memory).
See also
TrimSuffixInPlace

Definition at line 3302 of file ncbistr.cpp.

Referenced by CAliasTypeStrings::GenerateCode().

◆ TrimSuffixInPlace() [1/2]

void NStr::TrimSuffixInPlace ( CTempString str,
const CTempString  suffix,
ECase  use_case = eCase 
)
static

Definition at line 3290 of file ncbistr.cpp.

◆ TrimSuffixInPlace() [2/2]

void NStr::TrimSuffixInPlace ( string str,
const CTempString  suffix,
ECase  use_case = eCase 
)
static

Trim suffix from a string (in-place)

Parameters
strString to trim from.
suffixSuffix to remove. If string doesn't have specified suffix, it doesn't changes.
use_caseWhether to do a case sensitive compare (default is eCase), or a case-insensitive compare (eNocase) while checking for a suffix.

Definition at line 3278 of file ncbistr.cpp.

Referenced by CSNPDb_Impl::CSNPDb_Impl(), CSubSource::FixLatLonFormat(), GetCitSubmit(), CBulkLocationPanel::GetLocForBioseq(), GetSequenceOfKeywords(), CEditObjectSeq_desc::LocationChange(), CSubSource::MakeLatLon(), s_IsState(), CArgDescriptions::SetUsageContext(), CAutoSqlCustomField::SetUserField(), NSearchFeatPanel::SplitPosOrRange(), CCgiApplication::x_ProcessAdminRequest(), and CKeywordParser::xFinalize().

◆ TruncateSpaces() [1/4]

static CTempString NStr::TruncateSpaces ( const char *  str,
ETrunc  where = eTrunc_Both 
)
inlinestatic
Deprecated:
Use TruncateSpaces_Unsafe() instead – AND, do make sure that you indeed use that in a safe manner!

Definition at line 2288 of file ncbistr.hpp.

References str(), and NStr::TruncateSpaces_Unsafe().

◆ TruncateSpaces() [2/4]

CStringUTF8 CUtf8::TruncateSpaces ( const CTempString str,
NStr::ETrunc  side = NStr::eTrunc_Both 
)
inlinestatic

Truncate spaces in the string.

Parameters
strSource string, in UTF8 encoding
sideWhich end of the string to truncate spaces from. Default is to truncate spaces from both ends.
See also
IsWhiteSpace, TruncateSpacesInPlace, TruncateSpaces_Unsafe
Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 5768 of file ncbistr.hpp.

References eEncoding_UTF8, CUtf8::eNoValidate, str(), CUtf8::TruncateSpaces_Unsafe(), and CUtf8::x_Append().

◆ TruncateSpaces() [3/4]

static CTempString NStr::TruncateSpaces ( const CTempString  str,
ETrunc  where = eTrunc_Both 
)
inlinestatic
Deprecated:
Use TruncateSpaces_Unsafe() instead – AND, do make sure that you indeed use that in a safe manner!

Definition at line 2279 of file ncbistr.hpp.

References str(), and NStr::TruncateSpaces_Unsafe().

◆ TruncateSpaces() [4/4]

string NStr::TruncateSpaces ( const string str,
ETrunc  where = eTrunc_Both 
)
static

Truncate spaces in a string.

Parameters
strString to truncate spaces from.
whereWhich end of the string to truncate space from. Default is to truncate space from both ends (eTrunc_Both).
See also
TruncateSpaces_Unsafe

Definition at line 3186 of file ncbistr.cpp.

References str().

Referenced by CSimpleMakeFileContents::SParser::AcceptLine(), CCgiResponse::AcceptRangesBytes(), CCommandArgDescriptions::AddCommand(), CKeywordParser::AddDataLine(), CRefArgs::AddDefinitions(), CSeq_feat::AddExceptText(), CSeqSearch::AddNucleotidePattern(), CNcbiResourceInfoFile::AddResourceInfo(), SrcEditDialog::ApplySrcTableToSeqEntry(), variation::CHgvsParser::AsVariation(), BOOST_AUTO_TEST_CASE(), CAlignFormatUtil::BuildFormatQueryString(), CAlignSort::CAlignSort(), CAlignStrandSorter::CAlignStrandSorter(), CBioTreeFormatLabel::CBioTreeFormatLabel(), CCloneConcordancySorter::CCloneConcordancySorter(), CDbvarClinicalAsstSorter::CDbvarClinicalAsstSorter(), CDbvarPilotSorter::CDbvarPilotSorter(), CDbvarQualitySorter::CDbvarQualitySorter(), CDbvarSamplesetTypeSorter::CDbvarSamplesetTypeSorter(), CDbvarValidationSorter::CDbvarValidationSorter(), CGRCStatusSorter::CGRCStatusSorter(), CNcbiResourceInfoFile::CNcbiResourceInfoFile(), CDirEntry::ConcatPath(), CDirEntry::ConcatPathEx(), CDbapiSampleApp::CreateConnection(), CTrackConfigManager::CreateTrackConfig(), CSubSource::DateFromCollectionDate(), IRegistry::EnumerateEntries(), IRegistry::EnumerateInSectionComments(), CAgpConverter::ErrorStringToEnum(), CBlastDatabaseArgs::ExtractAlgorithmOptions(), CGBSeqFormatter::FormatGenomeProject(), CRegistryFile::FromConfigFile(), CRgbaColor::FromString(), CGlBitmapFont::FromString(), g_GenericStatToJson(), CDataTool::GenerateCode(), CCodeGenerator::GenerateCvsignore(), IRegistry::Get(), CTrackUtils::GetAllDataKeys(), CAlignFormatUtil::GetAsciiProteinMatrix(), CGenomicCollectionsService::GetAssembly(), CAssemblyListPanel::GetAssmNameAndDesc(), CAlignFormatUtil::GetBlastDbInfo(), IRegistry::GetComment(), CBlastServices::GetDatabaseInfo(), CBlastServices::GetDatabaseInfoLegacy(), IRegistry::GetEncryptedString(), COrgName::GetFlatName(), CCit_gen::GetLabelV2(), CReplacementActionSimple::GetReplace(), CReplacementActionHaem::GetReplace(), CFeedbackWizard::GetReport(), CMacroStrConstraintPanel::GetSearchFunc(), CPaintSequence::GetSeq(), CMacroStringConstraintPanel::GetStringConstraint(), COrgMod::GetSubtypeValue(), CSubSource::GetSubtypeValue(), IRegistry::HasEntry(), CAlignFormatUtil::HspListToHitMap(), CExpansionRule::Init(), CViewGraphic::InitView(), CRepeatMaskerReader::IsIgnoredLine(), CFormatGuess::IsInputRepeatMaskerWithoutHeader(), CFormatGuess::IsSampleNewick(), COrgMod::IsValidSubtypeName(), CSubSource::IsValidSubtypeName(), XPrintTotalsItem::line(), CColorTableMethod::Load(), CColumnScoringMethod::Load(), CMatrixScoringMethod::Load(), CNSStartIDs::Load(), CTempTrackProxy::LoadFromRegistry(), CProjBulderApp::LoadProjectTags(), CAddSuspectProductRule::OnAccept(), CMacroWordSubstitutionDlg::OnAdd(), CWordSubstitutionDlg::OnAdd(), WizardPage2::OnProblemPageChanging(), CQueryParsePanel::OnSearchctrlTextEnter(), CGridWidget::OnSearchIncludeCellValue(), CAssemblySelPanel::OnSelectAssemBtnClick(), CApplyMods::operator()(), CAgpConverter::OutputFlagStringToEnum(), CHttpCookie::Parse(), CCgiRequestProcessor::ParseAcceptHeader(), CMaskFromFasta::ParseDataLine(), CFormattingArgs::ParseFormattingString(), ParseJourLine(), CSeqUtils::ParseRanges(), CRepeatMaskerReader::ParseRecord(), STrackSettings::ParseSettings(), CWordPairIndexer::PopulateWordPairIndex(), PortalBookURLToCCddBookRef(), PrintErrorArchive(), CDiagContext::PrintStart(), CCgiRequestProcessor::ProcessHelpRequest(), SWorkerNodeJobContextImpl::PutProgressMessage(), CRepeatLibrary::Read(), CDistanceMatrix::Read(), CBDB_SplitTest::ReadTestSet(), CTableImportDataSource::RecomputeHeaders(), CCgi2RCgiApp::RenderPage(), CIgBlastnApp::Run(), CSplignApp::Run(), CNcbiApplogApp::Run(), CAsn2FastaApp::Run(), CAsn2FlatApp::Run(), SGridWorkerNodeImpl::Run(), CPrimeCacheApplication::Run(), CGi2TaxIdApp::Run(), s_CleanCDDFeature(), s_FixListIfBadWrap(), s_FormatCitBookArt(), s_GetMakefileIncludes(), s_LoadTempTrackRecursive(), s_OrphanFixup(), s_ParseErrCodeInfoStr(), s_ReadAAIndex(), s_ReadConfig(), s_SetAirrAlignmentInfo(), s_SplitKV(), s_TitleFromBioSource(), s_TitleFromSegment(), s_ValidateCustomDelim(), CPkgManager::ScanPackages(), CMultiReaderApp::sCreateSimpleMessage(), SeqDB_ReadMemorySiList(), IRWRegistry::Set(), CRequestContext::SetClientIP(), IRWRegistry::SetComment(), CTaxIdSet::SetMappingFromFile(), CSeqGraphicPane::SetMarkers(), CSGAlignmentJob::SetSortBy(), CSGFeatureJob::SetSortBy(), sGetModInfo(), sRunTest(), CSeqUtils::StringToRange(), AlnUtil::StripBlanks(), sUpdateCase(), CFormatGuess::TestFormatBed(), CFormatGuess::TestFormatBed15(), CAddQuickLaunchDlg::TransferDataFromWindow(), CSequencingTechnologyPanel::TransferDataToWindow(), transform_range(), IRWRegistry::Unset(), CAlignFormatUtil::x_AcknowledgeBlastSequence(), CFeatureItem::x_AddQualExceptions(), CNCMessageHandler::x_AssignCmdParams(), CNetStorageHandler::x_ConvertMetadataArgument(), CSplitDblinkQuals::x_ConvertStrToStrs(), CDisplaySeqalign::x_DisplayMpvAnchor(), CCompartApp::x_DoWithExternalHits(), CDBSourceItem::x_ExtractLinkableSource(), CShowBlastDefline::x_FormatDeflineTableLine(), CBlastDBAliasApp::x_GetDbsToAggregate(), CTableAnnotDataSource::x_GetMetaInfoTag(), CShowBlastDefline::x_InitFormattingInfo(), CCgiUserAgent::x_Parse(), CSplitQueryTestFixture::x_ParseConfigLine(), CFeatureTableReader_Imp::x_ParseFeatureTableLine(), CMacroParser::x_ParseMetaData(), CDisplaySeqalign::x_PrepareRowData(), CNetStorageHandler::x_ProcessGetClientObjects(), CNetStorageHandler::x_ProcessGetUserObjects(), CNetStorageHandler::x_ProcessHello(), CMakeBlastDBApp::x_ProcessMaskData(), IRWRegistry::x_Read(), SErrorEmulatorParameter::x_ReadCommon(), CAppHitFilter::x_ReadInputHits(), CPhrapReader::x_ReadWA(), CDataLoadersUtil::x_SetupASNCacheDataLoader(), CDataLoadersUtil::x_SetupBlastDataLoader(), CDataLoadersUtil::x_SetupLDS2DataLoader(), CPhrapReader::x_SkipTag(), CGenbankFormatter::x_SmartWrapQuals(), CSeqTextPanel::x_StartSearch(), CSearch_func::x_StringMayContainPlural(), CAssemblyListPanel::x_UpdateListPanel(), CTableAnnotDataSource::x_UpdateMetaInfoTag(), CSingleFeatValidator::x_ValidateExceptText(), CPkgManager::x_ValidatePackage(), CAlnReader::x_VerifyAlignmentInfo(), CSrcWriter::xCompressFieldName(), CKeywordParser::xFinalize(), CAlnScannerNexus::xImportAlignmentData(), CUCSCRegionReader::xParseFeatureUCSCFormat(), CQualParser::xParseQualifierCont(), CQualParser::xParseQualifierStart(), CAlnScannerNexus::xProcessCommand(), CBedAutoSql::xProcessLine(), C5ColLineReader::xSplitLine(), and CAlnScannerNexus::xUnexpectedEndBlock().

◆ TruncateSpaces_Unsafe() [1/2]

CTempString CUtf8::TruncateSpaces_Unsafe ( const CTempString str,
NStr::ETrunc  side = NStr::eTrunc_Both 
)
static

Truncate spaces in the string.

Parameters
strSource string, in UTF8 encoding
sideWhich end of the string to truncate spaces from. Default is to truncate spaces from both ends.
Attention
The lifespan of the result string is the same as one of the source. So, for example, if the source is temporary string, then the result will be invalid right away (will point to already released memory).
See also
IsWhiteSpace, TruncateSpacesInPlace, TruncateSpaces
Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 7219 of file ncbistr.cpp.

Referenced by CUtf8::TruncateSpaces().

◆ TruncateSpaces_Unsafe() [2/2]

CTempString NStr::TruncateSpaces_Unsafe ( const CTempString  str,
ETrunc  where = eTrunc_Both 
)
static

Truncate spaces in a string.

It can be faster but it is also more dangerous than TruncateSpaces()

Parameters
strString to truncate spaces from.
whereWhich end of the string to truncate space from. Default is to truncate space from both ends (eTrunc_Both).
Attention
The lifespan of the result string is the same as one of the source. So, for example, if the source is temporary string, or it changes somehow, then the result will be invalid right away (will point to already released or wrong range in the memory).
See also
TruncateSpaces

Definition at line 3191 of file ncbistr.cpp.

References kEmptyStr, s_TruncateSpaces(), and str().

Referenced by CSourceModParser::AddMods(), CGenbankFormatterWrapDest::Append(), CTitleParser::Apply(), ICitationBase::FixPages(), g_GenericStatToJson(), g_LegacyStatToJson(), CAlignFormatUtil::GetBlastDbInfo(), CBlastNodeInputReader::GetQueryBatch(), CSeq_feat::GetTempExceptionTextSet(), CSeq_feat::HasExceptionText(), CCleanup::ParseCodeBreak(), CFastaReader::ParseGapLine(), CSeq_id::ParseIDs(), CSourceModParser::ParseTitle(), CPsgPerfApplication::ProcessLine(), CBlastInputReader::ReadOneSeq(), CFastaReader::ReadOneSeq(), CUCSCRegionReader::ReadSeqAnnot(), CSeq_feat::RemoveExceptText(), CMemorySrcFileMap::ReportUnusedIds(), fix_pub::s_ConsortiaMatch(), s_IdLabel(), s_SetDBLinkField(), CTextseq_id::Set(), CSeq_id::Set(), CPDB_seq_id::SetChainIdentifiers(), sGetMods(), SkipCommentAndBlank(), CNetScheduleAdmin::StatusSnapshot(), NStr::TruncateSpaces(), CSourceModParser::x_ApplyMods(), CRegexpTemplateTester::x_Compare(), x_GetNextAttribute(), CMemorySrcFileMap::x_ProcessLine(), CMemorySrcFileMap::x_RegisterLine(), CDescrModApply::x_SetGBblockIds(), CModAdder::x_SetHist(), CGenbankFormatter::x_SmartWrapQuals(), CReaderBase::xGetLine(), CReaderBase::xIsTrackTerminator(), CGff2Record::xNormalizedAttributeKey(), CGff2Record::xNormalizedAttributeValue(), and CBedLineReader::xProcessTrackLine().

◆ TruncateSpacesInPlace() [1/3]

CStringUTF8 & CUtf8::TruncateSpacesInPlace ( CStringUTF8 str,
NStr::ETrunc  side = NStr::eTrunc_Both 
)
static

Truncate spaces in the string (in-place)

Parameters
srcUTF8 string
sideWhich end of the string to truncate spaces from. Default is to truncate spaces from both ends.
Returns
Reference to src
See also
IsWhiteSpace, TruncateSpaces_Unsafe, TruncateSpaces

Definition at line 7206 of file ncbistr.cpp.

◆ TruncateSpacesInPlace() [2/3]

void NStr::TruncateSpacesInPlace ( CTempString str,
ETrunc  where = eTrunc_Both 
)
static

Definition at line 3196 of file ncbistr.cpp.

References s_TruncateSpaces(), and str().

◆ TruncateSpacesInPlace() [3/3]

void NStr::TruncateSpacesInPlace ( string str,
ETrunc  where = eTrunc_Both 
)
static

Truncate spaces in a string (in-place)

Parameters
strString to truncate spaces from.
whereWhich end of the string to truncate space from. Default is to truncate space from both ends (eTrunc_Both).

Definition at line 3201 of file ncbistr.cpp.

References s_TruncateSpaces(), and str().

Referenced by CCgiCookies::Add(), CQueueClientInfoList::AddClientInfo(), AddFeatureToSeqTable(), CCleanup::AddPartialToProteinTitle(), CQueryParsePanel::AddQueryText(), AdjustSpecificHostForTaxServer(), CLoadSecondaryAccessions::apply(), BOOST_AUTO_TEST_CASE(), CAutoDefGeneClusterClause::CAutoDefGeneClusterClause(), CAutoDefMobileElementClause::CAutoDefMobileElementClause(), CAutoDefParsedIntergenicSpacerClause::CAutoDefParsedIntergenicSpacerClause(), CCddBookRefToBvString(), CCountryExtreme::CCountryExtreme(), CDB_ODBC_ConnParams::CDB_ODBC_ConnParams(), CDBInterfacesFileConnParams::CDBInterfacesFileConnParams(), CkQualPosSeqaa(), CCitGenCleaner::Clean(), CCleanup::CleanupAuthor(), CSrcTaxnameAfterBinomialColumn::ClearInBioSource(), CFeatureSearchForm::ConstructQuery(), ConvertToEntrezTerm(), CTableImportDataSource::ConvertToSeqAnnot(), CCountries::CountryFixupItem(), CSrcTableColumnBaseFactory::Create(), CFieldHandlerFactory::Create(), CWriteDB_ConsolidateAliasFiles(), CNewCleanup_imp::DbtagBC(), CNcbiEncryptApp::Decrypt(), SAppProjectT::DoCreate(), CNewCleanup_imp::Except_textBC(), CReportNode::Export(), CTrackUtils::ExtractTrackConfig(), FindInstCodeAndSpecID(), CFlatFileViewContext::FindSequence(), CSubSource::FixDateFormat(), COrgMod::FixStrain(), FixupMouseStrain(), FixUSAAbbreviationInAffil(), CDiscrepancySet::Format(), CFlatOrgModQVal::Format(), CFlatSubSourceQVal::Format(), CReferenceItem::FormatAffil(), g_LoadLinkageEvidence(), get_auth_from_toks(), CValidError_feat::GetAccessionsFromInferenceString(), CProjectsLstFileFilter::GetAllowedTagsInfo(), GetBlkDataReplaceNewLine(), CDataType::GetBoolVar(), GetCanadaStateAbbreviation(), CAddDefLineDlg::GetCommand(), CRemoveTextInsideStrDlg::GetCommand(), CUpdateTLSNameDlg::GetCommand(), CDDTypedAnnotDialog::GetData(), CSubSource::GetDateFromISODate(), GetEmblOrgRef(), CAutoDefFeatureClause_Base::GetFeatureClausePhrases(), IWMClient::CFingerprint::GetId(), GetIDsFromFile(), CPhyloTreeLabel::GetLabel(), SrcEditDialog::GetLabelForTitle(), CCit_gen::GetLabelV2(), CUrlUtils::GetLastModified(), C5ColLineReader::GetNextRecord(), XSDParser::GetNextToken(), CValidError_feat::GetPrefixAndAccessionFromInferenceAccession(), CInferencePrefixList::GetPrefixAndRemainder(), CUrlUtils::GetRemoteFileSize(), NMItemData::GetRNASpecificFields(), GetRptTypeValue(), CParseTextOptions::GetSelectedText(), GetSequenceOfKeywords(), GetSpanFromHyphenInString(), GetStateAbbreviation(), GetTargetedLocusName(), CMultipleAssemblyProgramPanel::GetValue(), CSingleAssemblyProgramPanel::GetValue(), CEditingActionDescAuthorNameList::GetValue(), CTableColumnTypeGuesser::GuessColumn(), CProjBulderApp::Gui_ConfirmConfiguration(), CProjBulderApp::Gui_ConfirmProjects(), HasCultureCollectionForATCCStrain(), HasStrainForATCCCultureCollection(), CUrlUtils::IfModifiedSince(), CAuthorNamesContainer::ImportAuthorsFromFile(), SNetServiceImpl::Init(), CProjectsLstFileFilter::InitFromFile(), CIdMapperConfig::Initialize(), CNetScheduleServer::InitNodeID(), CAutoDefIntergenicSpacerClause::InitWithString(), CFormatGuess::IsInputRepeatMaskerWithHeader(), CAttribTableColumnIdPanel::IsInputValid(), CSubSource::IsISOFormatDate(), CFormatGuess::IsLineAgp(), CCDSTranslationPanel::IsValidException(), CAutoDefExonListClause::Label(), XPrintTotalsItem::line(), CLoadStructComments::LoadSingle(), CStdAnnotTypes::LoadTypes(), CCountries::LoadUSAExceptionMap(), CBlastFormat::LogBlastSearchInfo(), PssmMaker::modifyQuery(), CCountries::NewFixCountry(), NSTValidateProlongValue(), CSeqGraphicWidget::OnAddTrack(), CRestoreRNAediting::OnApply(), CSeqTableGridPanel::OnCellDoubleLeftClick(), CSeqTableGridPanel::OnCellDoubleLeftClick2(), CSeqGraphicWidget::OnCloneTrack(), CPublicationTypePanel::OnDoiLookup(), CJournalPanel::OnJournalPmidTextUpdated(), CUpdateMultiSeq_Dlg::OnLoadMapClick(), CAttribTableColumnIdPanel::OnMatchColumnClick(), CMacroParamsPanel::OnPropertyChanged(), CGenBankLoadOptionPanel::OnRecentAccClicked(), CSeqGraphicWidget::OnRenameTrack(), CSelectTargetDlg::OnSelTargetAcceptClick(), CApplyMods::operator()(), CNewCleanup_imp::OrgnameBC(), CCgiRequestProcessor::ParseAcceptHeader(), XSDParser::ParseEnumeration(), CGb_qual::ParseExperiment(), CFastaReader::ParseGapLine(), CHttpRetryContext::ParseHeader(), CGb_qual::ParseInferenceString(), CFeatureTableReader_Imp::ParseInitialFeatureLine(), CTrackData::ParseLine(), CVCFVariantList::ParseLine(), CDBUriConnParams::ParseParamPairs(), ParseQualifiers(), ParseSPFeat(), CAutoDefParsedtRNAClause::ParseString(), CValidError_imp::PostBadDateError(), CConnTest::PostCheck(), CConnTest::PreCheck(), CPsgPerfApplication::ProcessLine(), PromoteIfDifferent(), CGridCgiContext::PullUpPersistentEntry(), CRepeatLibrary::Read(), CObjectIStreamXml::ReadBool(), CObjectIStreamXml::ReadEnum(), CCgi2RCgiApp::ReadJob(), CHgvsReader::ReadSeqAnnot(), RemoveFieldNameFromString(), CParseTextOptions::RemoveSelectedText(), RemoveStrain(), CCgi2RCgiApp::RenderPage(), ReplaceNoCase(), COrgMod::RescueInstFromParentheses(), CExplodeRNAFeats::RNAWordsFromString(), CTbl2AsnApp::Run(), CPubmedFetchApplication::Run(), CPrimeCacheApplication::Run(), CAsnSubCacheCreateApplication::Run(), s_AddPubmedLinksRow(), s_AreGBQualsIdentical(), CCleanup::s_CleanupNameStdBC(), s_DoUSAStateCleanup(), CMacroFunction_EditStringQual::s_EditText(), s_FindTrnaAA(), CMacroFunction_FixPubCaps::s_FixCapsInPubAffil_Affil(), CMacroFunction_FixPubCaps::s_FixCapsInPubAffil_City(), CMacroFunction_FixPubCaps::s_FixCapsInPubAffil_Country(), CMacroFunction_FixPubCaps::s_FixCapsInPubAffil_Div(), CMacroFunction_FixPubCaps::s_FixCapsInPubAffil_Street(), CMacroFunction_FixPubCaps::s_FixCapsInPubAffil_Sub(), IAuthorEditor::s_FixInitialsNew(), s_FixListIfBadWrap(), CMacroFunction_FixProteinFormat::s_FixProteinNameFormat(), s_FixStrainForPrefix(), s_FormatCitGen(), s_GBSeqStringCleanup(), s_GetGOText(), s_GetMandatoryFields(), s_GetNormalizedString(), s_GetSpecimenVoucherText(), s_IdLabel(), s_IsState(), s_NormalizeLinkageEvidenceString(), s_ParseHttpHeader(), s_ParsePCRColonString(), s_ParsePCRComponent(), s_ParseTRnaFromAnticodonString(), s_ProcessInstitutionCollectionCodeLine(), s_ProcessOrgRefMapLine(), s_SetReplaces(), s_SetTrnaProduct(), s_SetVectorValue(), s_split(), s_SplitAtSingleTildes(), s_SplitMLAuthorName(), s_TestVCFData(), fix_pub::s_TrimPrefixThe(), CFieldChoicePanel::SetFieldName(), CRNAFieldNamePanel::SetFieldName(), CDualRNAFieldNamePanel::SetFieldName(), CDualRNAFieldNamePanel::SetFieldName2(), CGlyphContainer::SetHighlights(), CAutoDefParsedClause::SetMiscRNAWord(), CRNAFieldNamePanel::SetRnaType(), CDualRNAFieldNamePanel::SetRnaType(), CSelectionVisitor::SetSelectedObjectSig(), CSubPrep_panel::SetSubmissionNotReady(), IMacroBioDataIter::STableToApply::SetTableToApply(), CMultipleAssemblyProgramPanel::SetValue(), CSingleAssemblyProgramPanel::SetValue(), CEditingActionFeatCodonsRecognized::SetValue(), sGetTestParameters(), sParseGeneOntologyTerm(), SpecificHostValueToCheck(), SPFeatProtRef(), CAlnScannerFastaGap::sSplitFastaDef(), CAlnScannerNexus::sStripCommentsOutsideCommand(), sStripNexusComments(), CMacroLib::StoreSynonymList(), CBioTreeAttrReader::TableValueDecode(), CFormatGuess::TestFormatJson(), CFormatGuess::TestFormatXml(), CMacroFunction_SetPubDateField::TheFunction(), CLocationListCtrl::TransferDataFromWindow(), CCodonsStringListValidator::TransferFromWindow(), CGBQualStringListValidator::TransferFromWindow(), CPmidValidator::TransferFromWindow(), CSerialTextValidator::TransferFromWindow(), CSerialAsciiTextValidator::TransferFromWindow(), CSerialTitleValidator::TransferFromWindow(), CSerialStringListValidator::TransferFromWindow(), CUserFieldStringListValidator::TransferFromWindow(), CClickableSortUniqueCount::UpdateTree(), CValidError_imp::Validate(), CPmidValidator::Validate(), CSerialStringListValidator::Validate(), CValidError_imp::ValidateAuthorList(), CValidError_feat::ValidateInference(), CSubSource::ValidateLatLonCountry(), CValidError_imp::ValidateOrgRef(), CValidError_desc::ValidateTitle(), VDBLogWriter(), CLinkUtils::x_AddDbxrefFeatureLinks(), CConvertGeneToRNA::x_AddGeneFieldsToComment(), CAutoDefModifierCombo::x_AddMinicircle(), CAlnReader::x_AddMods(), CAutoDefFeatureClause_Base::x_AddOneMiscWordElement(), CAutoDefFeatureClause_Base::x_AddOnetRNAIntergenicSpacerElement(), CFeatureItem::x_AddRecombinationClassQual(), CFeatureItem::x_AddRegulatoryClassQual(), CFeatureItem::x_AddRptTypeQual(), CFeatureItem::x_AddRptUnitQual(), CSatelliteColumn::x_AddSatelliteType(), CFeatureGenerator::SImplementation::x_AddSelectMarkup(), CStrainSerotypeInfluenza::x_AddToInfluenzaNames(), CSourceModParser::x_ApplyMods(), CFastaReader::x_ApplyMods(), CAppendModToOrg::x_ApplyToBioSource(), CFixCountryCap::x_ApplyToCAffil(), CFixAffilCap::x_ApplyToCAffil(), IMacroBioDataIter::STableToApply::x_CacheColFromTable(), CNewCleanup_imp::x_CanRemoveGenbankBlockSource(), CReferenceItem::x_CleanData(), CNewCleanup_imp::x_CleanupECNumber(), CAutoDefModifierCombo::x_CleanUpTaxName(), CFeatureGenerator::SImplementation::x_ConstructRnaName(), CTaxon1::x_ConvertOrgrefProps(), CSpecificHostMapForFix::x_DefaultSpecificHostAdjustments(), CTaxValidationAndCleanup::x_DefaultSpecificHostAdjustments(), CMacroFunction_EditStringQual::x_EditFields(), CNewCleanup_imp::x_ExtractSatelliteFromComment(), CBamRefSequencesPanel::x_FillList(), CVcfRefSequencesPanel::x_FillList(), CCountries::x_FindCountryName(), CAutoDefFeatureClause::x_FindNoncodingFeatureKeywordProduct(), CGraphicPanel::x_FindText(), CMacroFunction_FixPubCaps::x_FixCapsInPubAffilCountry(), CStrainSerotypeInfluenza::x_FixupOrganismNames(), CGenomeAssemblyComment::x_GetAssemblyMethodProgramAndVersion(), COrgName::x_GetAttribFlag(), COrgName::x_GetAttribValue(), CWigGraph::x_GetBigWigData(), CSubSource::x_GetDateTokens(), CTableReaderMacro::x_GetMatchFieldConstraint(), COrg_ref::x_GetTaxnameAfterFirstTwoWords(), CEditingActionBiosourceTaxnameAfterBinomial::x_GetTextAfterNomial(), CSrcTaxnameAfterBinomialColumn::x_GetTextAfterNomial(), CAttribTableColumnIdPanel::x_GuessQualifiers(), CTableColumnTypeGuesser::x_GuessType(), IMacroBioDataIter::STableToApply::x_InitAndCheck(), CSubSource::x_IsFixableIsoDate(), CStrainSerotypeInfluenza::x_IsParsableInfluenzaVirusName(), CNcbiEncrypt::x_LoadKeys(), CFeaturePanel::x_LoadSettings(), CAlignmentTrack::x_LoadSettings(), CUpdateAlign::x_MapNonPresentIDs(), CDB_ODBC_ConnParams::x_MapPairToParam(), CAutoDefFeatureClause_Base::x_MeetAltSpliceRules(), CNewCleanup_imp::x_MendSatelliteQualifier(), CConfigureTracksDlg::x_OnSearch(), CFindITSParser::x_ParseLine(), CSeedTop::x_ParsePattern(), CColumnarVCFReaderApp::x_ParseRange(), CFeatureTableReader_Imp::x_ParseTrnaExtString(), IRWRegistry::x_Read(), CPrimeCacheApplication::x_Read_Ids(), CNSTServiceRegistry::x_ReadServiceProperties(), CMemorySrcFileMap::x_RegisterLine(), CCountries::x_RemoveDelimitersFromEnds(), CSubSource::x_RemoveIsoTime(), COrgName::x_ResetAttribFlag(), CMacroFunction_RemoveOutside::x_RmvOutsideFields(), CNewCleanup_imp::x_RRNANameBC(), CFeatureGenerator::SImplementation::x_SetExceptText(), CBioSourcePanel::x_SetOrganismInfo(), CDeflineGenerator::x_SetTitleFromBioSrc(), CDeflineGenerator::x_SetTitleFromGPipe(), CDeflineGenerator::x_SetTitleFromMap(), CDeflineGenerator::x_SetTitleFromSegSeq(), CDeflineGenerator::x_SetTitleFromWGS(), CStrainSerotypeInfluenza::x_SplittingQualifiersAtCommas(), CStrainSerotypeInfluenza::x_SplittingStructCollections(), CFeatureTableReader_Imp::x_TokenizeLenient(), CFeatureTableReader_Imp::x_TokenizeStrict(), CStrainSerotypeInfluenza::x_TrimmingOrganismNames(), CFeatureTableReader_Imp::x_TrnaToAaString(), CNewCleanup_imp::x_TruncateSpacesMarkChanged(), CFeatureTableReader_Imp::x_TryToParseOffset(), CBLASTDatabases::x_UpdateDbMap(), CGenBankLoadOptionPanel::x_ValidateInput(), xgbparselex_ver(), CSrcChkApp::xGetDesiredFields(), CWiggleReader::xGetFixedStepInfo(), CAlnScannerClustal::xImportAlignmentData(), CAlnScannerFastaGap::xImportAlignmentData(), CAlnScannerMultAlign::xImportAlignmentData(), CAlnScannerNexus::xImportAlignmentData(), CAlnScannerPhylip::xImportAlignmentData(), CAlnScannerSequin::xImportAlignmentData(), CGff3LineReader::xInitializeAttributes(), CGtfLineReader::xInitializeAttributes(), CAlnFormatGuesser::xInitSample(), CQualParser::xParseQualifierStart(), CQualParser::xParseQualifierTail(), CBedAutoSql::xProcessLine(), CBedReader::xReadBedRecordRaw(), CBedAutoSql::xReadLine(), CGff3LineReader::xSplitAttributeStringBySemicolons(), CGtfLineReader::xSplitAttributeStringBySemicolons(), CBedColumnData::xSplitColumns(), CGff2Record::xSplitGffAttributes(), and CSrcChkApp::xTryProcessIdFile().

◆ UInt8ToString() [1/2]

void NStr::UInt8ToString ( string out_str,
Uint8  value,
TNumToStringFlags  flags = 0,
int  base = 10 
)
static

Convert UInt8 to string.

Parameters
out_strOutput string variable
valueInteger value (UInt8) to be converted.
flagsHow to convert value to string.
baseRadix base. Default is 10. Allowed values are 2..36. Bases 8 and 16 do not add leading '0' and '0x' accordingly. If necessary you should add it yourself.
Note
  • If conversion succeeds, set errno to zero and return the converted string value in 'out_str'.
  • Otherwise, set errno to non-zero, value of 'out_str' is undefined.

Definition at line 2062 of file ncbistr.cpp.

◆ UInt8ToString() [2/2]

string NStr::UInt8ToString ( Uint8  value,
TNumToStringFlags  flags = 0,
int  base = 10 
)
inlinestatic

Convert UInt8 to string.

Parameters
valueInteger value (UInt8) to be converted.
flagsHow to convert value to string.
baseRadix base. Default is 10. Allowed values are 2..36. Bases 8 and 16 do not add leading '0' and '0x' accordingly. If necessary you should add it yourself.
Returns
  • If conversion succeeds, set errno to zero and return the converted string value.
  • Otherwise, set errno to non-zero and return empty string.
Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 5168 of file ncbistr.hpp.

References flags, and rapidjson::value.

Referenced by CObjFingerprint::AddInteger(), CSAM_CIGAR_Formatter::AddRow(), CNCActiveHandler::CopyPurge(), CNCActiveHandler::CopyRemove(), CNCActiveHandler::CopyUpdate(), CVDBBlastUtil::CreateBioseqFromOid(), CVDBBlastUtil::CreateBioseqFromVDBSeqId(), CSQLITE_Connection::CreateVacuumStmt(), CAsnIndex::CurrentLocationAsString(), CRemoteAppLauncher::ExecRemoteApp(), CNetCacheKey::GenerateBlobKey(), CNcbiApplogApp::GenerateToken(), CBlastDbMetadata::GetDbLength(), CBlastDbMetadata::GetDiskUsage(), CNCDistributionConf::GetFullPeerName(), CConnTest::GetFWConnections(), GetIdStartStopStrandStr(), SNetCacheAPIImpl::GetPartReader(), SNetICacheClientImpl::GetReadStreamPart(), CBDB_FieldUint8::GetString(), CNCActiveHandler::Initialize(), CDebugDumpContext::Log(), CMonitoredProcessWatcher::MonitorRun(), CJobContextProcessWatcher::OnStart(), value_slice::CValueConvert< CP, Uint8 >::operator string(), CSrvStrStream::operator<<(), CDiagContext_Extra::Print(), CBlastFormatUtil::PrintDbInformation(), CNcbiApplogApp::PrintTokenInformation(), CNCActiveHandler::ProxyRead(), CNCActiveHandler::ProxyReadLast(), CChunkFile::RawRead(), CSeqIdChunkFile::RawRead(), CColumnarVCFReader::ReadData(), CColumnarVCFReader::ReadVariantsForChrs(), CNcbiApplogApp::Redirect(), CAsnElementPrimitive::RenderValue(), CDB_MultiEx::ReportErrorStack(), s_AddToLog(), s_ComposeNameExtra(), s_CreateDiagRequest(), s_DumpCompoundID(), s_HexDumpText(), s_InitConstants(), s_InitLogPrefix(), s_LockInstanceGuard(), s_ParseErrCodeInfoStr(), s_SizeOrMajorMinor(), s_ValToString(), CFileIO::SetFilePos(), CApplogUrl::SetProcessID(), CApplogUrl::SetRequestID(), CApplogUrl::SetThreadID(), CNCActiveHandler::SyncBlobsList(), CNCActiveHandler::SyncCancel(), CNCActiveHandler::SyncCommit(), CNCActiveHandler::SyncProlongOur(), CNCActiveHandler::SyncStart(), CLocMapper_Default::CGappedRange::ToString(), CBDB_FieldUint8::ToString(), Uint8ToString_DataSize(), CObjectOStreamJson::WriteUint8(), CNCMessageHandler::x_DoCmd_GetMeta(), COSGServiceMapper::x_GetServer(), CConn_FTPDownloadStream::x_InitDownload(), CConn_FTPUploadStream::x_InitUpload(), CColumnarVCFReaderApp::x_LoadSerializedData(), NStr::x_NumericToString(), CBlastDBCmdApp::x_PrintBlastDatabaseInformation(), CXmlValueItem::x_RenderXml(), CNCActiveHandler::x_SendCopyProlongCmd(), CNCActiveHandler::x_SendCopyPutCmd(), CNCActiveHandler::x_SendSyncGetCmd(), CUnorderedSplitter::x_SplitDeltaExt(), CUnorderedSplitter::x_SplitSeqData(), and CHugeAsnReader::x_ThrowDuplicateId().

◆ UInt8ToString_DataSize() [1/2]

void NStr::UInt8ToString_DataSize ( string out_str,
Uint8  value,
TNumToStringFlags  flags = 0,
unsigned int  max_digits = 3 
)
static

Convert UInt8 to string using "software" qualifiers.

See notes and details of how function works in the comments to UInt8ToString_DataSize() above.

Parameters
out_strOutput string variable
valueInteger value (UInt8) to be converted.
flagsHow to convert value to string.
max_digitsMaximum number of digits to use (cannot be less than 3)

Definition at line 2085 of file ncbistr.cpp.

◆ UInt8ToString_DataSize() [2/2]

string NStr::UInt8ToString_DataSize ( Uint8  value,
TNumToStringFlags  flags = 0,
unsigned int  max_digits = 3 
)
inlinestatic

Convert UInt8 to string using "software" qualifiers.

Result of conversion will be limited to max_digits digits so that e.g. 1024 will be converted to 1.02KB. Conversion will be made using rounding so that 1025 will be converted to 1.03KB. By default function uses 1000-based qualifiers (as in examples above) but with fDS_Binary flag it will use 1024-based qualifiers, e.g. 1100 will be converted to 1.07KiB. With fDS_ShortSuffix flag function will omit "B" in 1000-based and "iB" in 1024-based qualifiers. When the result of conversion doesn't need any qualifiers then the result of this function will be equivalent to result of UInt8ToString() above except if fDS_PutBSuffixToo flag is passed. In the latter case "B" will be added to the number.

Function will always try to use a maximum possible qualifier and a number with decimal point except if fDS_NoDecimalPoint flag is passed. In that case function will return only whole number and try to use a minimum possible qualifier (which makes difference only if max_digits > 3).

Parameters
valueInteger value (UInt8) to be converted.
flagsHow to convert value to string.
max_digitsMaximum number of digits to use (cannot be less than 3)
Returns
  • If invalid flags are passed, throw an exception.
  • If conversion succeeds, return the converted value.
Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 5177 of file ncbistr.hpp.

References flags, and rapidjson::value.

Referenced by g_ToSizeStr(), CNCStat::PrintState(), SMMStat::PrintState(), CNCBlobStorage::WriteBlobStat(), CNCBlobStorage::WriteEnvInfo(), CNCServer::WriteEnvInfo(), CNCDistributionConf::WriteSetup(), and CNCBlobStorage::WriteSetup().

◆ UIntToString() [1/4]

string NStr::UIntToString ( int  value,
TNumToStringFlags  flags = 0,
int  base = 10 
)
inlinestatic

Definition at line 5118 of file ncbistr.hpp.

References flags, NStr::UIntToString(), and rapidjson::value.

◆ UIntToString() [2/4]

void NStr::UIntToString ( string out_str,
int  value,
TNumToStringFlags  flags = 0,
int  base = 10 
)
inlinestatic

Definition at line 5134 of file ncbistr.hpp.

References flags, NStr::UIntToString(), and rapidjson::value.

◆ UIntToString() [3/4]

void NStr::UIntToString ( string out_str,
unsigned int  value,
TNumToStringFlags  flags = 0,
int  base = 10 
)
inlinestatic

Convert UInt to string.

Parameters
out_strOutput string variable
valueInteger value (unsigned long) to be converted.
flagsHow to convert value to string.
baseRadix base. Default is 10. Allowed values are 2..36. Bases 8 and 16 do not add leading '0' and '0x' accordingly. If necessary you should add it yourself.
Note
  • If conversion succeeds, set errno to zero and return the converted string value in 'out_str'.
  • Otherwise, set errno to non-zero, value of 'out_str' is undefined.

Definition at line 5127 of file ncbistr.hpp.

References flags, NStr::ULongToString(), and rapidjson::value.

◆ UIntToString() [4/4]

string NStr::UIntToString ( unsigned int  value,
TNumToStringFlags  flags = 0,
int  base = 10 
)
inlinestatic

Convert UInt to string.

Parameters
valueInteger value (unsigned long) to be converted.
flagsHow to convert value to string.
baseRadix base. Default is 10. Allowed values are 2..36. Bases 8 and 16 do not add leading '0' and '0x' accordingly. If necessary you should add it yourself.
Returns
  • If conversion succeeds, set errno to zero and return the converted string value.
  • Otherwise, set errno to non-zero and return empty string.
Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 5109 of file ncbistr.hpp.

References flags, NStr::ULongToString(), and rapidjson::value.

Referenced by CReportParams::Add(), CPosToIndex::Add(), CBDB_ExtBlobMap::Add(), CArgDescriptions::CPrintUsage::AddDetails(), CCSSTableTooltipFormatter::AddDividerRow(), CHtmlTooltipFormatter::AddDividerRow(), CHtmlTooltipFormatter::AddLinkRow(), CSAM_CIGAR_Formatter::AddRow(), CCSSTableTooltipFormatter::AddRow(), CHtmlTooltipFormatter::AddRow(), SAccGuide::AddRule(), CHtmlTooltipFormatter::AddValueCol(), CTaxNRCriteria::Apply(), CConvertSelectedGaps::apply_impl(), CBedFeatureRecord::AssignDisplayData(), CBedFeatureRecord::AssignLocation(), CGffRecord::AssignSeqId(), CGffRecord::AssignStart(), CGffRecord::AssignStop(), SSocketAddress::AsString(), BlastHitList2SeqAlign_OMF(), BuildLMDBFileName(), CArgDescMandatory::CArgDescMandatory(), CGffAlignmentRecord::CGffAlignmentRecord(), CConnTest::CheckFWConnections(), CGridCommandLineInterfaceApp::Cmd_Discover(), SNetScheduleNotificationThread::CmdAppendPortAndTimeout(), CNetScheduleNotificationHandler::CmdAppendTimeoutGroupAndClientInfo(), CMultiAlignerTest::CompareDomainHits(), CONNECT_Init(), SBDB_CacheUnitStatistics::ConvertToRegistry(), CVDBBlastUtil::CreateBioseqFromOid(), CVDBBlastUtil::CreateBioseqFromVDBSeqId(), CStringOrBlobStorageReader::CStringOrBlobStorageReader(), CVCFVariantList::CVCFVariantList(), CBDB_Volumes::Delete(), CDbapiSimpleApp::DemoDynamicSql(), CSdbapiSimpleApp::DemoDynamicSql(), CPosToIndex::DeserializeVectors(), CDBConnectionFactory::DispatchServerName(), AlignmentUtility::DoLeaveNOut(), CLockVectorGuard< TLockVect >::DoLock(), CBDB_Cache::EvaluateTimeLine(), CRemoteAppLauncher::ExecRemoteApp(), CBDB_Volumes::FetchVolumeRec(), CGBSeqFormatter::FormatGap(), CGenbankFormatter::FormatGap(), CNetCacheKey::GenerateBlobKey(), CNcbiApplogApp::GenerateToken(), CTimeout::GetAsMilliSeconds(), CTimeout::GetAsTimeSpan(), NSnpGui::GetBinLinks(), NSnpGui::GetBinTooltip(), CBDB_ExtBlobMap::GetBlobLoc(), CWriteUtil::GetDbTag(), CMacroAdvStringConstraintPanel< T >::GetFuncWithArgs(), CConnTest::GetFWConnections(), CEditingActionFeatAnticodon::GetIntervalString(), GetIntervalString(), CTaxIDSetLabelHandler::GetLabel(), CDFamily::getNewickRepresentation(), CAlnMixSeq::GetSeqString(), CDBLB_ServiceMapper::GetServersList(), CSraRun::GetSpotEntry(), CPosToIndex::GetStatistics(), CBDB_FieldInt1::GetString(), CBDB_FieldUint1::GetString(), CBDB_FieldUint4::GetString(), CMacroAdvStringConstraintPanel< T >::GetTextConstraint(), CAlignGlyph::GetTitle(), CAlnStatGlyph::GetTooltip(), CSequenceTrack::GetTooltip(), CTranslationGlyph::GetTooltip(), CGuiObjectInfoSeq_align::GetToolTip(), CMacroAdvStringConstraintPanel< T >::GetVars(), CSeqDBIsam::HashToOids(), CConnTest::HttpOkay(), SNetICacheClientImpl::InitiateWriteCmd(), CBDB_Volumes::LockVolume(), CDebugDumpContext::Log(), CGtfRecord::MakeChildRecord(), CBDB_BlobSplitStore< TBV, TObjDeMux, TL >::MakeDbFileName(), value_slice::CValueConvert< CP, Uint1 >::operator string(), value_slice::CValueConvert< CP, Uint2 >::operator string(), value_slice::CValueConvert< CP, Uint4 >::operator string(), operator<<(), CSrvStrStream::operator<<(), PatchTargetSequence(), CCdFromFasta::Fasta2CdParams::Print(), CDiagContext_Extra::Print(), CArgDescriptions::CPrintUsageXml::PrintArguments(), CNCActiveHandler::ProxyBList(), CNCActiveHandler::ProxyGetMeta(), CNCActiveHandler::ProxyGetSize(), CNCActiveHandler::ProxyHasBlob(), CNCActiveHandler::ProxyProlong(), CNCActiveHandler::ProxyRead(), CNCActiveHandler::ProxyReadLast(), CNCActiveHandler::ProxyRemove(), CNCActiveHandler::ProxyWrite(), CBDB_Cache::Purge(), CNetScheduleSubmitter::Read(), CObjectIStreamXml::ReadName(), CColumnarVCFReader::ReadVariantsForChrs(), CNcbiApplogApp::Redirect(), CPosToIndex::RemoveSerializedOutput(), CRemoteAppTimeoutReporter::Report(), CValidError_annot::ReportLocationGI0(), CBlastdbConvertApp::Run(), s_GetFieldVar(), s_GetFileName(), s_GetNextLogPrefix(), s_GetValueVar(), s_GroupsCount(), s_Init(), s_MajorMinor(), s_ProcessIntraScaffoldTail(), s_ReadDigit(), s_SerializeJob(), s_SocketConnectorBuilder(), s_UserGroupAsString(), s_ValToString(), SeqDB_SimplifySeqid(), CFeatureSearchJob::SeqLocToString(), CPosToIndex::SerializeVectors(), CBDB_Volumes::SetBackupLocation(), CBDB_Volumes::SetDateRange(), CCgiResponse::SetStatus(), CBDB_Volumes::SortVolumes(), CConnTest::StatefulOkay(), CBDB_ExtBlobStore< TBV >::StoreBlob(), CGffBaseRecord::StrSeqStart(), CGffBaseRecord::StrSeqStop(), CCgi2RCgiApp::SubmitJob(), CNetScheduleSubmitter::SubmitJobBatch(), CNCActiveHandler::SyncBlobsList(), CNCActiveHandler::SyncCancel(), CNCActiveHandler::SyncCommit(), CNCActiveHandler::SyncProlongOur(), CNCActiveHandler::SyncStart(), TestDeltaTechNotAllowed(), CContElemConverter< CCgiEntry >::ToString(), CBDB_FieldUint4::ToString(), CDUpdateStats::toString(), NStr::UIntToString(), CLockVectorGuard< TLockVect >::Unlock(), CBDB_Volumes::UnLockVolume(), CSeqUpdateWorker::UpdateSingleSequence(), CSeqUpdateWorker::UpdateSingleSequence_Ext(), CValidError_bioseq::ValidateDelta(), CValidError_bioseq::ValidateRawConst(), CDB_MultiEx::WhatThis(), CBDB_CacheIWriter::Write(), CObjectOStreamJson::WriteCustomBytes(), CObjectOStreamJson::WriteUint4(), CGuiObjectInfoSeq_feat::x_AddExtraInfo(), CGuiObjectInfoSeq_feat::x_AddPositionRows(), CTar::x_Append(), CArchive::x_Append(), CBDB_Volumes::x_ChangeCurrentStatus(), CArgDescriptions::x_CreateArg(), CNCMessageHandler::x_DoCmd_GetMeta(), CServer::x_DoRun(), CTar::x_ExtractSparseFile(), CGuiObjectInfoSeq_feat::x_GetProductSequence(), CSeq_id::x_IdentifyAccession(), NStr::x_NumericToString(), CArgDescriptions::x_PostCheck(), NSnpGui::x_ProcessDbgaptext(), CSnpTrack::x_ProcessJobResult(), CNcbiRegistry::x_Read(), CNCMessageHandler::x_ReadBlobSignature(), CTransmissionReader::x_ReadStart(), CArchive::x_RestoreAttrs(), CTar::x_RestoreAttrs(), CNCActiveHandler::x_SendCopyProlongCmd(), CNCActiveHandler::x_SendCopyPutCmd(), CNCActiveHandler::x_SendSyncGetCmd(), CNewCleanup_imp::x_SeqFeatCDSGBQualBC(), CVCFVariantsBase::x_SerializeData(), CMacroAdvStringConstraintPanel< T >::x_SetControls(), CNCMessageHandler::x_SocketOpened(), CBDB_Cache::x_Store(), CMacroInterpreter::x_StringConstraintValidateArgs(), CValidError_align::x_ValidateSeqLength(), CVcfWriter::x_WriteFeaturePos(), CGtfWriter::xAssignFeatureAttributeGeneId(), CGtfWriter::xAssignFeatureAttributeTranscriptId(), and CGff3Writer::xNextAlignId().

◆ ULongToString() [1/2]

void NStr::ULongToString ( string out_str,
unsigned long  value,
TNumToStringFlags  flags = 0,
int  base = 10 
)
static

Convert unsigned long to string.

Parameters
out_strOutput string variable
valueInteger value (unsigned long) to be converted.
flagsHow to convert value to string.
baseRadix base. Default is 10. Allowed values are 2..36. Bases 8 and 16 do not add leading '0' and '0x' accordingly. If necessary you should add it yourself.
Note
  • If conversion succeeds, set errno to zero and return the converted string value in 'out_str'.
  • Otherwise, set errno to non-zero, value of 'out_str' is undefined.

Definition at line 1906 of file ncbistr.cpp.

◆ ULongToString() [2/2]

string NStr::ULongToString ( unsigned long  value,
TNumToStringFlags  flags = 0,
int  base = 10 
)
inlinestatic

Convert unsigned long to string.

Parameters
valueInteger value (unsigned long) to be converted.
flagsHow to convert value to string.
baseRadix base. Default is 10. Allowed values are 2..36. Bases 8 and 16 do not add leading '0' and '0x' accordingly. If necessary you should add it yourself.
Returns
  • If conversion succeeds, set errno to zero and return the converted string value.
  • Otherwise, set errno to non-zero and return empty string.
Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 5150 of file ncbistr.hpp.

References flags, and rapidjson::value.

Referenced by CReportParams::Add(), CBDB_Cache::EvaluateTimeLine(), CNcbiApplogApp::GenerateToken(), CBulkCDSAddPanel::GetCommand(), CDebugDumpContext::Log(), value_slice::CValueConvert< CP, unsigned long >::operator string(), CDiagContext_Extra::Print(), NStr::UIntToString(), CFarPointerSeq::ValidateAlignment(), NStr::x_NumericToString(), and CBlastVdbCmdApp::x_PrintBlastDatabaseInformation().

◆ Unescape()

string NStr::Unescape ( const CTempString  str,
char  escape_char = '\\' 
)
static

Unescape string (generic version).

Remove escape characters added by Escape().

Parameters
strThe string to be processed.
escape_charCharacter used for escaping.
Returns
Unescaped string.
See also
Escape

Definition at line 3870 of file ncbistr.cpp.

◆ Unquote()

string NStr::Unquote ( const CTempString  str,
char  escape_char = '\\' 
)
static

Unquote string (generic version).

Remove quotation added by Quote(). Uses first character as quoting character.

Parameters
strThe string to be processed.
escape_charCharacter used for escaping.
Returns
Unquoted string.
See also
Quote, ParseQuoted, CEncode

Definition at line 3918 of file ncbistr.cpp.

◆ URLDecode()

string NStr::URLDecode ( const CTempString  str,
EUrlDecode  flag = eUrlDec_All 
)
static

◆ URLDecodeInPlace()

void NStr::URLDecodeInPlace ( string str,
EUrlDecode  flag = eUrlDec_All 
)
static

URL-decode string to itself.

Definition at line 6222 of file ncbistr.cpp.

Referenced by CVariantDescriptors::PushBack(), URL_DecodeInPlace(), and CCgiEntryReaderContext::x_ReadURLEncodedEntry().

◆ URLEncode()

string NStr::URLEncode ( const CTempString  str,
EUrlEncode  flag = eUrlEnc_SkipMarkChars 
)
static

URL-encode string.

Definition at line 6062 of file ncbistr.cpp.

Referenced by CUsageReportParameters::Add(), CReportParams::Add(), CStringEntryCollector::AddEntry(), CEutilsClient::AddParameter(), CEUtils_IdGroup::AsQueryString(), CAlignFormatUtil::BuildFormatQueryString(), CNSNotificationList::BuildJobChangedNotification(), CAlignFormatUtil::BuildUserUrl(), CGI2GRID_ComposeHtmlPage(), CNcbiApplogApp::Cmd_Health(), CUrl::ComposeUrl(), CEutilsClient::Count(), CEJournalSearch::DoOneESearch(), CEJournalSearch::DoOneESummary(), CEUtilsUpdater::DoPubSearch(), CDefaultUrlEncoder::EncodeArgName(), CFormDataEncoder::EncodeArgName(), CDefaultUrlEncoder::EncodeArgValue(), CFormDataEncoder::EncodeArgValue(), CDefaultUrlEncoder::EncodeFragment(), CDefaultUrlEncoder::EncodePassword(), CDefaultUrlEncoder::EncodePath(), CDefaultUrlEncoder::EncodeUser(), GetAccVerHistCompletionHeader(), GetAccVerHistoryHeader(), GetBioseqCompletionHeader(), GetBioseqInfoHeader(), GetBioseqMessageHeader(), GetBlobChunkHeader(), GetBlobCompletionHeader(), GetBlobExcludeHeader(), GetBlobMessageHeader(), GetBlobPropCompletionHeader(), GetBlobPropHeader(), GetBlobPropMessageHeader(), SPSG_Params::GetCookie(), CGencollSvc::GetGCAssembly(), GetIPGMessageHeader(), GetIPGResolveHeader(), GetNamedAnnotationCompletionHeader(), GetNamedAnnotationHeader(), GetNamedAnnotationMessageCompletionHeader(), GetNamedAnnotationMessageHeader(), CPMCIDConverterServer::GetPmids(), SQueueParameters::GetPrintableParameters(), GetProcessorMessageCompletionHeader(), GetProcessorMessageHeader(), GetProcessorProgressMessageHeader(), CDoiLookup::GetPubFromCrossRef(), GetPublicCommentCompletionHeader(), GetPublicCommentHeader(), CEFetch_Request::GetQueryString(), CEGQuery_Request::GetQueryString(), CELink_Request::GetQueryString(), CESearch_Request::GetQueryString(), CESpell_Request::GetQueryString(), CEUtils_Request::GetQueryString(), CGridCgiContext::GetSelfURL(), GetTSEBlobChunkHeader(), GetTSEBlobCompletionHeader(), GetTSEBlobExcludeHeader(), GetTSEBlobMessageHeader(), GetTSEBlobPropCompletionHeader(), GetTSEBlobPropHeader(), GetTSEBlobPropMessageHeader(), CHttpRetryContext::GetValues(), CEutilsClient::LinkHistory(), CSrvDiagMsg::PrintParam(), CGetVersionProcessor::Process(), CCgiRedirectApplication::ProcessRequest(), CNcbiApplogApp::Redirect(), CNcbiApplogApp::Run(), CHydraServer::RunHydraSearch(), s_AddArg(), s_AssignEntryValue(), s_FetchHistoryQuery(), s_GetAssmAccsParams(), s_GetAssmInfoParams(), s_GetBestIDForURL(), s_GetLinkoutUrl(), s_GetParams(), s_SearchHistoryQuery(), s_SummaryHistoryQuery(), CGenBankLoadOptionPanel::SaveSettings(), CEutilsClient::Search(), CGridCommandLineInterfaceApp::SetUp_NetStorageCmd(), URL_EncodeString(), WriteContainer(), WriteMap(), CCDDClient::WriteRequest(), CNCMessageHandler::x_AssignCmdParams(), CNCMessageHandler::x_DoCmd_Version(), CCgiCookie::x_EncodeCookie(), CEutilsClient::x_Fetch(), CPSG_Request_NamedAnnotInfo::x_GetAbsPathRef(), CNcbiResourceInfo::x_GetEncoded(), CEutilsClient::x_Link(), CEutilsClient::x_LinkOut(), CFastCgiThreadedRequest::x_ParseEnv(), CNetScheduleHandler::x_PrintGetJobResponse(), CNetScheduleHandler::x_ProcessFastStatusS(), CNetScheduleHandler::x_ProcessFastStatusW(), CNetScheduleHandler::x_ProcessGetParam(), CNetScheduleHandler::x_ProcessHealth(), CNetScheduleHandler::x_ProcessListenJob(), CNetScheduleHandler::x_ProcessQueueInfo(), CNetScheduleHandler::x_ProcessReading(), CNetScheduleHandler::x_ProcessStatus(), CNetScheduleHandler::x_ProcessVersion(), CEutilsClient::x_Search(), CEutilsClient::x_Summary(), and CGff3Writer::xWriteSequenceHeader().

◆ Wrap() [1/4]

void NStr::Wrap ( const string str,
SIZE_TYPE  width,
IWrapDest dest,
TWrapFlags  flags,
const string prefix,
const string prefix1 
)
static

◆ Wrap() [2/4]

list< string > & NStr::Wrap ( const string str,
SIZE_TYPE  width,
list< string > &  arr,
NStr::TWrapFlags  flags,
const string prefix,
const string prefix1 
)
inlinestatic

Definition at line 5600 of file ncbistr.hpp.

References arr, flags, prefix, str(), and NStr::Wrap().

◆ Wrap() [3/4]

list< string > & NStr::Wrap ( const string str,
SIZE_TYPE  width,
list< string > &  arr,
NStr::TWrapFlags  flags,
const string prefix,
const string prefix1 = 0 
)
inlinestatic

Definition at line 5592 of file ncbistr.hpp.

References arr, flags, prefix, str(), and NStr::Wrap().

◆ Wrap() [4/4]

list< string > & NStr::Wrap ( const string str,
SIZE_TYPE  width,
list< string > &  arr,
NStr::TWrapFlags  flags = 0,
const string prefix = 0,
const string prefix1 = 0 
)
static

Definition at line 5356 of file ncbistr.cpp.

References flags, prefix, str(), and NStr::WrapIt().

◆ WrapIt()

template<typename _D >
void NStr::WrapIt ( const string str,
SIZE_TYPE  width,
_D &  dest,
TWrapFlags  flags = 0,
const string prefix = 0,
const string prefix1 = 0 
)
static

Wrap the specified string into lines of a specified width.

Split string "str" into lines of width "width" and add the resulting lines to the list "arr". Normally, all lines will begin with "prefix" (counted against "width"), but the first line will instead begin with "prefix1" if you supply it.

Parameters
strString to be split into wrapped lines.
widthWidth of each wrapped line.
arrList of strings containing wrapped lines.
flagsHow to wrap the words to a new line. See EWrapFlags documentation.
prefixThe prefix string added to each wrapped line, except the first line, unless "prefix1" is set. If "prefix" is set to 0(default), do not add a prefix string to the wrapped lines.
prefix1The prefix string for the first line. Use this for the first line instead of "prefix". If "prefix1" is set to 0(default), do not add a prefix string to the first line.
Returns
Return "arr", the list of wrapped lines.

Definition at line 5092 of file ncbistr.cpp.

Referenced by NStr::Wrap().

◆ WrapList() [1/3]

list< string > & NStr::WrapList ( const list< string > &  l,
SIZE_TYPE  width,
const string delim,
list< string > &  arr,
NStr::TWrapFlags  flags,
const string prefix,
const string prefix1 
)
inlinestatic

Definition at line 5617 of file ncbistr.hpp.

References arr, flags, prefix, and NStr::WrapList().

◆ WrapList() [2/3]

list< string > & NStr::WrapList ( const list< string > &  l,
SIZE_TYPE  width,
const string delim,
list< string > &  arr,
NStr::TWrapFlags  flags,
const string prefix,
const string prefix1 = 0 
)
inlinestatic

Definition at line 5608 of file ncbistr.hpp.

References arr, flags, prefix, and NStr::WrapList().

◆ WrapList() [3/3]

list< string > & NStr::WrapList ( const list< string > &  l,
SIZE_TYPE  width,
const string delim,
list< string > &  arr,
NStr::TWrapFlags  flags = 0,
const string prefix = 0,
const string prefix1 = 0 
)
static

Wrap the list using the specified criteria.

WrapList() is similar to Wrap(), but tries to avoid splitting any elements of the list to be wrapped. Also, the "delim" only applies between elements on the same line; if you want everything to end with commas or such, you should add them first.

Parameters
lThe list to be wrapped.
widthWidth of each wrapped line.
delimDelimiters used to split elements on the same line.
arrList containing the wrapped list result.
flagsHow to wrap the words to a new line. See EWrapFlags documentation.
prefixThe prefix string added to each wrapped line, except the first line, unless "prefix1" is set. If "prefix" is set to 0(default), do not add a prefix string to the wrapped lines.
prefix1The prefix string for the first line. Use this for the first line instead of "prefix". If "prefix1" is set to 0(default), do not add a prefix string to the first line.
Returns
Return "arr", the wrapped list.
Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 5366 of file ncbistr.cpp.

Referenced by CArgDescriptions::CPrintUsage::AddSynopsis(), and NStr::WrapList().

◆ x_Append() [1/3]

CStringUTF8 & CUtf8::x_Append ( CStringUTF8 u8str,
const CTempString src,
const locale lcl 
)
staticprivate

Definition at line 6945 of file ncbistr.cpp.

References SLocaleEncoder::ToChar().

◆ x_Append() [2/3]

CStringUTF8 & CUtf8::x_Append ( CStringUTF8 u8str,
const CTempString src,
EEncoding  encoding,
EValidate  validate 
)
staticprivate

◆ x_Append() [3/3]

template<typename TChar >
CStringUTF8 & CUtf8::x_Append ( CStringUTF8 u8str,
const TChar src,
SIZE_TYPE  tchar_count 
)
staticprivate

◆ x_AppendChar()

CStringUTF8 & CUtf8::x_AppendChar ( CStringUTF8 u8str,
TUnicodeSymbol  ch 
)
staticprivate

◆ x_AsBasicString()

template<typename TChar >
basic_string< TChar > CUtf8::x_AsBasicString ( const CTempString src,
const TChar substitute_on_error,
EValidate  validate 
)
staticprivate

◆ x_BytesNeeded()

SIZE_TYPE CUtf8::x_BytesNeeded ( TUnicodeSymbol  ch)
staticprivate

◆ x_Clone()

template<class TBase >
virtual const CException* CParseTemplException< TBase >::x_Clone ( void  ) const
inlineoverrideprotectedvirtual

Helper clone method.

Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 4485 of file ncbistr.hpp.

◆ x_Decode()

template<typename TIterator >
TUnicodeSymbol CUtf8::x_Decode ( TIterator src)
inlinestaticprivate

◆ x_EvalFirst()

bool CUtf8::x_EvalFirst ( char  ch,
SIZE_TYPE more 
)
staticprivate

Definition at line 7123 of file ncbistr.cpp.

Referenced by CUtf8::EvaluateFirst().

◆ x_EvalNext()

bool CUtf8::x_EvalNext ( char  ch)
staticprivate

Definition at line 7149 of file ncbistr.cpp.

Referenced by CUtf8::EvaluateNext().

◆ x_ExtendInternalDelim()

void CStrTokenizeBase::x_ExtendInternalDelim ( )
private

Definition at line 7550 of file ncbistr.cpp.

Referenced by CStrTokenizeBase::SetDelim().

◆ x_GetErrorFragment()

CTempString CUtf8::x_GetErrorFragment ( const CTempString src)
staticprivate

Definition at line 6666 of file ncbistr.cpp.

◆ x_GetValidSymbolCount()

SIZE_TYPE CUtf8::x_GetValidSymbolCount ( const CTempString src,
CTempString::const_iterator err 
)
staticprivate

◆ x_Init() [1/2]

void CTempString::x_Init ( const char *  str,
size_type  str_len,
size_type  pos 
)
inlineprivate

Definition at line 363 of file tempstr.hpp.

References CTempString::clear(), CTempString::m_Length, CTempString::m_String, and str().

◆ x_Init() [2/2]

void CTempString::x_Init ( const char *  str,
size_type  str_len,
size_type  pos,
size_type  len 
)
inlineprivate

Definition at line 377 of file tempstr.hpp.

References CTempString::clear(), len, CTempString::m_Length, CTempString::m_String, min(), and str().

Referenced by CTempString::assign().

◆ x_Join() [1/2]

template<typename TIterator >
static enable_if<is_same<typename TIterator::iterator_category, input_iterator_tag>::value && is_convertible<typename TIterator::value_type, string>::value, string>::type NStr::x_Join ( TIterator  from,
TIterator  to,
const CTempString delim 
)
inlinestaticprivate

Definition at line 3793 of file ncbistr.hpp.

References i, and NStr::TransformJoin().

Referenced by NStr::Join(), and NStr::JoinNumeric().

◆ x_Join() [2/2]

template<typename TValue >
static enable_if<is_convertible<TValue, string>::value, string>::type NStr::x_Join ( TValue *  from,
TValue *  to,
const CTempString delim 
)
inlinestaticprivate

Definition at line 3808 of file ncbistr.hpp.

References NStr::xx_Join().

◆ x_length()

template<typename _TChar >
size_t CTempXStr< _TChar >::x_length ( void  ) const
inlineprivate

◆ x_npos()

template<typename _TChar >
static size_t CTempXStr< _TChar >::x_npos ( void  )
inlinestaticprivate

Definition at line 200 of file ncbi_xstr.hpp.

References NPOS.

Referenced by CTempXStr< _TChar >::CTempXStr().

◆ x_NumericToString() [1/4]

static void NStr::x_NumericToString ( string out_str,
long  value,
TNumToStringFlags  flags,
int  base 
)
inlinestaticprivate

Definition at line 3739 of file ncbistr.hpp.

References flags, NStr::LongToString(), and rapidjson::value.

◆ x_NumericToString() [2/4]

template<typename TNumeric >
static enable_if< is_integral<TNumeric>::value && is_signed<TNumeric>::value && (sizeof(TNumeric) <= sizeof(int) && !is_same<TNumeric, long>::value), void>::type NStr::x_NumericToString ( string out_str,
TNumeric  value,
TNumToStringFlags  flags,
int  base 
)
inlinestaticprivate

Definition at line 3728 of file ncbistr.hpp.

References flags, NStr::IntToString(), and rapidjson::value.

Referenced by NStr::NumericToString(), and NStr::x_NumericToString().

◆ x_NumericToString() [3/4]

template<typename TStrictId >
static enable_if< is_integral<typename TStrictId::TId>::value && is_member_function_pointer<decltype(&TStrictId::Get)>::value, void>::type NStr::x_NumericToString ( string out_str,
TStrictId  value,
TNumToStringFlags  flags,
int  base 
)
inlinestaticprivate

Definition at line 3780 of file ncbistr.hpp.

References flags, rapidjson::value, and NStr::x_NumericToString().

◆ x_NumericToString() [4/4]

static void NStr::x_NumericToString ( string out_str,
unsigned long  value,
TNumToStringFlags  flags,
int  base 
)
inlinestaticprivate

Definition at line 3744 of file ncbistr.hpp.

References flags, NStr::ULongToString(), and rapidjson::value.

◆ x_ReportLimitsError()

bool NStr::x_ReportLimitsError ( const CTempString  str,
TStringToNumFlags  flags 
)
staticprivate

Definition at line 6548 of file ncbistr.cpp.

Referenced by NStr::x_VerifyFloatLimits(), and NStr::x_VerifyIntLimits().

◆ x_SkipDelims()

void CStrTokenizeBase::x_SkipDelims ( bool  force_skip)
private

Definition at line 7529 of file ncbistr.cpp.

Referenced by CStrTokenizeBase::MergeDelims(), and CStrTokenizeBase::SkipDelims().

◆ x_StringToNumeric() [1/7]

static bool NStr::x_StringToNumeric ( const CTempString  str,
double *  value,
TStringToNumFlags  flags,
int   
)
inlinestaticprivate

Definition at line 3713 of file ncbistr.hpp.

References flags, str(), NStr::StringToDouble(), and rapidjson::value.

◆ x_StringToNumeric() [2/7]

static bool NStr::x_StringToNumeric ( const CTempString  str,
float *  value,
TStringToNumFlags  flags,
int   
)
inlinestaticprivate

Definition at line 3702 of file ncbistr.hpp.

References flags, n, str(), NStr::StringToDouble(), and rapidjson::value.

◆ x_StringToNumeric() [3/7]

static bool NStr::x_StringToNumeric ( const CTempString  str,
long *  value,
TStringToNumFlags  flags,
int  base 
)
inlinestaticprivate

Definition at line 3676 of file ncbistr.hpp.

References flags, str(), NStr::StringToLong(), and rapidjson::value.

◆ x_StringToNumeric() [4/7]

template<typename TNumeric >
static enable_if< is_integral<TNumeric>::value && is_signed<TNumeric>::value && (sizeof(TNumeric) < sizeof(int)), bool>::type NStr::x_StringToNumeric ( const CTempString  str,
TNumeric *  value,
TStringToNumFlags  flags,
int  base 
)
inlinestaticprivate

Definition at line 3639 of file ncbistr.hpp.

References flags, n, str(), NStr::StringToInt(), and rapidjson::value.

◆ x_StringToNumeric() [5/7]

template<typename TStrictId >
static enable_if< is_integral<typename TStrictId::TId>::value && is_member_function_pointer<decltype(&TStrictId::Get)>::value, bool>::type NStr::x_StringToNumeric ( const CTempString  str,
TStrictId *  value,
TStringToNumFlags  flags,
int  base 
)
inlinestaticprivate

Definition at line 3720 of file ncbistr.hpp.

References flags, str(), rapidjson::value, and NStr::x_StringToNumeric().

◆ x_StringToNumeric() [6/7]

template<typename TNumeric >
static enable_if< is_integral<TNumeric>::value && is_signed<TNumeric>::value && (sizeof(TNumeric) < sizeof(int)), TNumeric>::type NStr::x_StringToNumeric ( const CTempString  str,
TStringToNumFlags  flags,
int  base 
)
inlinestaticprivate

Definition at line 3567 of file ncbistr.hpp.

References flags, n, str(), and NStr::StringToInt().

Referenced by NStr::StringToNumeric(), and NStr::x_StringToNumeric().

◆ x_StringToNumeric() [7/7]

static bool NStr::x_StringToNumeric ( const CTempString  str,
unsigned long *  value,
TStringToNumFlags  flags,
int  base 
)
inlinestaticprivate

Definition at line 3682 of file ncbistr.hpp.

References flags, str(), NStr::StringToULong(), and rapidjson::value.

◆ x_TCharToUnicodeSymbol()

template<typename TChar >
bool CUtf8::x_TCharToUnicodeSymbol ( TUnicodeSymbol u,
const TChar src 
)
staticprivate

◆ x_Validate()

void CUtf8::x_Validate ( const CTempString str)
staticprivate

◆ x_VerifyFloatLimits()

template<typename TNumeric , typename TSource >
static bool NStr::x_VerifyFloatLimits ( TSource  v,
const CTempString  str,
TStringToNumFlags  flags 
)
inlinestaticprivate

Definition at line 3556 of file ncbistr.hpp.

References flags, max(), str(), and NStr::x_ReportLimitsError().

◆ x_VerifyIntLimits()

template<typename TNumeric , typename TSource >
static bool NStr::x_VerifyIntLimits ( TSource  v,
const CTempString  str,
TStringToNumFlags  flags 
)
inlinestaticprivate

Definition at line 3548 of file ncbistr.hpp.

References flags, max(), min(), str(), and NStr::x_ReportLimitsError().

◆ XmlEncode()

string NStr::XmlEncode ( const CTempString  str,
TXmlEncode  flags = eXmlEnc_Contents 
)
static

◆ xx_Join()

template<typename TIterator >
string NStr::xx_Join ( TIterator  from,
TIterator  to,
const CTempString delim 
)
staticprivate

◆ ~CParseTemplException()

template<class TBase >
virtual CParseTemplException< TBase >::~CParseTemplException ( void  )
inlinevirtualnoexcept

Destructor.

Examples
/home/coremake/doxygen/cxx/include/corelib/ncbistr.hpp.

Definition at line 4439 of file ncbistr.hpp.

◆ ~CStringPairs()

template<class TContainer >
virtual CStringPairs< TContainer >::~CStringPairs ( void  )
inlinevirtual

◆ ~CTempString_Storage()

CTempString_Storage::~CTempString_Storage ( void  )

Definition at line 7403 of file ncbistr.cpp.

◆ ~IStringDecoder()

virtual IStringDecoder::~IStringDecoder ( void  )
inlinevirtual

◆ ~IStringEncoder()

virtual IStringEncoder::~IStringEncoder ( void  )
inlinevirtual

◆ ~IWrapDest()

virtual NStr::IWrapDest::~IWrapDest ( )
inlinevirtual

Definition at line 3271 of file ncbistr.hpp.

Variable Documentation

◆ END_NCBI_NAMESPACE

END_NCBI_NAMESPACE

Definition at line 5884 of file ncbistr.hpp.

◆ kEmptyCStr

const char* const kEmptyCStr
extern

◆ kEmptyWCStr

const wchar_t* const kEmptyWCStr
extern

◆ m_ArgSep

template<class TContainer >
string CStringPairs< TContainer >::m_ArgSep
private

◆ m_CaseSensitive

template<typename T >
NStr::ECase PNocase_Conditional_Generic< T >::m_CaseSensitive
private

◆ m_Data [1/3]

template<typename _TChar >
const _TChar* CTempXStr< _TChar >::m_Data
private

◆ m_Data [2/3]

template<class TContainer >
TStrPairs CStringPairs< TContainer >::m_Data
private

◆ m_Data [3/3]

TData CTempString_Storage::m_Data
private

Definition at line 1064 of file tempstr.hpp.

◆ m_Decoder

template<class TContainer >
AutoPtr<IStringDecoder> CStringPairs< TContainer >::m_Decoder
private

◆ m_Delim

CTempString CStrTokenizeBase::m_Delim
protected

◆ m_DelimStorage

CTempString_Storage CStrTokenizeBase::m_DelimStorage
private

Definition at line 185 of file ncbistr_util.hpp.

◆ m_Encoded

unique_ptr<string> CEncodedString::m_Encoded
private

Definition at line 4846 of file ncbistr.hpp.

Referenced by CEncodedString::GetEncodedString(), and CEncodedString::IsEncoded().

◆ m_Encoder

template<class TContainer >
AutoPtr<IStringEncoder> CStringPairs< TContainer >::m_Encoder
private

◆ m_ExtraStorage

template<size_t num_prealloc, typename TIn = string, typename TOut = basic_string<typename TIn::value_type>>
unique_ptr<vector<TIn> > CTextJoiner< num_prealloc, TIn, TOut >::m_ExtraStorage
private

Definition at line 71 of file text_joiner.hpp.

◆ m_FirstNode

SNode CTempStringList::m_FirstNode
private

Definition at line 114 of file ncbistr_util.hpp.

Referenced by CTempStringList::Add(), and CTempStringList::Clear().

◆ m_Flag [1/2]

NStr::EUrlDecode CStringDecoder_Url::m_Flag
private

Definition at line 4572 of file ncbistr.hpp.

Referenced by CStringEncoder_Url::CStringEncoder_Url().

◆ m_Flag [2/2]

NStr::EUrlEncode CStringEncoder_Url::m_Flag
private

Definition at line 4585 of file ncbistr.hpp.

◆ m_Flags

TFlags CStrTokenizeBase::m_Flags
protected

◆ m_InternalDelim

CTempStringEx CStrTokenizeBase::m_InternalDelim
private

Definition at line 184 of file ncbistr_util.hpp.

Referenced by CStrTokenizeBase::SetDelim().

◆ m_LastNode

SNode* CTempStringList::m_LastNode
private

Definition at line 115 of file ncbistr_util.hpp.

Referenced by CTempStringList::Add(), and CTempStringList::Clear().

◆ m_Length [1/2]

template<typename _TChar >
size_t CTempXStr< _TChar >::m_Length
mutableprivate

◆ m_Length [2/2]

size_type CTempString::m_Length
private

◆ m_list

list<string>& NStr::CWrapDestStringList::m_list
protected

Definition at line 3279 of file ncbistr.hpp.

Referenced by NStr::CWrapDestStringList::Append().

◆ m_MainStorage

template<size_t num_prealloc, typename TIn = string, typename TOut = basic_string<typename TIn::value_type>>
TIn CTextJoiner< num_prealloc, TIn, TOut >::m_MainStorage[num_prealloc]
private

Definition at line 70 of file text_joiner.hpp.

◆ m_MainStorageUsage

template<size_t num_prealloc, typename TIn = string, typename TOut = basic_string<typename TIn::value_type>>
size_t CTextJoiner< num_prealloc, TIn, TOut >::m_MainStorageUsage
private

Definition at line 72 of file text_joiner.hpp.

◆ m_Original

string CEncodedString::m_Original
private

◆ m_Pos [1/2]

template<class TBase >
string::size_type CParseTemplException< TBase >::m_Pos
private

◆ m_Pos [2/2]

SIZE_TYPE CStrTokenizeBase::m_Pos
protected

◆ m_Storage [1/2]

CTempString_Storage* CTempStringList::m_Storage
private

Definition at line 116 of file ncbistr_util.hpp.

◆ m_Storage [2/2]

CTempString_Storage* CStrTokenizeBase::m_Storage
protected

◆ m_Str

const CTempString& CStrTokenizeBase::m_Str
protected

◆ m_String

const char* CTempString::m_String
private

◆ m_TokenPos

template<class TPosContainer >
TPosContainer* CStrTokenPosAdapter< TPosContainer >::m_TokenPos
private

◆ m_ValSep

template<class TContainer >
string CStringPairs< TContainer >::m_ValSep
private

◆ m_ZeroAtEnd

EZeroAtEnd CTempStringEx::m_ZeroAtEnd
private

◆ next

unique_ptr<SNode> CTempStringList::SNode::next

Definition at line 111 of file ncbistr_util.hpp.

Referenced by CTempStringList::Add(), and CTempStringList::Clear().

◆ npos

const size_type CTempString::npos = static_cast<size_type>(-1)
static

◆ str

CTempString CTempStringList::SNode::str

Definition at line 110 of file ncbistr_util.hpp.

Referenced by CTempStringList::Add(), and CTempStringList::Clear().

Friends

◆ CStringUTF8_DEPRECATED

friend class CStringUTF8_DEPRECATED
friend

Definition at line 4378 of file ncbistr.hpp.

Modified on Sun Apr 14 05:28:40 2024 by modify_doxy.py rev. 669887