String Manipulations
[CORELIB]

Collaboration diagram for String Manipulations:


Classes

class  CTempXStr< _TChar >
class  XStr
 XStr --. More...
class  CNcbiEmptyString
 Empty "C++" string. More...
class  NStr
 NStr --. More...
class  CStringUTF8
class  CParseTemplException< TBase >
 CParseTemplException --. More...
class  CStringException
 CStringException --. More...
class  IStringDecoder
 Decoder interface. Names and values can be decoded with different rules. 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...
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  CStrTokenizeBase
 Base class for string splitting. More...
struct  CStrDummyTokenCount< TStr >
 Do nothing token counter. More...
struct  CStrDummyTargetReserve< TStr, TV, TP, TCount >
 Do nothing target reservation trait. More...
class  CStrTokenize< TStr, TV, TP, TCount, TReserve >
 Main tokenization algorithm. More...
struct  CStringTokenCount
 token count trait for std::string More...
struct  CStrTargetReserve< TStr, 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

std::basic_string<> compatibility typedefs and enums

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.
CTempStringCTempString::assign (const CTempString &src_str)
CTempStringCTempString::assign (const CTempString &src_str, size_type off, size_type count)
const_iterator CTempString::begin () const
 Return an iterator to the string's starting position.
const_iterator CTempString::end () const
 Return an iterator to the string's ending position (one past the end of the represented sequence).
const char * CTempString::data (void) const
 Return a pointer to the array represented.
size_type CTempString::length (void) const
 Return the length of the represented array.
size_type CTempString::size (void) const
 Return the length of the represented array.
bool CTempString::empty (void) const
 Return true if the represented string is empty (i.e., the length is zero).
void CTempString::clear (void)
 Clears the string.
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.
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.
size_type CTempString::find (char match, size_type pos=0) const
 Find the first instance of a given character string within the current string, beginning at an optional offset.
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.
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.
CTempString CTempString::substr (size_type pos) const
 Obtain a substring from this string, beginning at a given offset.
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.
char CTempString::operator[] (size_type pos) const
 Index into the current string and provide its character in a read- only fashion.
bool CTempString::operator== (const char *str) const
 operator== for C-style strings
bool CTempString::operator== (const string &str) const
 operator== for std::string strings
bool CTempString::operator== (const CTempString &str) const
 operator== for CTempString strings
bool CTempString::operator!= (const char *str) const
 operator!= for C-style strings
bool CTempString::operator!= (const string &str) const
 operator!= for std::string strings
bool CTempString::operator!= (const CTempString &str) const
 operator!= for CTempString strings
bool CTempString::operator< (const char *str) const
 operator< for C-style strings
bool CTempString::operator< (const string &str) const
 operator< for std::string strings
bool CTempString::operator< (const CTempString &str) const
 operator< for CTempString strings

Defines

#define NCBI_TEXT(x)   x
#define NcbiEmptyCStr   NCBI_NS_NCBI::kEmptyCStr
#define NcbiEmptyString   NCBI_NS_NCBI::CNcbiEmptyString::Get()
#define kEmptyStr   NcbiEmptyString
#define NCBI_TEMPSTR_MAKE_COPY()
#define NCBI_TEMPSTR_DESTROY_COPY()

Typedefs

typedef NCBI_NS_STD::string::size_type SIZE_TYPE
 Define size type.
typedef Uint2 TCharUCS2
 Type for character in UCS-2 encoding.
typedef basic_string< TCharUCS2TStringUCS2
 Type for string in UCS-2 encoding.
typedef Uint4 TUnicodeSymbol
typedef vector< pair< string,
string > > 
TStringPairsVector
typedef CStringPairs< TStringPairsVectorCStringPairsParser
typedef PCase_Generic< string > PCase
typedef PCase_Generic< const
char * > 
PCase_CStr
typedef PNocase_Generic< string > PNocase
typedef PNocase_Generic< const
char * > 
PNocase_CStr
typedef PNocase_Conditional_Generic<
string > 
PNocase_Conditional
typedef PNocase_Conditional_Generic<
const char * > 
PNocase_Conditional_CStr
typedef TV CStrTokenize::TContainer
typedef TP CStrTokenize::TPosContainer
typedef TCount CStrTokenize::TCountTrait
typedef TReserve CStrTokenize::TReserveTrait

Enumerations

enum  ENcbiStrings { eNcbiStrings_Stat, eNcbiStrings_PHID }
enum  EEncoding {
  eEncoding_Unknown, eEncoding_UTF8, eEncoding_Ascii, eEncoding_ISO8859_1,
  eEncoding_Windows_1252
}
 CStringUTF8 --. More...

Functions

const char * g_GetNcbiString (ENcbiStrings what)
template<class Arg1, class Arg2, class Pred>
bool AStrEquiv (const Arg1 &x, const Arg2 &y, Pred pr)
 Check equivalence of arguments using predicate.
void CStrDummyTokenPos::reserve (string::size_type)
static void CStrTokenize::Do (const TString &str, const TString &delim, TContainer &target, EMergeDelims merge, TPosContainer &token_pos, const TString &empty_str=TString())
 Tokenize a string using the specified set of char delimiters.
void CStrTokenPosAdapter::push_back (string::size_type pos)
void CStrTokenPosAdapter::reserve (string::size_type capacity)
 CTempString::CTempString (void)
 CTempString::CTempString (const char *str)
 CTempString::CTempString (const char *str, size_type len)
 CTempString::NCBI_DEPRECATED_CTOR (CTempString(const char *str, size_type pos, size_type len))
 Use CTempString(const char* str, size_type len) instead.
 CTempString::CTempString (const string &str)
 CTempString::NCBI_DEPRECATED_CTOR (CTempString(const string &str, size_type length))
 Use CTempString(const char* str, size_type pos, size_type len) instead.
 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 length) const
 copy a substring into a string Somewhat similar to basic_string::assign()
 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)
bool CTempString::x_Equals (const_iterator it2, size_type len2) const
bool CTempString::x_Less (const_iterator it2, size_type len2) const
CNcbiOstreamoperator<< (CNcbiOstream &out, const CTempString &str)
bool operator== (const string &str1, const CTempString &str2)
 Global operator== for string and CTempString.
template<size_t Size>
CTempString literal (const char(&str)[Size])
 Templatized initialization from a string literal.
 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.
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 off, size_type count)
void CTempStringEx::clear (void)
 Clear value to an empty string.
CTempStringEx CTempStringEx::substr (size_type pos) const
 Obtain a substring from this string, beginning at a given offset.
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.
bool CTempStringEx::HasZeroAtEnd (void) const

Variables

const char *const kEmptyCStr
 Empty "C" string (points to a '').
static const SIZE_TYPE NPOS = NCBI_NS_STD::string::npos
 Define NPOS constant as the special value "std::string::npos" which is returned when a substring search fails, or to indicate an unspecified string position.
TPosContainer * CStrTokenPosAdapter::m_TokenPos
const char * CTempString::m_String
 Stored pointer to string.
size_type CTempString::m_Length
 Length of string.
EZeroAtEnd CTempStringEx::m_ZeroAtEnd


Define Documentation

#define kEmptyStr   NcbiEmptyString
 

Definition at line 89 of file ncbistr.hpp.

