NCBI C++ ToolKit
Functions
ftacpp.hpp File Reference
#include <cstring>
#include <corelib/ncbistr.hpp>
+ Include dependency graph for ftacpp.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Go to the SVN repository for this file.

Functions

char * StringNew (size_t sz)
 
void MemSet (void *p, int n, size_t sz)
 
void MemCpy (void *p, const void *q, size_t sz)
 
void MemFree (char *p)
 
size_t StringLen (const char *s)
 
char * StringSave (const char *s)
 
char * StringSave (string_view s)
 
char * StringSave (unique_ptr< string > s)
 
const char * StringStr (const char *s1, const char *s2)
 
char * StringStr (char *s1, const char *s2)
 
void StringCat (char *d, const char *s)
 
void StringCpy (char *d, const char *s)
 
void StringNCpy (char *d, const char *s, size_t n)
 
const char * StringChr (const char *s, const char c)
 
char * StringChr (char *s, const char c)
 
char * StringRChr (char *s, const char c)
 
int StringCmp (const char *s1, const char *s2)
 
bool StringEqu (const char *s1, const char *s2)
 
bool StringEquN (const char *s1, const char *s2, size_t n)
 
bool StringEquNI (const char *s1, const char *s2, size_t n)
 
bool StringHasNoText (const char *s)
 
bool StringDoesHaveText (const char *s)
 

Function Documentation

◆ MemCpy()

void MemCpy ( void *  p,
const void *  q,
size_t  sz 
)
inline

Definition at line 50 of file ftacpp.hpp.

Referenced by CkLocusLinePos(), GetDescrComment(), GetGBBlock(), GetUpdateDate(), and XMLGetGBBlock().

◆ MemFree()

void MemFree ( char *  p)
inline

Definition at line 55 of file ftacpp.hpp.

Referenced by CObjectOStream::AsnIo::AsnIo(), check_est_sts_gss_tpa_kwds(), CheckCollectionDate(), CheckDelGbblockSourceFromDescrs(), CheckOutsideEntry(), CheckQualsInSourceFeat(), CheckSourceFeatCoverage(), CollectSubNames(), CreateRawBioSources(), DefVsHTGKeywords(), embl_refs(), EmblIndex(), EmblSegment(), FakeEmblBioSources(), FreeXmlObject(), fta_check_mga_line(), fta_check_non_tpa_tsa_tls_locations(), fta_create_wgs_seqid(), fta_get_dblink_user_object(), fta_get_mga_user_object(), fta_get_project_user_object(), fta_get_str_user_field(), fta_get_trna_from_comment(), fta_get_trna_from_product(), fta_get_user_field(), fta_get_user_object(), fta_parse_rrna_feat(), fta_parse_structured_comment(), fta_tpa_block_free(), GenBankIndex(), get_book(), get_parts(), get_pat(), GetCdRegionCB(), GetCitBook(), GetDescrComment(), GetDescrEmblBlock(), GetDRlineDataSP(), GetEmblBlockXref(), GetEmblDescr(), GetEmblInstContig(), GetExtraAccession(), GetGBBlock(), GetGenBankDescr(), GetGenBankInstContig(), GetOrganismFrom_OS_OC(), GetProtRefDescr(), GetSeqData(), GetSetOfSpecies(), GetSPDescrTitle(), GetTaxIdFrom_OX(), GetTrnaAnticodon(), GetViralHostsFrom_OH(), LoadEntry(), LoadEntryGenbank(), MakeChainPDBSeqId(), MergeNoteQual(), NotName(), ParseFeatureBlock(), ParseGeneNameSP(), ParsePcrPrimers(), ParseRLDataSP(), ParseSourceFeat(), ParseSpComment(), ParseXmlString(), PcrPrimersFree(), SeqFeatPub(), SetOfSpeciesFree(), SourceFeatBlkFree(), SourceFeatStructFillIn(), SPFeatGeneRef(), SPFeatProtRef(), SPFreeGenRefTokens(), SPGetGeneRefsNew(), SPGetPEValue(), SPPostProcVarSeq(), SprotRefString(), SPValidateEcnum(), StripCDSComment(), UpdateRawBioSource(), ValNodeFreeData(), XMLAccessionsCheck(), XMLAscii(), XMLDefVsHTGKeywords(), XMLFakeBioSources(), XMLGetDescr(), XMLGetDivision(), XMLGetEMBLBlock(), XMLGetGBBlock(), XMLGetInst(), XMLGetInstContig(), XMLGetKeywords(), XMLGetMolInfo(), XMLIndex(), XMLIndexReferences(), XMLInitialEntry(), XMLKeywordsCheck(), XMLLoadEntry(), XMLRefs(), DataBlk::~DataBlk(), and FeatBlk::~FeatBlk().

