NCBI C++ ToolKit
Functions
utilities.cpp File Reference
#include <ncbi_pch.hpp>
#include <objects/biblio/Auth_list.hpp>
#include <objects/biblio/Author.hpp>
#include <objects/biblio/Cit_art.hpp>
#include <objects/pub/Pub_equiv.hpp>
#include <objects/pub/Pub_set.hpp>
#include <objects/general/Name_std.hpp>
#include <objects/general/Person_id.hpp>
#include <gui/objutils/macro_fn_pubfields.hpp>
#include <objects/misc/sequence_macros.hpp>
#include <gui/widgets/edit/utilities.hpp>
#include <misc/xmlwrapp/document.hpp>
+ Include dependency graph for utilities.cpp:

Go to the source code of this file.

Go to the SVN repository for this file.

Functions

 USING_SCOPE (objects)
 
void ReplaceInPlaceWholeWordNoCase (string &rna_name, const string &search, const string &replace)
 
string GetAdjustedRnaName (const string &orig_rna_name)
 
CRef< CPubdescGetPubdescFromEntrezById (TEntrezId id)
 
string GetAuthorsString (const CAuth_list &auth_list)
 
static string s_GetAuthorsString (const CPubdesc &pd)
 
string GetPubdescLabel (const CPubdesc &pd)
 
void GetPubdescLabels (const CPubdesc &pd, vector< TEntrezId > &pmids, vector< TEntrezId > &muids, vector< int > &serials, vector< string > &published_labels, vector< string > &unpublished_labels)
 
string GetDocSumLabel (const CPubdesc &pd)
 
string GetStringFromTitle (const objects::CTitle::C_E &title)
 
void UpdateTitle (objects::CTitle::C_E &title, const string &val)
 

Function Documentation

◆ GetAdjustedRnaName()

string GetAdjustedRnaName ( const string orig_rna_name)

◆ GetAuthorsString()

string GetAuthorsString ( const CAuth_list auth_list)

◆ GetDocSumLabel()

string GetDocSumLabel ( const CPubdesc pd)

◆ GetPubdescFromEntrezById()

CRef<CPubdesc> GetPubdescFromEntrezById ( TEntrezId  id)

◆ GetPubdescLabel()

string GetPubdescLabel ( const CPubdesc pd)

Definition at line 158 of file utilities.cpp.

References GetPubdescLabels(), and label.

◆ GetPubdescLabels()

void GetPubdescLabels ( const CPubdesc pd,
vector< TEntrezId > &  pmids,
vector< TEntrezId > &  muids,
vector< int > &  serials,
vector< string > &  published_labels,
vector< string > &  unpublished_labels 
)

◆ GetStringFromTitle()

string GetStringFromTitle ( const objects::CTitle::C_E &  title)

Definition at line 279 of file utilities.cpp.

References kEmptyStr.

Referenced by CPublishedRefPanel::TransferDataToWindow().

◆ ReplaceInPlaceWholeWordNoCase()

void ReplaceInPlaceWholeWordNoCase ( string rna_name,
const string search,
const string replace 
)

Definition at line 49 of file utilities.cpp.

References NStr::FindNoCase(), isalpha(), and isspace().

Referenced by GetAdjustedRnaName().

◆ s_GetAuthorsString()

static string s_GetAuthorsString ( const CPubdesc pd)
static

Definition at line 144 of file utilities.cpp.

References FOR_EACH_PUB_ON_PUBDESC, and GetAuthorsString().

Referenced by GetDocSumLabel(), and GetPubdescLabels().

◆ UpdateTitle()

void UpdateTitle ( objects::CTitle::C_E &  title,
const string val 
)

Definition at line 322 of file utilities.cpp.

References NStr::IsBlank(), and val.

Referenced by CPublishedRefPanel::TransferDataFromWindow().

◆ USING_SCOPE()

USING_SCOPE ( objects  )
Modified on Thu Dec 07 10:11:06 2023 by modify_doxy.py rev. 669887