Referenced by CCgiCookies::Add(), CArgDescriptions::AddAlias(), CCgiEntries_Parser::AddArgument(), CTime::AddDay(), CArgDescriptions::AddExtra(), CTime::AddMinute(), CTime::AddMonth(), CMsvcConfigure::AnalyzeDefines(), CCgiApplication::AppStart(), IWMClient::CFingerprint::AsPersistentString(), CTime::AsString(), CArg_String::AsString(), CCleanup_imp::BasicCleanup(), impl::CDBBindedParams::Bind(), CODBC_BCPInCmd::Bind(), CDBL_BCPInCmd::Bind(), CTL_BCPInCmd::Bind(), BlockTEA_Decode(), BOOST_AUTO_TEST_CASE(), CAlignAnnotToString(), CEUtilsApp::CallEInfo(), CEUtilsApp::CallESpell(), CEUtilsApp::CallESummary(), CArgDescriptions::CArgDescriptions(), CBlastFormat::CBlastFormat(), CConn_FTPDownloadStream::CConn_FTPDownloadStream(), CDataLoadingAppTask::CDataLoadingAppTask(), CDll::CDll(), CEditAppTask::CEditAppTask(), CRemoteBlast::CheckStatus(), CHTMLPopupMenu::CHTMLPopupMenu(), CId1Reader::CId1Reader(), CId2Reader::CId2Reader(), CCgiStatistics::Compose(), CCgiStatistics::Compose_Entries(), CSGConfigUtils::ComposeProfileString(), SBDB_CacheStatistics::ConvertToRegistry(), CPrintOptions::CPrintOptions(), CArgDescriptions::CreateArgs(), CPluginManager_DllResolver::CreateDllResolver(), CBlobStorage_NetCache::CreateEmptyBlob(), CBlobStorage_Null::CreateEmptyBlob(), CNetScheduleAPICF::CreateInstance(), CNetCacheAPICF::CreateInstance(), CBlobStorageNetCacheCF::CreateInstance(), CBlobStorage_File::CreateOStream(), STrackSettings::CreateProfileString(), CTmpEnvironmentSetter::CTmpEnvironmentSetter(), CProcess::Daemonize(), CTime::DayOfWeekNumToName(), CShowBlastDefline::Display(), CContentAdvClickAct::DoClick(), CSettingsSet::DuplicateStyle(), IRegistry::EnumerateSections(), FindGeneticCode(), CFlatBoolQVal::Format(), CGenbankFormatter::FormatComment(), CEmblFormatter::FormatLocus(), CGBSeqFormatter::FormatSequence(), NStr::FormatVarargs(), CBlobStoreBase::GenReadQuery(), CBDB_FieldLString::Get(), IRegistry::Get(), CNcbiEnvironment::Get(), CPtbRegistry::Get(), GetAccessionForGi(), GetAccessionForId(), CRPCClient< TRequest, TReply >::GetAffinity(), CAffinityDict::GetAffToken(), GetAlignAnnotDescription(), CUrl::GetArgs(), CEUtils_Request::GetArgument(), CScannerFunctorArgN::GetArguments(), GetAsnDataViaHTTP(), CSeqDBImpl::GetAvailableMaskAlgorithmDescriptions(), CTaxon1Node::GetBlastName(), SCacheInfo::GetBlobSubkey(), CPluginInfoSet::GetClass_name(), CRequestContext::GetClientIP(), CHTMLPopupMenu::GetCodeBody(), CSeqTextConfig::GetColor(), IRegistry::GetComment(), CBlastDatabaseArgs::GetDatabaseName(), CEntrezDB::GetDbName(), CRealDataType::GetDefaultString(), CWorkspaceConstPrx::GetDescr(), CFeatList::GetDescription(), CRequestContext::GetEncodedSessionID(), CGridCgiContext::GetEntryValue(), CDataSource::GetErrorInfo(), CID1server_back::GetErrorString(), CHTMLNode::GetEventHandlerName(), SDiagMessage::GetEventName(), CCgiCookie::GetExpDate(), CBioTree< TBioNode >::CBioNode::GetFeature(), CBioTreeFeatureList::GetFeatureValue(), CAnalysisFile::GetHeaderInfo(), CCgiResponse::GetHeaderValue(), CPaneContentConf::GetHistogram(), CRequestContext::GetHitID(), Sequence::GetLabel(), CNetBlastJobDescriptorLabelHandler::GetLabel(), AbstractParser::GetLocation(), GetLogFile(), CFileDiagHandler::GetLogFile(), CRegexp::GetMatch(), DistanceMatrix::GetMatrixName(), CFileCode::GetMethodPrefix(), CDataSource::GetName(), impl::CDBBindedParams::GetName(), CTypeInfo::GetNamespaceName(), CTypeInfo::GetNamespacePrefix(), CWindowManager::GetNewFloatingFrameTitle(), CPluginValue::GetObjectSubtype(), CNetCacheAPI::GetOwner(), CGBDataLoader::GetParam(), impl::CDB_Params::GetParamName(), CGBDataLoader::GetParamsSubnode(), IEnvRegMapper::GetPrefix(), CGridJobStatus::GetProgressMessage(), CRequestContext::GetProperty(), CDiagContext::GetProperty(), CSeqFeatData::GetQualifierAsString(), GetRawSequenceString(), CBLASTParams::GetRepeatLib(), CDataType::GetSchemaTypeString(), CBoolDataType::GetSchemaTypeString(), CCdCore::GetSequenceStringByIndex(), CRequestContext::GetSessionID(), CSeqTextConfig::GetShow(), CFeatConfigShow::GetShow(), CId_pat::GetSomeNumber(), CDataType::GetSourceFileName(), CModuleContainer::GetSourceFileName(), CFeatList::GetStoragekey(), CConfig::GetString(), CCommentItem::GetStringForBankIt(), CCommentItem::GetStringForEncode(), CCommentItem::GetStringForRefTrack(), CCommentItem::GetStringForTPA(), CCommentItem::GetStringForWGS(), TaxClient::GetSuperKingdom(), TaxClient::GetTaxNameForTaxID(), GetTechString(), AbstractToken::GetText(), Sequence::GetTitle(), CCdCore::GetTitle(), CBlastQuerySourceBioseqSet::GetTitle(), CDirEntry::GetTmpName(), CSeqGlyph::GetTooltip(), CRnaCdsGroup::GetTooltip(), CSettingsSet::GetTypeDescription(), CDbtag::GetUrl(), CArgDesc_NameOnly::GetUsageCommentAttr(), CArgDesc_Alias::GetUsageCommentAttr(), CArgDesc_Flag::GetUsageCommentAttr(), CArgDesc::GetUsageConstraint(), CArgDesc_NameOnly::GetUsageSynopsis(), CArgDesc_Alias::GetUsageSynopsis(), CMsvcMetaMakefile::GetUsePchThroughHeader(), CWinSecurity::GetUserName(), CPageStat::GetValue(), CCgiArgs::GetValue(), CFeatTableDS::GetValueAt(), CPluginInfoSet::GetVer_build_date(), CEntrezDB::GetVisibleName(), CNullDataValue::GetXmlString(), HexToString(), CHTMLPopupMenu::HideMenu(), CShowBlastDefline::Init(), CHTMLPage::Init(), CLocalDbAdapter::IsBlastDb(), NSnp::IsSnpKnown(), JoinString(), LDS_TypeMapSearch(), CTestConfigMediator::Load(), CFileCode::LoadLines(), CLayoutTrack::LoadProfile(), CGenBankUILoadManager::LoadSettings(), CSmallDNS::LocalBackResolveDNS(), CDebugDumpContext::Log(), CId1FetchApp::LookUpFlatSeqID(), CDirEntry::LookupLink(), main(), MakeRID(), MakeString(), NCBITEST_AUTO_INIT(), NotNull(), CDataTrack::OnAJProgress(), CBLAST_DB_Dialog::OnInitDialog(), CThemeDlg::OnOkClick(), CBLAST_DB_Dialog::OnResetBtnClick(), CThemeDlg::OnThemeListSelected(), CBDB_RawFile::Open(), OpenLogFileFromConfig(), CDllResolver_Getter< I_DriverContext >::operator()(), CQueryTreeFieldResolveFunc::operator()(), CDllResolver_Getter< ICache >::operator()(), CDllResolver_Getter< objects::CWriter >::operator()(), CDllResolver_Getter< objects::CReader >::operator()(), CDllResolver_Getter< objects::IEditsDBEngine >::operator()(), CDllResolver_Getter< objects::IEditSaver >::operator()(), CDllResolver_Getter< objects::CDataLoader >::operator()(), CDllResolver_Getter< IBlobStorage >::operator()(), CDiagLexParser::Parse(), CGridCgiContext::PersistEntry(), CComments::PrintHPPEnum(), CDiagContext::PrintRequestStop(), CDiagContext::PrintStop(), CMsvcConfigure::ProcessDefine(), CMzXML2hdf5Application::ProcessFiles(), CNetCacheAPI::PutData(), SQueueParameters::Read(), SNS_Parameters::Read(), CNetScheduleSubmitter::ReadConfirm(), CNetServerMultilineCmdOutput::ReadLine(), CNetScheduleSubmitter::ReadRollback(), CSimpleEnvRegMapper::RegToEnv(), CCgiRedirectApplication::RemapEntries(), CSettingsSet::RenameStyle(), CCgiStatistics::Reset(), CExec::ResolvePath(), CCgiSession::RetrieveSessionId(), CGridWorkerNode::Run(), CNetCacheCheckApp::Run(), CRAMonitor::Run(), Cn3DNoWin::Run(), CGridThreadContext::RunJobs(), s_AaName(), s_AreFeatureLabelsSame(), s_CollapseProjectFolder(), s_CollectRelPathes(), s_ConvertComment(), s_Dump(), s_ExportSearchStrategy(), s_FindAttribute(), s_FindPathToGeneInfoFiles(), s_FindPathToWM(), s_FormatCitGen(), s_GetBioseqAcc(), s_GetInitialsFromFirst(), s_GetSubsourceString(), s_GetSubtypeString(), s_GetSymbolClass(), s_GetUsageSymbol(), s_NStr_Join(), s_OSReason(), s_ParseErrCodeInfoStr(), s_ParseFastaDefline(), s_PrintVector(), s_REG_Set(), s_ResetQueryNode(), CAlignShadow::s_RunLengthEncode(), s_SetterName(), s_SpecialValueName(), s_StdGetTmpName(), CLayoutTrack::SaveProfile(), CSeqGraphicConfig::SaveSettings(), SDataLoaderConfig::SDataLoaderConfig(), SDubiousShortSequence::SDubiousShortSequence(), impl::CDBBindedParams::Set(), CSeqTextConfig::SetColor(), CArgDesc::SetConstraint(), CCompression::SetError(), CPaneContentConf::SetHistogram(), CNetScheduleServer::SetNSParameters(), CSeqTextConfig::SetShow(), CFeatConfigShow::SetShow(), CHTMLPage::SetTemplateBuffer(), CHTMLPage::SetTemplateStream(), CHTMLPage::SetTemplateString(), CDiagContext::SetupDiag(), CUrl::SetUrl(), CHTMLPopupMenu::ShowMenu(), CHTMLPopupMenu::SItem::SItem(), SNetScheduleAPIImpl::SNetScheduleAPIImpl(), SNetServiceImpl::SNetServiceImpl(), NStr::Split(), NStr::SplitInTwo(), CDirEntry::SplitPath(), CDirEntry::SplitPathEx(), CNetScheduleAPI::StatusToString(), NStr::StringToDoubleEx(), CTableNames::TableToName(), CCdAnnotationInfo::ToFtpDumpString(), NStr::Tokenize(), SProjectSelectorParams::ToLoadingOptions(), CCdAnnotationInfo::ToLongString(), CCdAnnotationInfo::ToString(), TreeAlgorithm::toString(), NStr::TruncateSpaces(), NStr::TruncateSpacesInPlace(), CNcbiEnvironment::Unset(), CRequestContext::UnsetSessionID(), CSeqGraphicConfigPanel::UpdatePreview(), NStr::URLEncode(), CMaskingFmtSpecHelper::ValidateFilteringAlgorithm(), NStr::Wrap(), IRegistry::Write(), CFeature_table_reader_imp::x_AddGBQualToFeature(), CTime::x_AddHour(), CDBL_BCPInCmd::x_AssignParams(), CArgDescriptions::x_CheckAutoHelp(), COpenViewlDlgTask::x_CheckDataStatus(), CDBAPI_Cache::x_CleanOrphantBlobs(), CBlastFormat::x_ComputeBlastTypePair(), CGBenchService::x_Connect(), CEUtilsApp::x_CreateLitRequest(), CEUtilsApp::x_CreateSeqRequest(), CRnaCdsGroup::x_DrawLabels(), CMemoryRegistry::x_Enumerate(), CGFFReader::x_FeatureID(), CGFFFormatter::x_FormatAttr(), CDBSourceItem::x_FormatDBSourceID(), CSourceFeatureItem::x_FormatNoteQuals(), CFtableFormatter::x_FormatQuals(), CFlatItemFormatter::x_FormatRefLocation(), CCommentItem::x_GatherFeatInfo(), CCompoundRWRegistry::x_Get(), CCompoundRegistry::x_Get(), CMemoryRegistry::x_Get(), CEnvironmentRegistry::x_Get(), CCgiEntry::x_GetCharset(), CCompoundRegistry::x_GetComment(), CEnvironmentRegistry::x_GetComment(), CNcbiResourceInfo::x_GetEncoded(), SDiagMessage::x_GetModule(), CDataLoaderFactory::x_GetObjectManager(), CSettingsSet::x_GetStyleKey(), CSettingsSet::x_GetStyleName(), CEnvironmentRegistry::x_HasEntry(), CReferenceItem::x_Init(), CCgiUserAgent::x_Init(), CBlastFastaInputSource::x_InitInputReader(), CDisplaySeqalign::x_IsGeneInfoAvailable(), CMaskingFmtSpecHelper::x_ParseFilteringAlgorithmSpec(), CGFFReader::x_PlaceAlignment(), CGFFReader::x_PlaceFeature(), CArgDescriptions::x_PostCheck(), CQueue::x_PrintJobStat(), CTar::x_ProcessEntry(), CAnalysisFile::x_ReadColumnHeaders(), CEditAppJob::x_ResetState(), CDataLoadingAppJob::x_ResetState(), CDBAPI_Cache::x_RetrieveTimeStamp(), CFeaturePanel::x_SaveSettings(), CRemoteBlast::x_SearchErrors(), CCgiArgs_Parser::x_SetIndexString(), CCleanup_imp::x_SubtypeCleanup(), CDBAPI_Cache::x_UpdateAccessTime(), CBlastFormat::x_WrapAlignmentInSeqAnnot(), CAutoNcbiConfigFile::~CAutoNcbiConfigFile(), CBlobIStream::~CBlobIStream(), CBlobOStream::~CBlobOStream(), CBulkInsert::~CBulkInsert(), CByteStreamBuf::~CByteStreamBuf(), CCallableStatement::~CCallableStatement(), CConnection::~CConnection(), CCursor::~CCursor(), CResultSet::~CResultSet(), CResultSetMetaData::~CResultSetMetaData(), CStatement::~CStatement(), CVariant::~CVariant(), and CxBlobWriter::~CxBlobWriter().

 
#define NCBI_TEMPSTR_DESTROY_COPY  ) 
 