◆ MemSet()

void MemSet ( void *  p,
int  n,
size_t  sz 
)
inline

Definition at line 49 of file ftacpp.hpp.

References n.

Referenced by GetDNAConv(), GetProteinConv(), and Nlm_SetupSubString().

◆ StringCat()

void StringCat ( char *  d,
const char *  s 
)
inline

◆ StringChr() [1/2]

char* StringChr ( char *  s,
const char  c 
)
inline

Definition at line 92 of file ftacpp.hpp.

◆ StringChr() [2/2]

const char* StringChr ( const char *  s,
const char  c 
)
inline

Definition at line 91 of file ftacpp.hpp.

◆ StringCmp()

int StringCmp ( const char *  s1,
const char *  s2 
)
inline

◆ StringCpy()

void StringCpy ( char *  d,
const char *  s 
)
inline

◆ StringDoesHaveText()

bool StringDoesHaveText ( const char *  s)
inline

Definition at line 146 of file ftacpp.hpp.

References StringHasNoText().

Referenced by VisitXmlNodeProc().

◆ StringEqu()

bool StringEqu ( const char *  s1,
const char *  s2 
)
inline

◆ StringEquN()

bool StringEquN ( const char *  s1,
const char *  s2,
size_t  n 
)
inline

Definition at line 121 of file ftacpp.hpp.

References n, and util::strncmp().

Referenced by add_entry(), AddToIndexBlk(), BuildFeatureBlock(), check_book_tit(), CheckDelGbblockSourceFromDescrs(), CheckLineType(), CheckLocus(), CheckPcrPrimersTag(), CkLocusLinePos(), DefVsHTGKeywords(), embl_refs(), EmblIndex(), FakeGenBankBioSources(), FindNextEntryBuf(), CFindPub::fix_pub_equiv(), fta_check_mga_line(), fta_check_mult_ids(), fta_collect_wormbases(), fta_create_imgt_misc_feat(), fta_create_wgs_seqid(), fta_fix_seq_id(), fta_fix_seq_loc_id(), fta_get_project_user_object(), fta_get_trna_from_comment(), fta_get_trna_from_product(), fta_get_user_field(), fta_get_user_object(), fta_parse_rrna_feat(), fta_parse_structured_comment(), gb_refs_common(), GenBankAsciiOrig(), GenBankIndex(), get_art(), get_auth(), get_auth_from_toks(), get_book(), get_error(), get_sub(), get_sub_gsdb(), get_tokens(), GetCitSubmit(), GetDescrComment(), GetDescrEmblBlock(), GetDRlineDataSP(), GetEmblBlock(), GetEmblBlockXref(), GetEmblDate(), GetEmblDescr(), GetEmblMolInfo(), GetExtraAccession(), GetFlatBiomol(), GetGBBlock(), GetGenBankBlock(), GetGenBankDescr(), GetGenBankMolInfo(), GetLineOSorOC(), GetSubNodeType(), GetUpdateDate(), IsPatentedAccPrefix(), IsSegBioseq(), IsSPROTAccession(), IsTSAAccPrefix(), IsValidAccessPrefix(), journal(), ParseFeatureBlock(), ParseGenBankVersion(), ParsePcrPrimers(), ParseSpComment(), ParseSPFeat(), SkipTitle(), SkipTitleBuf(), SpAddToIndexBlk(), SprotIndex(), StringRStr(), XMLAscii(), XMLCheckCDS(), XMLCheckRequiredTags(), XMLGetDescr(), XMLGetDescrComment(), XMLGetEMBLBlock(), XMLGetGBBlock(), XMLGetMolInfo(), XMLRefs(), XReadFile(), and XReadFileBuf().

