22namespace LinguisticProcessing {
23namespace LinguisticAnalysisStructure {
68m_isConcatAbbrev(false),
77 _capital(tStatus._capital),
78 _roman(tStatus._roman),
79 _isHyphen(tStatus._isHyphen),
80 _isPossessive(tStatus._isPossessive),
81 m_isConcatAbbrev(tStatus.m_isConcatAbbrev),
82 m_isTwitter(tStatus.m_isTwitter),
83 _numeric(tStatus._numeric),
84 _status(tStatus._status),
85 _defaultKey(tStatus._defaultKey)
100_isPossessive(isPossessive),
101m_isConcatAbbrev(isConcatAbbrev),
102m_isTwitter(isTwitter),
114 if (
this != &tStatus) {
212 m_d(new
TStatusPrivate(capital, roman, isHyphen, isPossessive, isConcatAbbrev, isTwitter, numeric, status))
224 if (
this != &tStatus) {
237 return *this->
m_d < *s.
m_d;
321 throw std::runtime_error(
"default key vector cannot be empty");
344 LDEBUG <<
"TStatus::setDefaultKey remove roman from all previous";
346 std::vector <Lima::LimaString > newDefaultKey;
352 newDefaultKey.push_back(*it);
373 result +=
"t_alpha ";
374 result +=
"t_alpha_capital: ";
377 case T_CAPITAL : result +=
"t_capital; ";
break;
378 case T_SMALL : result +=
"t_small; ";
break;
380 case T_ACRONYM : result +=
"t_acronym; ";
break;
386 result +=
"t_alpha_roman: ";
391 case T_NOT_ROMAN : result +=
"t_not_roman; ";
break;
396 result +=
"t_alpha_hyphen; ";
398 result +=
"t_alpha_possessive; ";
400 result +=
"t_alpha_concat_abbrev; ";
402 result +=
"t_twitter; ";
406 result +=
"t_numeric ";
409 case T_INTEGER : result +=
"t_integer; ";
break;
412 case T_FRACTION : result +=
"t_fraction; ";
break;
414 default : result +=
"unknown; ";
break;
419 result +=
"t_other ";
423 case T_PATTERN : result +=
"t_pattern; ";
break;
424 case T_WORD_BRK : result +=
"t_word_brk; ";
break;
427 default : result +=
"unknown; ";
break;
438 xmlStream <<
" <t_alpha>" << std::endl;
439 xmlStream <<
" <t_alpha_capital>";
442 case T_CAPITAL : xmlStream <<
"t_capital";
break;
443 case T_SMALL : xmlStream <<
"t_small";
break;
445 case T_ACRONYM : xmlStream <<
"t_acronym";
break;
447 case T_ABBREV : xmlStream <<
"t_abbrev";
break;
450 xmlStream <<
"</t_alpha_capital>" << std::endl;
453 xmlStream <<
" <t_alpha_roman>";
458 case T_NOT_ROMAN : xmlStream <<
"t_not_roman";
break;
461 xmlStream <<
"</t_alpha_roman>" << std::endl;
464 xmlStream <<
" <t_alpha_hyphen/>" << std::endl;
466 xmlStream <<
" <t_alpha_possessive/>" << std::endl;
468 xmlStream <<
" <t_alpha_concat_abbrev/>" << std::endl;
470 xmlStream <<
" <t_twitter/>" << std::endl;
471 xmlStream <<
" </t_alpha>" << std::endl;
475 xmlStream <<
" <t_numeric>";
478 case T_INTEGER : xmlStream <<
"t_integer";
break;
481 case T_FRACTION : xmlStream <<
"t_fraction";
break;
483 default : xmlStream <<
"unknown";
break;
485 xmlStream <<
"</t_numeric>" << std::endl;
489 xmlStream <<
" <t_other>";
493 case T_PATTERN : xmlStream <<
"t_pattern";
break;
494 case T_WORD_BRK : xmlStream <<
"t_word_brk";
break;
497 default : xmlStream <<
"unknown";
break;
499 xmlStream <<
"</t_other>" << std::endl;
501 xmlStream <<
" <t_default>";
503 xmlStream <<
"</t_default>" << std::endl;
bool operator==(const TStatusPrivate &s) const
bool operator<(const TStatusPrivate &s) const
AlphaCapitalType _capital
virtual ~TStatusPrivate()
std::vector< Lima::LimaString > _defaultKey
TStatusPrivate & operator=(const TStatusPrivate &)
NumericType getNumeric() const
StatusType getStatus() const
void setAlphaConcatAbbrev(bool concatAbbrev)
AlphaCapitalType getAlphaCapital() const
void setAlphaRoman(const AlphaRomanType alphaRoman)
bool isAlphaPossessive() const
void setStatus(const StatusType other)
void setDefaultKey(const Lima::LimaString &defaultKey)
void setTwitter(bool isTwitter)
void setAlphaHyphen(bool isAlphaHyphen)
bool operator==(const TStatus &s) const
void setAlphaPossessive(bool isAlphaPossessive)
bool isAlphaHyphen() const
void setNumeric(const NumericType numeric)
AlphaRomanType getAlphaRoman() const
bool isAlphaConcatAbbrev() const
std::string toString() const
const Lima::LimaString & defaultKey() const
void setAlphaCapital(const AlphaCapitalType alphaCapital)
void outputXML(std::ostream &XmlStream) const
TStatus & operator=(const TStatus &)
bool operator<(const TStatus &s) const
std::string limastring2utf8stdstring(const Lima::LimaString &phrase, uint32_t size0)
Convert a wide string to a string , in dest up to size bytes.
LimaString utf8stdstring2limastring(const std::string &src)