Definition at line 237 of file tempstr.hpp.

Referenced by CTempString::assign().

 
#define NCBI_TEMPSTR_MAKE_COPY  ) 
 

Definition at line 236 of file tempstr.hpp.

Referenced by CTempString::assign(), and CTempString::CTempString().

#define NCBI_TEXT  )     x
 

Definition at line 55 of file ncbi_xstr.hpp.

#define NcbiEmptyCStr   NCBI_NS_NCBI::kEmptyCStr
 

Definition at line 58 of file ncbistr.hpp.

Referenced by CAgpRow::GapTypeToString(), CAgpErr::GetMsg(), s_MultiSeqGetName(), and s_QueryFactoryGetName().

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

Definition at line 88 of file ncbistr.hpp.

Referenced by CClassTypeStrings::AddMember(), CAccPatternCounter::AddName(), Blast_ProgramNameFromType(), BlastXML_FormatReport(), CAlignFormatUtil::BuildFormatQueryString(), CPager::CPager(), DirName(), CShowBlastDefline::DisplayBlastDefline(), CShowBlastDefline::DisplayBlastDeflineTable(), CHelloCommand::Execute(), CEnumeratedTypeValues::FindName(), CNCBINode::GetAttribute(), CAliasRefTypeStrings::GetDefaultCode(), CAliasTypeStrings::GetDefaultCode(), CTypeStrings::GetDestructionCode(), CAliasRefTypeStrings::GetDestructionCode(), CCmdLineBlastXMLReportData::GetFilterString(), CTypeStrings::GetInitializer(), CRefTypeStrings::GetInitializer(), CAliasRefTypeStrings::GetInitializer(), CDataType::GetKeyPrefix(), CHelloCommand::GetLink(), CNcbiArguments::GetProgramDirname(), CTypeStrings::GetResetCode(), CShowBlastDefline::GetSeqIdList(), CShowBlastDefline::GetSeqIdListString(), ASNParser::Identifier(), CDataTool::Init(), CPager::IsPagerCommand(), CNcbiCommand::IsRequested(), CNcbiEnvironment::Load(), ASNParser::ModuleReference(), CAgpErrEx::Msg(), CAgpErr::Msg(), CAgpValidateReader::OnGapOrComponent(), CObjectIStream::PeekNextTypeName(), CObjectIStream::ReadFileHeader(), CObjectIStreamXml::ReadOtherPointer(), CAgpReader::ReadStream(), s_BlastMessageToException(), s_BlastXMLAddIteration(), s_GetCdsSequence(), s_GetGif(), s_GetIdUrl(), s_GetSeqForm(), s_GetSeqIdListString(), s_OutputFeature(), s_SeqAlignSetToXMLHsps(), s_SeqAlignToXMLHit(), s_SetBlastXMLParameters(), CNCBINode::SetAttribute(), CClassTypeInfo::SetParentClass(), CDataType::SetParentClassTo(), ASNParser::TypeReference(), CDisplaySeqalign::x_DisplayAlnvec(), CShowBlastDefline::x_DisplayDefline(), CShowBlastDefline::x_DisplayDeflineTable(), CDisplaySeqalign::x_GetSegs(), and CBlastTabularInfo::x_ResetFields().


