NCBI_UseGeoLocNameForCountry(
void);
88 staticTSubtype GetSubtypeValue(
const string&
str,
89EVocabulary vocabulary = eVocabulary_raw);
93EVocabulary vocabulary = eVocabulary_raw);
96 static boolIsValidSubtypeName(
const string&
str,
97EVocabulary vocabulary = eVocabulary_raw);
99 static boolIsMultipleValuesAllowed(TSubtype);
102 static boolNeedsNoText (
constTSubtype& subtype);
105 static boolIsDiscouraged (
constTSubtype subtype);
110 static voidIsCorrectDateFormat(
const string& date_string,
bool& bad_format,
bool& in_future);
112eDateFormatFlag_ok = 0,
113eDateFormatFlag_bad_format = 1,
114eDateFormatFlag_in_future = 2,
115eDateFormatFlag_out_of_order = 4
117 static size_tCheckDateFormat(
const string& date_string);
119 static stringGetCollectionDateProblem (
const string& date_string);
121 static boolIsCollectionDateAfterTime(
const string& collection_date, time_t
t,
bool& bad_format);
122 static boolIsCollectionDateAfterTime(
const CDate& collection_date, time_t
t);
123 static boolIsCollectionDateAfterTime(
const CDate& collection_date,
CTime& ctime);
125 static boolIsISOFormatTime(
const string& orig_time,
int& hour,
int&
min,
int& sec,
boolrequire_time_zone =
true);
126 static boolIsISOFormatDateOnly(
const string& date);
127 static boolIsISOFormatDate (
const string& orig_date);
128 static CRef<CDate>GetDateFromISODate(
const string& orig_date);
134 static boolIsDayValueOkForMonth(
intday,
intmonth,
intyear);
181 static stringFixDateFormat(
const string& orig_date);
182 static stringFixDateFormat(
const string& orig_date,
boolmonth_first,
bool& month_ambiguous);
183 static voidDetectDateFormat(
const string& orig_date,
bool& ambiguous,
bool&day_first);
184 static voidIsCorrectLatLonFormat (
stringlat_lon,
bool& format_correct,
bool& precision_correct,
185 bool& lat_in_range,
bool& lon_in_range,
186 double& lat_value,
double& lon_value);
187 static stringFixLatLonFormat (
stringorig_lat_lon,
boolguess =
false);
188 static stringMakeLatLon(
doublelat_value,
doublelon_value,
intlat_precision = 2,
intlon_precision = 2);
189 static stringFixLatLonPrecision(
const string&
orig);
192eLatLonCountryErr_None = 0,
196eLatLonCountryErr_Value
208 static stringValidateLatLonCountry (
const string& countryname,
string& lat_lon,
bool check_state, ELatLonCountryErr& errcode);
210 static boolIsValidSexQualifierValue (
const string&
value);
211 static stringFixSexQualifierValue (
const string&
value);
213 static boolIsAltitudeValid (
const string&
value);
214 static stringFixAltitude (
const string&
value);
216 static boolIsPlasmidNameValid(
const string&
value,
const string& taxname);
217 static boolIsChromosomeNameValid(
const string&
value,
const string& taxname);
218 static boolIsLinkageGroupNameValid(
const string&
value,
const string& taxname);
219 static boolIsSegmentValid(
const string&
value);
220 static boolIsEndogenousVirusNameValid(
const string&
value);
223 static stringFixDevStageCapitalization(
const string&
value);
224 static stringFixCellTypeCapitalization(
const string&
value);
225 static stringFixIsolationSourceCapitalization(
const string&
value);
226 static stringFixTissueTypeCapitalization(
const string&
value);
227 static stringFixLabHostCapitalization(
const string&
value);
231 static stringAutoFix(TSubtype subtype,
const string&
value);
234 static boolIsDeprecated(TSubtype subtype);
235 boolIsDeprecated()
const;
237 static boolHasCultureNotes(
const string&
value);
238 static voidRemoveCultureNotes(
string&
value,
boolis_species_level =
true);
239 voidRemoveCultureNotes(
boolis_species_level =
true);
241 static stringCheckCellLine(
const string& cell_line,
const string& organism);
248 static stringx_ParseDateRangeWithDelimiter(
const string& orig_date,
CTempStringdelim);
249 staticvector<string> x_GetDateTokens(
const string& orig_date);
250 static CLatLonCountryId* x_CalculateLatLonId(
floatlat_value,
floatlon_value,
stringcountry,
stringprovince);
251 static boolx_IsFixableIsoDate(
const string& orig_date);
252 static stringx_RemoveIsoTime(
const string& orig_date);
254 static intx_GetPrecision(
const string& num_str);
255 static stringx_FormatWithPrecision(
double val,
int precision);
257 static boolx_GenericRepliconNameValid(
const string&
value);
258 static boolx_MeetsCommonChromosomeLinkageGroupPlasmidNameRules(
const string&
value,
const string& taxname);
308 static bool IsValid(
const string& country);
309 static bool IsValid(
const string& country,
bool& is_miscapitalized);
310 static bool IsValid(
const string& country,
bool& is_miscapitalized,
bool& is_null_and_virus,
boolis_influenza_or_Sars2);
311 static boolWasValid(
const string& country);
312 static boolWasValid(
const string& country,
bool& is_miscapitalized);
313 static stringCapitalizeFirstLetterOfEveryWord (
const string&phrase);
314 static stringWholeCountryFix(
stringcountry);
315 static boolIsSubstringOfStringInList(
const string& phrase,
const string& country1,
size_tpos1);
316 static boolContainsMultipleCountryNames (
const string&phrase);
317 static stringGetCorrectedCountryCapitalization(
const string& country);
318 static stringNewFixCountry (
const string&
input,
boolus_territories =
false);
319 static boolChangeExtraColonsToCommas(
string& country);
320 static stringCountryFixupItem(
const string&
input,
boolcapitalize_after_colon);
324 static voidReadUSAExceptionMap (
TUsaExceptionMap& exceptions,
const string& filepath);
326 static voidLoadUSAExceptionMap (
const string& exception_file );
328 static stringUSAStateCleanup (
const string& country );
331 static voidx_RemoveDelimitersFromEnds(
string&
val,
boolexcept_paren =
false);
332 staticvector<string> x_Tokenize(
const string&
val);
333 static voidx_FindCountryName(
const TCStringPairsMap& fix_map,
constvector<string>& countries,
string& valid_country,
string& orig_valid_country,
bool& too_many_countries,
bool& bad_cap);
344 CCountryExtreme(
const string& country_name,
intmin_x,
intmin_y,
intmax_x,
intmax_y);
356 boolSetMinX(
intmin_x);
357 boolSetMinY(
intmin_y);
358 boolSetMaxX(
intmax_x);
359 boolSetMaxY(
intmax_y);
361 boolPreferTo(
const CCountryExtreme* other_block,
const stringcountry,
const stringprovince,
const boolprefer_new)
const;
378 CCountryLine(
const string& country_name,
doubley,
doublemin_x,
doublemax_x,
doublescale);
389 static int ConvertLat(
doubley,
doublescale);
390 static int ConvertLon(
doublex,
doublescale);
414 float GetLat(
void)
const{
returnm_Lat; }
415 void SetLat(
floatlat) { m_Lat = lat; }
416 float GetLon(
void)
const{
returnm_Lon; }
417 void SetLon(
floatlon) { m_Lon = lon; }
447fProvinceMatch = (1 << 1),
448fWaterMatch = (1 << 2),
450fCountryClosest = (1 << 4),
451fProvinceClosest = (1 << 5),
452fWaterClosest = (1 << 6)
481 boolIsCountryInLatLon(
const string& country,
doublelat,
doublelon)
const;
484 const string& province =
kEmptyStr)
const;
486 doublerange,
double& distance);
487 boolIsClosestToLatLon(
const string& country,
doublelat,
doublelon,
488 doublerange,
double& distance)
const;
489 boolHaveLatLonForRegion(
const string& country)
const;
490 boolDoCountryBoxesOverlap(
const string& country1,
const string& country2)
const;
491 const CCountryExtreme* IsNearLatLon(
doublelat,
doublelon,
doublerange,
493 const string& country,
494 const string& province =
kEmptyStr)
const;
496 static intAdjustAndRoundDistance (
doubledistance,
doublescale);
497 intAdjustAndRoundDistance (
doubledistance)
const;
502fNegateLat = (1 << 1),
503fNegateLon = (1 << 2),
508 voidx_InitFromDefaultList(
const char*
const*list,
intnum);
509 boolx_InitFromFile(
const string& filename);
517 size_tx_GetLatStartIndex (
inty)
const;
518 const CCountryExtreme* x_FindCountryExtreme (
const string& country)
const;
double ErrorDistance(double latA, double lonA, double scale)
static string GetSubtypeName(const CSubSource &qual)
map< string, string, PNocase > TUsaExceptionMap
CStaticPairArrayMap< const char *, const char *, PCase_CStr > TCStringPairsMap
string GetLevel0(void) const
string GetCountry(void) const
string GetLevel1(void) const
CCountryExtreme * GetBlock(void) const
const string & GetCountry(void) const
CCountryExtreme * m_Block
double GetLat(void) const
void SetBlock(CCountryExtreme *block)
static int ConvertLat(double y, double scale)
double GetMaxLon(void) const
int x_ConvertLat(double y)
double GetMinLon(void) const
CCountryLine(const string &country_name, double y, double min_x, double max_x, double scale)
int x_ConvertLon(double x)
static int ConvertLon(double x, double scale)
int GetClaimedDistance(void) const
string GetClosestProvince(void) const
void SetFullGuess(string guess)
void SetWaterDistance(int dist)
int GetWaterDistance(void) const
void SetClaimedDistance(int dist)
string GetFullGuess(void) const
void SetClosestCountry(string closest)
string GetClaimedFull(void) const
void SetClosestFull(string closest)
string GetClosestWater(void) const
void SetGuessProvince(string guess)
void SetLandDistance(int dist)
int TClassificationFlags
Bitwise OR of "EClassificationFlags".
string GetGuessCountry(void) const
void SetClosestWater(string closest)
string GetGuessWater(void) const
void SetGuessWater(string guess)
string GetClosestFull(void) const
void SetClosestProvince(string closest)
void SetClaimedFull(string claimed)
int GetLandDistance(void) const
string GetClosestCountry(void) const
string GetGuessProvince(void) const
void SetGuessCountry(string guess)
TCountryExtremeList m_CountryExtremes
int TLatLonAdjustFlags
Bitwise OR of "ELatLonAdjustFlags".
double GetScale(void) const
TCountryExtremeList::const_iterator TCountryExtremeList_iter
TCountryLineList m_CountryLineList
TCountryLineList m_LatLonSortedList
TCountryLineList::const_iterator TCountryLineList_iter
vector< CCountryLine * > TCountryLineList
vector< CCountryExtreme * > TCountryExtremeList
class CStaticArrayMap<> is an array adaptor that provides an STLish interface to statically-defined a...
static TSubtype GetSubtypeValue(const string &str, EVocabulary vocabulary=eVocabulary_raw)
@ eLatLonCountryErr_State
@ eLatLonCountryErr_Water
@ eLatLonCountryErr_Country
CSubSource(const CSubSource &value)
CSubSource & operator=(const CSubSource &value)
static string GetCollectionDateProblem(const string &date_string, bool &is_null_and_virus, bool is_influenza_or_Sars2)
CTempString implements a light-weight string on top of a storage buffer whose lifetime management is ...
static void check_state(const char name[], prfunc print, int erc)
static char line1[1024 *16]
static char line2[1024 *16]
static const char * str(char *buf, int n)
string GetLabel(const CSeq_id &id)
bool IsValid(const CSeq_point &pt, CScope *scope)
Checks that point >= 0 and point < length of Bioseq.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define NCBI_SEQFEAT_EXPORT
TSubtype & SetSubtype(void)
Assign a value to Subtype data member.
TName & SetName(void)
Assign a value to Name data member.
where boath are integers</td > n< td ></td > n</tr > n< tr > n< td > tse</td > n< td > optional</td > n< td > String</td > n< td class=\"description\"> TSE option controls what blob is orig
const GenericPointer< typename T::ValueType > T2 value
Defines: CTimeFormat - storage class for time format.
static bool FixCapitalization(string &name, bool apostroph)
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