Go to the SVN repository for this file.
69 #define ADD_AFFIL_FIELD(X) \ 70 if (GetStd().CanGet##X() && HasText(GetStd().Get##X())) { \ 71 *label += sep + GetStd().Get##X(); \ 80 #undef ADD_AFFIL_FIELD 102 #define ADD_AFFIL_FIELD(X) \ 103 if (GetStd().CanGet##X() && HasText(GetStd().Get##X())) { \ 104 *label += sep + NStr::Replace(GetStd().Get##X(), "\"", "'"); \
112 if(
GetStd().CanGetPostal_code()
117 #undef ADD_AFFIL_FIELD#define ADD_AFFIL_FIELD(X)
bool GetLabelV2(string *label, TLabelFlags flags) const override
bool GetLabelV1(string *label, TLabelFlags flags) const override
int TLabelFlags
binary OR of ELabelFlags
static bool HasText(const string &s)
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static string & 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.
static const char label[]
const TStr & GetStr(void) const
Get the variant data.
E_Choice Which(void) const
Which variant is currently selected.
bool CanGetPostal_code(void) const
Check if it is safe to call GetPostal_code method.
const TStd & GetStd(void) const
Get the variant data.
@ e_not_set
No variant selected.
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