Typedef Documentation

typedef const char* CTempString::const_iterator [inherited]
 

Definition at line 69 of file tempstr.hpp.

typedef CStringPairs<TStringPairsVector> CStringPairsParser
 

Definition at line 2999 of file ncbistr.hpp.

typedef PCase_Generic<string> PCase
 

Definition at line 3067 of file ncbistr.hpp.

typedef PCase_Generic<const char *> PCase_CStr
 

Definition at line 3068 of file ncbistr.hpp.

typedef PNocase_Generic<string> PNocase
 

Definition at line 3097 of file ncbistr.hpp.

typedef PNocase_Conditional_Generic<string> PNocase_Conditional
 

Definition at line 3139 of file ncbistr.hpp.

typedef PNocase_Conditional_Generic<const char *> PNocase_Conditional_CStr
 

Definition at line 3140 of file ncbistr.hpp.

typedef PNocase_Generic<const char *> PNocase_CStr
 

Definition at line 3098 of file ncbistr.hpp.

typedef size_t CTempString::size_type [inherited]
 

Definition at line 68 of file tempstr.hpp.

typedef NCBI_NS_STD::string::size_type SIZE_TYPE
 

Define size type.

Definition at line 95 of file ncbistr.hpp.

typedef Uint2 TCharUCS2
 

Type for character in UCS-2 encoding.

Definition at line 2048 of file ncbistr.hpp.

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

Definition at line 122 of file ncbistr_util.hpp.

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

Definition at line 124 of file ncbistr_util.hpp.

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

Definition at line 123 of file ncbistr_util.hpp.

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

Definition at line 125 of file ncbistr_util.hpp.

typedef vector<pair<string, string> > TStringPairsVector
 

Definition at line 2998 of file ncbistr.hpp.

typedef basic_string<TCharUCS2> TStringUCS2
 

Type for string in UCS-2 encoding.

Definition at line 2050 of file ncbistr.hpp.

typedef Uint4 TUnicodeSymbol
 

Definition at line 2074 of file ncbistr.hpp.


Enumeration Type Documentation

enum EEncoding
 

CStringUTF8 --.

An UTF-8 string. Stores character data in UTF-8 encoding form. Being initialized, converts source characters into UTF-8. Can convert data back into a particular encoding form (non-UTF8) Supported encodings: ISO 8859-1 (Latin1) Microsoft Windows code page 1252 UCS-2, UCS-4 (no surrogates)

Enumerator:
eEncoding_Unknown 
eEncoding_UTF8 
eEncoding_Ascii 
eEncoding_ISO8859_1 
eEncoding_Windows_1252 

Definition at line 2067 of file ncbistr.hpp.

enum ENcbiStrings
 

Enumerator:
eNcbiStrings_Stat 
eNcbiStrings_PHID 

Definition at line 55 of file ncbi_strings.h.


Function Documentation

CTempStringEx& CTempStringEx::assign const CTempString str,
size_type  off,
size_type  count
[inline, inherited]
 

Definition at line 758 of file tempstr.hpp.

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

CTempStringEx& CTempStringEx::assign const CTempStringEx str  )  [inline, inherited]
 

Definition at line 754 of file tempstr.hpp.

CTempStringEx& CTempStringEx::assign const CTempString str  )  [inline, inherited]
 

Reimplemented from CTempString.

Definition at line 748 of file tempstr.hpp.

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

CTempStringEx& CTempStringEx::assign const char *  str,
size_type  len,
EZeroAtEnd  zero_at_end
[inline, inherited]
 

Definition at line 741 of file tempstr.hpp.

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

CTempStringEx& CTempStringEx::assign const char *  str,
size_type  len
[inline, inherited]
 

Assign new values to the content of the a string.

Definition at line 735 of file tempstr.hpp.

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

Referenced by CWigBufferedLineReader::operator++().

