Go to the SVN repository for this file.
45 size_tsrt_var = string::npos;
46 size_tend_var = string::npos;
47string::size_type last_pos = 0;
50srt_var = retval.find(
"$(", last_pos);
52 if(srt_var != string::npos) {
53end_var = retval.find(
")", srt_var);
55 if(end_var != string::npos) {
57 size_tembedded_key = retval.find(
"$(", srt_var + 1);
58 if(embedded_key != string::npos && embedded_key < end_var) {
59last_pos = embedded_key;
65 string key= retval.substr(srt_var + 2, (end_var - srt_var) - 2);
70elt.
m_Value= retval.substr(last_pos, (srt_var - last_pos));
72m_LabelElements.push_back(elt);
74last_pos = end_var + 1;
77}
while(srt_var != string::npos && end_var != string::npos);
80 if(last_pos < retval.length()) {
82elt.
m_Value= retval.substr(last_pos, retval.length() - last_pos);
84m_LabelElements.push_back(elt);
92 ITERATE(vector<LabelElt>, it, m_LabelElements) {
93retval += (*it).m_Value;
Features storage for the bio tree node.
CBioTreeFormatLabel(const CBioTreeFeatureDictionary &dict, const std::string &format)
std::string FormatLabel(const CBioTreeFeatureList &features) const
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static string TruncateSpaces(const string &str, ETrunc where=eTrunc_Both)
Truncate whitespace in a string.
unsigned int TBioTreeFeatureId
Feature Id.
TBioTreeFeatureId GetId(const string &feature_name) const
If feature is already registered returns its id by name.
const string & GetFeatureValue(TBioTreeFeatureId id) const
Get feature value by id.
The blob sat and sat key Both must be positive integers</td > n< td > Non empty string The interpretation of the blob id depends on a processor Cassandra n processor expects the following format
const struct ncbi::grid::netcache::search::fields::KEY key
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