Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/classCStringConstraint.html below:
NCBI C++ ToolKit: CStringConstraint Class Reference
Search Toolkit Book for CStringConstraint
#include <objtools/edit/string_constraint.hpp>
CStringConstraint (const string &match_text, EMatchType match_type=eMatchType_Contains, bool ignore_case=false, bool ignore_space=false, bool negation=false) ~CStringConstraint () void SetNegation (bool val) void SetIgnoreCase (bool val) void SetIgnoreSpace (bool val) bool GetNegation () bool GetIgnoreCase () bool GetIgnoreSpace () bool DoesTextMatch (const string &text) bool DoesListMatch (const vector< string > &vals) EMatchType GetMatchType () void SetMatchType (EMatchType match_type) const string & GetMatchText () void SetMatchText (const string &match_text) void Assign (const CStringConstraint &other) bool IsInRange (const string &str, const string &tmp) CObject (void) Constructor. More...
CObject (const CObject &src) Copy constructor. More...
virtual ~CObject (void) Destructor. More...
CObject & operator= (const CObject &src) THROWS_NONE Assignment operator. More...
bool CanBeDeleted (void) const THROWS_NONE Check if object can be deleted. More...
bool IsAllocatedInPool (void) const THROWS_NONE Check if object is allocated in memory pool (not system heap) More...
bool Referenced (void) const THROWS_NONE Check if object is referenced. More...
bool ReferencedOnlyOnce (void) const THROWS_NONE Check if object is referenced only once. More...
void AddReference (void) const Add reference to object. More...
void RemoveReference (void) const Remove reference to object. More...
void ReleaseReference (void) const Remove reference without deleting object. More...
virtual void DoNotDeleteThisObject (void) Mark this object as not allocated in heap – do not delete this object. More...
virtual void DoDeleteThisObject (void) Mark this object as allocated in heap – object can be deleted. More...
void * operator new (size_t size) Define new operator for memory allocation. More...
void * operator new[] (size_t size) Define new[] operator for 'array' memory allocation. More...
void operator delete (void *ptr) Define delete operator for memory deallocation. More...
void operator delete[] (void *ptr) Define delete[] operator for memory deallocation. More...
void * operator new (size_t size, void *place) Define new operator. More...
void operator delete (void *ptr, void *place) Define delete operator. More...
void * operator new (size_t size, CObjectMemoryPool *place) Define new operator using memory pool. More...
void operator delete (void *ptr, CObjectMemoryPool *place) Define delete operator. More...
virtual void DebugDump (CDebugDumpContext ddc, unsigned int depth) const Define method for dumping debug information. More...
CDebugDumpable (void) virtual ~CDebugDumpable (void) void DebugDumpText (ostream &out, const string &bundle, unsigned int depth) const void DebugDumpFormat (CDebugDumpFormatter &ddf, const string &bundle, unsigned int depth) const void DumpToConsole (void) const
Definition at line 69 of file string_constraint.hpp.
◆ EMatchType Enumerator eMatchType_Contains eMatchType_Equals eMatchType_StartsWith eMatchType_EndsWith eMatchType_IsOneOf
Definition at line 72 of file string_constraint.hpp.
◆ CStringConstraint() ◆ ~CStringConstraint() ◆ Assign() ◆ DoesListMatch() ◆ DoesTextMatch()
Definition at line 90 of file string_constraint.cpp.
References eMatchType_Contains, eMatchType_EndsWith, eMatchType_Equals, eMatchType_IsOneOf, eMatchType_StartsWith, NStr::EndsWith(), NStr::Equal(), NStr::Find(), NStr::fSplit_Tokenize, IsInRange(), ITERATE, m_IgnoreCase, m_IgnoreSpace, m_MatchText, m_MatchType, m_NotPresent, match(), NStr::ReplaceInPlace(), NStr::Split(), NStr::StartsWith(), text(), tmp, and NStr::ToLower().
Referenced by CPubField::DoesAuthorMatchConstraint(), DoesListMatch(), CSeqIdGuesser::DoesSeqMatchConstraint(), CSeqIdGuesser::FindMatches(), CGBBlockField::SetVal(), and CStructuredCommentField::SetVal().
◆ GetIgnoreCase() bool CStringConstraint::GetIgnoreCase ( void ) inline ◆ GetIgnoreSpace() bool CStringConstraint::GetIgnoreSpace ( ) inline ◆ GetMatchText() ◆ GetMatchType() ◆ GetNegation() bool CStringConstraint::GetNegation ( ) inline ◆ IsInRange()
Definition at line 148 of file string_constraint.cpp.
References NStr::Equal(), NStr::fAllowLeadingSymbols, NStr::fConvErr_NoThrow, NStr::Find(), first(), NStr::IntToString(), kEmptyStr, last(), match(), NPOS, NStr::ReplaceInPlace(), NStr::SplitInTwo(), str(), NStr::StringToInt(), and tmp.
Referenced by DoesTextMatch().
◆ SetIgnoreCase() void CStringConstraint::SetIgnoreCase ( bool val ) inline ◆ SetIgnoreSpace() void CStringConstraint::SetIgnoreSpace ( bool val ) inline ◆ SetMatchText() void CStringConstraint::SetMatchText ( const string & match_text ) inline ◆ SetMatchType() void CStringConstraint::SetMatchType ( EMatchType match_type ) inline ◆ SetNegation() void CStringConstraint::SetNegation ( bool val ) inline ◆ m_IgnoreCase bool CStringConstraint::m_IgnoreCase private ◆ m_IgnoreSpace bool CStringConstraint::m_IgnoreSpace private ◆ m_MatchText string CStringConstraint::m_MatchText private ◆ m_MatchType ◆ m_NotPresent bool CStringConstraint::m_NotPresent private
The documentation for this class was generated from the following files:
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4