CTempString & CTempString::assign const CTempString src_str,
size_type  off,
size_type  count
[inline, inherited]
 

Definition at line 562 of file tempstr.hpp.

References CTempString::data(), NCBI_TEMPSTR_DESTROY_COPY, NCBI_TEMPSTR_MAKE_COPY, CTempString::size(), and CTempString::x_Init().

CTempString & CTempString::assign const CTempString src_str  )  [inline, inherited]
 

Reimplemented in CTempStringEx.

Definition at line 552 of file tempstr.hpp.

References NCBI_TEMPSTR_DESTROY_COPY, and NCBI_TEMPSTR_MAKE_COPY.

CTempString & CTempString::assign const char *  src_str,
size_type  len
[inline, inherited]
 

Assign new values to the content of the a string.

Definition at line 541 of file tempstr.hpp.

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

Referenced by CTempStringEx::assign().

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

Check equivalence of arguments using predicate.

Definition at line 3170 of file ncbistr.hpp.

Referenced by CCgiRequest::CalcChecksum(), CCgiCookies::Find(), CId_pat::Id_Match(), CNcbiCommand::IsRequested(), CId_pat::Match(), PFindByName< T >::operator()(), NStr::StringToBool(), and CCgiRequest::x_ProcessInputStream().

CTempString::const_iterator CTempString::begin  )  const [inline, inherited]
 

Return an iterator to the string's starting position.

Definition at line 242 of file tempstr.hpp.

References CTempString::m_String.

Referenced by CTempString::Copy(), CTempString::find_first_not_of(), CTempString::find_first_of(), CMemoryLineReader::operator *(), CBufferedLineReader::operator++(), CMemoryLineReader::operator++(), CWigBufferedLineReader::operator++(), CBufferedLineReader::PeekChar(), CBufferedLineReader::UngetLine(), CMemoryLineReader::UngetLine(), CWigBufferedLineReader::UngetLine(), and CTempString::x_Less().

void CTempStringEx::clear void   )  [inline, inherited]
 

Clear value to an empty string.

Reimplemented from CTempString.

Definition at line 768 of file tempstr.hpp.

References CTempString::clear(), CTempStringEx::eHasZeroAtEnd, and CTempStringEx::m_ZeroAtEnd.

Referenced by CWig2tableApplication::x_TryGetDouble().

void CTempString::clear void   )  [inline, inherited]
 

Clears the string.

Reimplemented in CTempStringEx.

Definition at line 295 of file tempstr.hpp.

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

Referenced by CTempStringEx::clear(), CTempString::CTempString(), and CTempString::x_Init().

void CTempString::Copy string &  dst,
size_type  pos,
size_type  length
const [inline, inherited]
 

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

Definition at line 439 of file tempstr.hpp.

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

Referenced by SAccGuide::AddRule().

CTempString::CTempString const CTempString str,
size_type  pos,
size_type  len
[inline, inherited]
 

Definition at line 420 of file tempstr.hpp.

References CTempString::data(), NCBI_TEMPSTR_MAKE_COPY, CTempString::size(), and CTempString::x_Init().

CTempString::CTempString const CTempString str,
size_type  pos
[inline, inherited]
 

Definition at line 412 of file tempstr.hpp.

References CTempString::data(), NCBI_TEMPSTR_MAKE_COPY, CTempString::size(), and CTempString::x_Init().

CTempString::CTempString const CTempString str  )  [inline, inherited]
 

Definition at line 404 of file tempstr.hpp.

References NCBI_TEMPSTR_MAKE_COPY.

CTempString::CTempString const string &  str,
size_type  pos,
size_type  len
[inline, inherited]
 

Definition at line 396 of file tempstr.hpp.

References NCBI_TEMPSTR_MAKE_COPY, and CTempString::x_Init().

CTempString::CTempString const string &  str  )  [inline, inherited]
 

Definition at line 388 of file tempstr.hpp.

References NCBI_TEMPSTR_MAKE_COPY.

CTempString::CTempString const char *  str,
size_type  len
[inline, inherited]
 

Definition at line 380 of file tempstr.hpp.

References NCBI_TEMPSTR_MAKE_COPY.

CTempString::CTempString const char *  str  )  [inline, inherited]
 

Definition at line 357 of file tempstr.hpp.

References CTempString::clear(), CTempString::m_Length, CTempString::m_String, and NCBI_TEMPSTR_MAKE_COPY.

CTempString::CTempString void   )  [inline, inherited]
 

Definition at line 350 of file tempstr.hpp.

References CTempString::clear().

Referenced by CTempString::substr().

CTempStringEx::CTempStringEx const CTempString str,
size_type  pos,
size_type  len
[inline, inherited]
 

Definition at line 728 of file tempstr.hpp.

CTempStringEx::CTempStringEx const CTempString str,
size_type  pos
[inline, inherited]
 

Definition at line 723 of file tempstr.hpp.

CTempStringEx::CTempStringEx const CTempString str  )  [inline, inherited]
 

Definition at line 718 of file tempstr.hpp.

CTempStringEx::CTempStringEx const string &  str,
size_type  pos,
size_type  len
[inline, inherited]
 

Definition at line 713 of file tempstr.hpp.

CTempStringEx::CTempStringEx const string &  str  )  [inline, inherited]
 

Definition at line 708 of file tempstr.hpp.

CTempStringEx::CTempStringEx const char *  str,
size_type  len,
EZeroAtEnd  zero_at_end
[inline, inherited]
 

Definition at line 703 of file tempstr.hpp.

CTempStringEx::CTempStringEx const char *  str,
size_type  len
[inline, inherited]
 

Definition at line 698 of file tempstr.hpp.

CTempStringEx::CTempStringEx const char *  str  )  [inline, inherited]
 

Definition at line 693 of file tempstr.hpp.

CTempStringEx::CTempStringEx void   )  [inline, inherited]
 

Definition at line 689 of file tempstr.hpp.

Referenced by CTempStringEx::substr().

const char * CTempString::data void   )  const [inline, inherited]
 

Return a pointer to the array represented.

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

Definition at line 256 of file tempstr.hpp.

References _ASSERT, and CTempString::m_String.

Referenced by CDelta_ext::AddAndSplit(), CWriteDB_Impl::AddSequence(), CWriteDB::AddSequence(), CTempString::assign(), CSQLITE_Statement::Bind(), CBlastDbBlob::CBlastDbBlob(), CTempString::CTempString(), CTempString::operator string(), PQuickStringLess::operator()(), CTempString::operator<(), operator<<(), CQuickStrStream::operator<<(), CTempString::operator==(), CNetServProtoParserBase::ParseArguments(), CNetServProtoParserBase::ParseCommand(), CFastaReader::ParseDefLine(), CFastaReader::ParseIDs(), CFastaReader::ParseTitle(), CObjectIStreamAsn::ReadDouble(), s_GetField(), s_NoCaseEqual(), CFastaReader::SaveSeqData(), CTL_BCPInCmd::SetHints(), CObjectIStreamXml::SkipStackTagName(), CObjectIStreamXml::SkipTagName(), NStr::StringToDouble(), NStr::StringToUInt8_DataSize(), CTempStringEx::substr(), CWriteDB_File::Write(), CBufferedSockReaderWriter::WriteMessage(), CWriteDB_IsamIndex::x_AddString(), CWriteDB_IsamIndex::x_AddStringData(), CWig2tableApplication::x_CommentLine(), CWriteDB_Impl::x_ComputeHash(), CTempString::x_Equals(), CSeqDBVol::x_GetFilteredBinaryHeader(), CWig2tableApplication::x_GetParamName(), CWig2tableApplication::x_GetParamValue(), CWig2tableApplication::x_GetPos(), CWig2tableApplication::x_GetWord(), CWig2tableApplication::x_SkipWS(), CWig2tableApplication::x_TryGetDouble(), CWig2tableApplication::x_TryGetDoubleSimple(), CWig2tableApplication::x_TryGetPos(), and CBlastDbBlob::x_WriteString().