◆ StringEquNI()

bool StringEquNI ( const char *  s1,
const char *  s2,
size_t  n 
)
inline

◆ StringHasNoText()

bool StringHasNoText ( const char *  s)
inline

◆ StringLen()

size_t StringLen ( const char *  s)
inline

Definition at line 60 of file ftacpp.hpp.

Referenced by add_entry(), check_translation(), CheckAccession(), CheckCollectionDate(), CheckDelGbblockSourceFromDescrs(), CheckForENV(), CheckMoltypeConsistency(), CheckQualsInSourceFeat(), CheckSourceFeatLocFuzz(), CheckSYNTGNDivision(), CkProteinTransl(), clean_up(), CollectSubNames(), DelSegnum(), embl_refs(), EmblSegment(), fill_orgref(), fta_check_mga_line(), fta_check_mult_ids(), fta_check_non_tpa_tsa_tls_locations(), fta_get_project_user_object(), fta_get_str_user_field(), fta_get_trna_from_comment(), fta_get_trna_from_product(), fta_if_valid_biosample(), fta_if_valid_sra(), fta_number_is_huge(), fta_parse_rrna_feat(), fta_parse_structured_comment(), fta_parse_tpa_tsa_block(), fta_StringMatch(), fta_validate_assembly(), fta_validate_bioproject(), GenBankIndex(), get_art(), get_auth(), get_embl_str_pub_id(), get_error(), get_pat(), get_plasmid(), get_std_auth(), get_sub(), get_sub_gsdb(), get_tokens(), GetAccession(), GetCitBookOld(), GetCitPatent(), GetDescrEmblBlock(), GetEmblBlockXref(), GetExtraAccession(), GetProtRefDescr(), GetSegment(), GetSeqData(), GetSPDescrComment(), GetSPSitesMod(), GetSubNodeType(), GetTaxIdFrom_OX(), GetViralHostsFrom_OH(), ind_subdbp(), InitialEntry(), IsSPROTAccession(), IsTLSAccPrefix(), IsTPAAccPrefix(), IsTSAAccPrefix(), IsValidAccessPrefix(), IsWGSAccPrefix(), journal(), make_entry(), NotName(), ParseSpComment(), PopulatePcrPrimers(), QSbuf_To_Single_Qscore_SeqGraph(), QSIndex(), SourceFeatStructFillIn(), SPFeatProtRef(), SprotRefString(), StringMatchIcase(), StringRStr(), stripStr(), ValNodeCopyStrExEx(), ValNodeMergeStrsExEx(), XMLAccessionsCheck(), XMLAscii(), XMLDelSegnum(), XMLGetEMBLBlock(), XMLGetSegment(), XMLPerformIndex(), and XMLRefs().

◆ StringNCpy()

void StringNCpy ( char *  d,
const char *  s,
size_t  n 
)
inline

◆ StringNew()

char* StringNew ( size_t  sz)
inline

◆ StringRChr()

char* StringRChr ( char *  s,
const char  c 
)
inline

◆ StringSave() [1/3]

char* StringSave ( const char *  s)
inline

Definition at line 61 of file ftacpp.hpp.

References n.

Referenced by StringSave().

◆ StringSave() [2/3]

char* StringSave ( string_view  s)
inline

Definition at line 70 of file ftacpp.hpp.

References n.

◆ StringSave() [3/3]

char* StringSave ( unique_ptr< string s)
inline

Definition at line 78 of file ftacpp.hpp.

References StringSave().

◆ StringStr() [1/2]

char* StringStr ( char *  s1,
const char *  s2 
)
inline

Definition at line 87 of file ftacpp.hpp.

◆ StringStr() [2/2]

const char* StringStr ( const char *  s1,
const char *  s2 
)
inline

Definition at line 86 of file ftacpp.hpp.

Modified on Wed Jul 24 17:19:34 2024 by modify_doxy.py rev. 669887