template<class TStr, class TV, class TP = CStrDummyTokenPos, class TCount = CStrDummyTokenCount<TStr>, class TReserve = CStrDummyTargetReserve<TStr, TV, TP, TCount>>
static void CStrTokenize< TStr, TV, TP, TCount, TReserve >::Do const TString str,
const TString delim,
TContainer target,
EMergeDelims  merge,
TPosContainer token_pos,
const TString empty_str = TString()
[inline, static, inherited]
 

Tokenize a string using the specified set of char delimiters.

Parameters:
str String to be tokenized.
delim Set of char delimiters used to tokenize string "str". If delimiter is empty, then input string is appended to "arr" as is.
target Output container. Tokens defined in "str" by using symbols from "delim" are added to the list "target".
merge Whether to merge the delimiters or not. eNoMergeDelims means that delimiters that immediately follow each other are treated as separate delimiters - empty string(s) appear in the target output.
token_pos Container for the tokens' positions in "str".
empty_str String added to target when there are no other characters between delimiters

Definition at line 151 of file ncbistr_util.hpp.

bool CTempString::empty void   )  const [inline, inherited]
 

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

Definition at line 278 of file tempstr.hpp.

References CTempString::m_Length.

Referenced by CObjectIStreamXml::BeginClassMember(), CAutoEnvironmentVariable::CAutoEnvironmentVariable(), CObjectIStreamXml::CloseStackTag(), CCodeGenerator::GenerateCvsignore(), CObjectIStreamXml::OpenStackTag(), CObjectIStreamXml::SkipStackTagName(), CWriteDB_IsamIndex::x_AddTextId(), CGFFReader::x_ParseStructuredComment(), CGFFReader::x_ParseTypeComment(), and CSQLITE_Statement::x_Prepare().

CTempString::const_iterator CTempString::end  )  const [inline, inherited]
 

Return an iterator to the string's ending position (one past the end of the represented sequence).

Definition at line 249 of file tempstr.hpp.

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

Referenced by CTempString::find_first_not_of(), CTempString::find_first_of(), and CMemoryLineReader::operator++().

void CTempString::erase size_type  pos = 0  )  [inline, inherited]
 

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

Definition at line 428 of file tempstr.hpp.

References CTempString::m_Length.

CTempString::size_type CTempString::find char  match,
size_type  pos = 0
const [inline, inherited]
 

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

Definition at line 525 of file tempstr.hpp.

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

CTempString::size_type CTempString::find const CTempString match,
size_type  pos = 0
const [inline, inherited]
 

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

Definition at line 495 of file tempstr.hpp.

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

Referenced by SAccGuide::AddRule(), SDiagMessage::ParseMessage(), s_FindAttribute(), and s_ProcessECNumberLine().

CTempString::size_type CTempString::find_first_not_of const CTempString match,
size_type  pos = 0
const [inline, inherited]
 

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

Definition at line 467 of file tempstr.hpp.

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

CTempString::size_type CTempString::find_first_of const CTempString match,
size_type  pos = 0
const [inline, inherited]
 

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

Definition at line 452 of file tempstr.hpp.

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

Referenced by s_URLDecode().

const char* g_GetNcbiString ENcbiStrings  what  ) 
 

Definition at line 42 of file ncbi_strings.c.

References s_NcbiStrings.

Referenced by CCgiApplication::x_OnEvent(), and CCgiRequest::x_SetPageHitId().

bool CTempStringEx::HasZeroAtEnd void   )  const [inline, inherited]
 

Definition at line 801 of file tempstr.hpp.

References CTempStringEx::eNoZeroAtEnd, and CTempStringEx::m_ZeroAtEnd.

Referenced by NStr::StringToDouble(), CWig2tableApplication::x_GetParamName(), CWig2tableApplication::x_GetParamValue(), and CWig2tableApplication::x_TryGetDouble().

CTempString::size_type CTempString::length void   )  const [inline, inherited]
 

Return the length of the represented array.

Definition at line 264 of file tempstr.hpp.

References CTempString::m_Length.

Referenced by CWriteDB_Impl::AddSequence(), CWriteDB::AddSequence(), CTempString::Copy(), CTempString::find(), CTempString::find_first_not_of(), CTempString::find_first_of(), CTempString::operator string(), operator<<(), CFastaReader::ParseDataLine(), CFastaReader::ParseDefLine(), CFastaReader::ParseIDs(), CFastaReader::ParseRange(), CFastaReader::ParseTitle(), s_GetField(), s_SkipAllowedSymbols(), CFastaReader::SaveSeqData(), SeqDB_UnpackAmbiguities(), NStr::StringToUInt8_DataSize(), CWriteDB_File::Write(), CTempString::x_Equals(), and CTempString::x_Less().

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 373 of file tempstr.hpp.

Referenced by CTSE_Default_Assigner::LoadSequence().

CTempString::NCBI_DEPRECATED_CTOR CTempString(const string &str, size_type length)   )  [inherited]
 

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

CTempString::NCBI_DEPRECATED_CTOR CTempString(const char *str, size_type pos, size_type len  )  [inherited]
 

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

CTempString::operator string void   )  const [inline, inherited]
 

Definition at line 588 of file tempstr.hpp.

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

bool CTempString::operator!= const CTempString str  )  const [inline, inherited]
 

operator!= for CTempString strings

Definition at line 640 of file tempstr.hpp.

bool CTempString::operator!= const string &  str  )  const [inline, inherited]
 

operator!= for std::string strings

Definition at line 633 of file tempstr.hpp.

bool CTempString::operator!= const char *  str  )  const [inline, inherited]
 

operator!= for C-style strings

Definition at line 626 of file tempstr.hpp.

bool CTempString::operator< const CTempString str  )  const [inline, inherited]
 

operator< for CTempString strings

Definition at line 676 of file tempstr.hpp.

References CTempString::data(), CTempString::size(), and CTempString::x_Less().

bool CTempString::operator< const string &  str  )  const [inline, inherited]
 

operator< for std::string strings

Definition at line 669 of file tempstr.hpp.

References CTempString::x_Less().

bool CTempString::operator< const char *  str  )  const [inline, inherited]
 

operator< for C-style strings

Definition at line 659 of file tempstr.hpp.

References CTempString::m_String, and CTempString::x_Less().

CNcbiOstream& operator<< CNcbiOstream out,
const CTempString str
 

Definition at line 229 of file ncbistre.cpp.

bool operator== const string &  str1,
const CTempString str2
[inline]
 

Global operator== for string and CTempString.

Definition at line 216 of file tempstr.hpp.

bool CTempString::operator== const CTempString str  )  const [inline, inherited]
 

operator== for CTempString strings

Definition at line 619 of file tempstr.hpp.

References CTempString::data(), CTempString::size(), and CTempString::x_Equals().

bool CTempString::operator== const string &  str  )  const [inline, inherited]
 

operator== for std::string strings

Definition at line 612 of file tempstr.hpp.

References CTempString::x_Equals().

bool CTempString::operator== const char *  str  )  const [inline, inherited]
 

operator== for C-style strings

Definition at line 602 of file tempstr.hpp.

References CTempString::m_String, and CTempString::x_Equals().

char CTempString::operator[] size_type  pos  )  const [inline, inherited]
 

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 285 of file tempstr.hpp.

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

template<class TPosContainer>
void CStrTokenPosAdapter< TPosContainer >::push_back string::size_type  pos  )  [inline, inherited]
 

Definition at line 268 of file ncbistr_util.hpp.

References CStrTokenPosAdapter< TPosContainer >::m_TokenPos.

template<class TPosContainer>
void CStrTokenPosAdapter< TPosContainer >::reserve string::size_type  capacity  )  [inline, inherited]
 

Definition at line 272 of file ncbistr_util.hpp.

References CStrTokenPosAdapter< TPosContainer >::m_TokenPos.

void CStrDummyTokenPos::reserve string::size_type   )  [inline, inherited]
 

Definition at line 57 of file ncbistr_util.hpp.

CTempString::size_type CTempString::size void   )  const [inline, inherited]
 

Return the length of the represented array.

Definition at line 271 of file tempstr.hpp.

References CTempString::m_Length.

Referenced by CTempString::assign(), CSQLITE_Statement::Bind(), CBlastDbBlob::CBlastDbBlob(), CTempString::CTempString(), PQuickStringLess::operator()(), CTempString::operator<(), CQuickStrStream::operator<<(), CTempString::operator==(), CNetServProtoParserBase::ParseArguments(), CNetServProtoParserBase::ParseCommand(), CGFFReader::Read(), CObjectIStreamAsn::ReadDouble(), s_NoCaseEqual(), s_URLDecode(), CTL_BCPInCmd::SetHints(), CBlastDbBlob::Size(), CObjectIStreamXml::SkipStackTagName(), CObjectIStreamXml::SkipTagName(), NStr::StringToDouble(), CTempStringEx::substr(), CBufferedSockReaderWriter::WriteMessage(), CWriteDB_IsamIndex::x_AddString(), CWriteDB_IsamIndex::x_AddStringData(), CWriteDB_Impl::x_ComputeHash(), CBlastDbBlob::x_Copy(), CSeqDBVol::x_GetFilteredBinaryHeader(), CSeqDBVol::x_GetHdrAsn1(), CWig2tableApplication::x_GetParamName(), CWig2tableApplication::x_GetParamValue(), CWig2tableApplication::x_GetWord(), CBlastDbBlob::x_ReadRaw(), CBlastDbBlob::x_ReadString(), CBlastDbBlob::x_ReadVarInt(), CWig2tableApplication::x_SkipWS(), and CBlastDbBlob::x_WriteString().

CTempStringEx CTempStringEx::substr size_type  pos,
size_type  len
const [inline, inherited]
 

Obtain a substring from this string, beginning at a given offset and extending a specified length.

Definition at line 786 of file tempstr.hpp.

References CTempStringEx::CTempStringEx(), CTempString::data(), CTempStringEx::eNoZeroAtEnd, CTempStringEx::m_ZeroAtEnd, and CTempString::size().

CTempStringEx CTempStringEx::substr size_type  pos  )  const [inline, inherited]
 

Obtain a substring from this string, beginning at a given offset.

Definition at line 775 of file tempstr.hpp.

References CTempStringEx::CTempStringEx(), CTempString::data(), CTempStringEx::m_ZeroAtEnd, and CTempString::size().

Referenced by CWig2tableApplication::x_GetParamName(), and CWig2tableApplication::x_GetParamValue().

CTempString CTempString::substr size_type  pos,
size_type  len
const [inline, inherited]
 

Obtain a substring from this string, beginning at a given offset and extending a specified length.

Definition at line 581 of file tempstr.hpp.

References CTempString::CTempString().

CTempString CTempString::substr size_type  pos  )  const [inline, inherited]
 

Obtain a substring from this string, beginning at a given offset.

Definition at line 574 of file tempstr.hpp.

References CTempString::CTempString().

Referenced by s_FindAttribute(), s_ProcessECNumberLine(), and s_URLDecode().

bool CTempString::x_Equals const_iterator  it2,
size_type  len2
const [inline, private, inherited]
 

Definition at line 595 of file tempstr.hpp.

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

Referenced by CTempString::operator==().

void CTempString::x_Init const char *  str,
size_type  str_len,
size_type  pos
[inline, private, inherited]
 

Definition at line 305 of file tempstr.hpp.

References CTempString::clear(), CTempString::m_Length, and CTempString::m_String.

void CTempString::x_Init const char *  str,
size_type  str_len,
size_type  pos,
size_type  len
[inline, private, inherited]
 

Definition at line 319 of file tempstr.hpp.

References CTempString::clear(), CTempString::m_Length, and CTempString::m_String.

Referenced by CTempString::assign(), and CTempString::CTempString().

bool CTempString::x_Less const_iterator  it2,
size_type  len2
const [inline, private, inherited]
 

Definition at line 647 of file tempstr.hpp.

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

Referenced by CTempString::operator<().


Variable Documentation

const char* const kEmptyCStr
 

Empty "C" string (points to a '').

Definition at line 61 of file ncbistr.cpp.

Referenced by CNetCacheServer::CNetCacheServer(), CNcbiEnvironment::Enumerate(), g_DiagUnknownFunction(), CExceptionWrapper::GetErrCodeString(), CNcbiEnvironment::Reset(), s_FindPathToGeneInfoFiles(), s_FindPathToWM(), s_OrganelleName(), CBDB_FieldLString::Set(), CNcbiEnvironment::Set(), CBDB_FieldString::Set(), and CNcbiEnvironment::Unset().

size_type CTempString::m_Length [private, inherited]
 

Length of string.

Definition at line 191 of file tempstr.hpp.

Referenced by CTempString::assign(), CTempString::clear(), CTempString::CTempString(), CTempString::empty(), CTempString::end(), CTempString::erase(), CTempString::length(), CTempString::operator[](), CTempString::size(), and CTempString::x_Init().

const char* CTempString::m_String [private, inherited]
 

Stored pointer to string.

Definition at line 190 of file tempstr.hpp.

Referenced by CTempString::assign(), CTempString::begin(), CTempString::clear(), CTempString::CTempString(), CTempString::data(), CTempString::end(), CTempString::find(), CTempString::operator<(), CTempString::operator==(), CTempString::operator[](), and CTempString::x_Init().

template<class TPosContainer>
TPosContainer* CStrTokenPosAdapter< TPosContainer >::m_TokenPos [private, inherited]
 

Definition at line 277 of file ncbistr_util.hpp.

Referenced by CStrTokenPosAdapter< TPosContainer >::push_back(), and CStrTokenPosAdapter< TPosContainer >::reserve().

EZeroAtEnd CTempStringEx::m_ZeroAtEnd [private, inherited]
 

Definition at line 807 of file tempstr.hpp.

Referenced by CTempStringEx::assign(), CTempStringEx::clear(), CTempStringEx::HasZeroAtEnd(), and CTempStringEx::substr().

const size_type CTempString::npos = static_cast<size_type>(-1) [static, inherited]
 

Definition at line 70 of file tempstr.hpp.

Referenced by CTempString::find().

const SIZE_TYPE NPOS = NCBI_NS_STD::string::npos [static]
 

Define NPOS constant as the special value "std::string::npos" which is returned when a substring search fails, or to indicate an unspecified string position.

Definition at line 100 of file ncbistr.hpp.

Referenced by CCgiCookies::Add(), CCodeGenerator::AddConfigLine(), AddDefaultSentinelFeats(), CBoyerMooreMatcher::AddDelimiters(), CColorTableMethod::AddSetBase(), CDirEntry::AddTrailingPathSeparator(), AgpRead(), BaseName(), CCleanup_imp::BasicCleanup(), BOOST_AUTO_TEST_CASE(), CCgiEntryReaderContext::CCgiEntryReaderContext(), CRemoteBlast::CheckStatus(), CInterProcessLock::CInterProcessLock(), CNamespace::CNamespace(), NStr::CompareCase(), NStr::CompareNocase(), CDirEntry::ConcatPathEx(), CStringTokenCount::Count(), CDirEntry::CreateAbsolutePath(), CSeqMaskerIstatAscii::CSeqMaskerIstatAscii(), CStdTypeStrings::CStdTypeStrings(), CDirEntry::DereferencePath(), CRemoteAppRequestSB_Impl::Deserialize(), DirName(), CRegexp::Escape(), CPatternStats::ExpandPattern(), ExpandTildes(), ExtractAccession(), NStr::FindCase(), CSeq_id_Textseq_Tree::FindMatchStr(), NStr::FindNoCase(), CAgpErr::FormatMessage(), CAgpRow::FromString(), CFastaBioseqSource::GetNext(), SMakeProjectT::GetOneIncludeDir(), CNcbiArguments::GetProgramBasename(), CNcbiArguments::GetProgramDirname(), CRefArgs::GetQueryString(), CFastaIOWrapper::GetSubstring(), CSGHapmapDS::GetTrackNames(), CCodeGenerator::GetTypes(), SCigarAlignment::GuessFormat(), CSeq_id::IdentifyAccession(), CProjectsLstFileFilter::InitFromFile(), CRmOutReader::IsHeaderLine(), CRefArgs::IsListedHost(), IsLocalPath(), CValidError_imp::IsNucAcc(), CFastaReader::IsValidLocalID(), CTempXStr< _TChar >::length(), CId1FetchApp::LookUpFlatSeqID(), main(), MakeFileName(), MakeLegalFlatFileString(), CAgpValidateReader::OnError(), CAgpValidateReader::OnGapOrComponent(), CAgpRenumber::OnGapOrComponent(), NStr::ParseEscapes(), CFastaReader::ParseIDs(), SDiagMessage::ParseMessage(), CValidError_imp::PostErr(), CHTMLText::PrintBegin(), CAgpErrEx::PrintLine(), CShutdownProcessor::Process(), CExec::QuoteArg(), CBlastInputReader::ReadOneSeq(), RemoteBlastDbLoader_ErrorHandler(), RemoveSpacesBetweenTildes(), RemoveTrailingJunk(), RemoveTrailingPeriod(), NStr::Replace(), NStr::ReplaceInPlace(), CDataType::ResolveGlobal(), CCodeGenerator::ResolveMain(), CExec::ResolvePath(), CMytestApplication::Run(), CDemoApp::Run(), CFixMsHdf5Application::Run(), CId2FetchApp::Run(), s_AssignEntryValue(), s_CollectRelPathes(), s_ConvertComment(), s_ConvertGtLt(), s_CountBlastDbDataLoaders(), s_DescribeClones(), s_DoTestReference(), s_EndOfFastaID(), s_EndOfReference(), s_EndOfTag(), s_ExtractSatelliteFromComment(), s_Find(), s_FindAttribute(), s_FindParam(), s_FixPages(), s_FlyCG_PtoR(), s_GetFeatDesc(), s_HTMLEncode(), s_IsAllowedSymbol(), s_IsKVString(), s_IsValidDotVersion(), s_IsValidLocalID(), s_LocIsFuzz(), s_NotPeptideException(), s_ParseErrCodeInfoStr(), s_ParseFastaDefline(), s_ParseParentQual(), s_ProcessECNumberLine(), s_ReplaceArg(), s_SetAnyContentFromFields(), s_SplitName(), s_StringToOrgMod(), s_StringToSubSource(), s_StripDir(), s_TestFastaRoundTrip(), s_URLDecode(), s_VisibleWidth(), CRemoteAppRequestSB_Impl::Serialize(), CRemoteAppRequestMB_Impl::Serialize(), IRWRegistry::Set(), CDataType::SetParentClassTo(), CCgiArgs_Parser::SetQueryString(), CUrl::SetUrl(), Sgml2Ascii(), NStr::SplitInTwo(), CDirEntry::SplitPath(), CDirEntry::SplitPathEx(), CSocketAPI::StringToHostPort(), CHTMLHelper::StripSpecialChars(), CHTMLHelper::StripTags(), CFormatGuess::TestFormatAlignment(), CFormatGuess::TestFormatWiggle(), TestSimpleAlignment(), CHTML_img::UseMap(), CValidError_feat::ValidateRptUnitVal(), CProjBulderApp::VerifyArguments(), CRegexp::WildcardToRegexp(), NStr::Wrap(), CObjectOStreamAsn::WriteId(), CId1FetchApp::WriteQualityScores(), CCleanup_imp::x_AddReplaceQual(), CStreamLineReader::x_AdvanceEOLSimple(), COctetStringDataType::x_AsBitString(), CCgiCookie::x_CheckField(), CCleanup_imp::x_CleanupConsSplice(), CCleanup_imp::x_CleanupExcept_text(), CArgDescriptions::x_CreateArg(), CCgiEntryReaderContext::x_DelimitedRead(), CDeflineGenerator::x_DescribeClones(), CRegexpUtil::x_Divide(), CCleanup_imp::x_ExtractSuffixFromInitials(), CCgiEntryReader::x_FillBuffer(), x_FindRSite(), CCgiEntryReader::x_Flush(), CDeflineGenerator::x_FlyCG_PtoR(), CCgiEntry::x_GetCharset(), CSequenceSearchJob::x_GetMatches(), CId2ReaderBase::x_GetMessageError(), CNcbiTestApplication::x_GetTrimmedTestName(), CDll::x_Init(), CBlastScopeSource::x_InitBlastDatabaseDataLoader(), CValidError_bioseq::x_IsMicroRNA(), CRemoteBlast::x_IsUnknownRID(), SDataLoaderConfig::x_LoadDataLoadersConfig(), CAgpValidateApplication::x_LoadLenFa(), CFeatureSearchJob::x_Match(), CTempXStr< _TChar >::x_npos(), CCgiUserAgent::x_Parse(), SDiagMessage::x_ParseExtraArgs(), CMaskingFmtSpecHelper::x_ParseFilteringAlgorithmSpec(), CBlastArgs::x_ParseOptionsString(), CGFFReader::x_ParseV2Attributes(), CHTMLOpenElement::x_PrintBegin(), IRWRegistry::x_Read(), CCgiArgs_Parser::x_SetIndexString(), CNamedPipe::x_SetName(), CDeflineGenerator::x_SetSuffix(), CDeflineGenerator::x_TitleFromNC(), x_TrimParensAndCommas(), and CValidError_bioseq::x_ValidateTitle().


Generated on Mon Dec 7 16:01:42 2009 for NCBI C++ ToolKit by  doxygen 1.4.6
Modified on Mon Dec 07 16:24:35 2009 by modify_doxy.py rev. 173732