35#define DEFAULT_SEPARATOR QChar{'#'}
36#define DEFAULT_COMPOUND_SEPARATOR QChar{'_'}
59 m_realization(realization),
68 uint64_t type,uint64_t syntype):
69 m_realization(realization),
79 m_realization(rel.m_realization),
112 std::ostringstream oss;
158 int i=str.indexOf(separator,current);
224 std::ostringstream oss;
232 std::ostringstream oss;
#define DEFAULT_SEPARATOR
#define DEFAULT_COMPOUND_SEPARATOR
This class is used to type the relation between a part and its enclosing complex token.
void setType(uint64_t type)
virtual std::string getIdUTF8String() const
function used to identify a bowtoken in a text (used in BowDumper)
Lima::LimaString m_realization
static LimaChar m_separator
static Lima::LimaString findNextElement(const Lima::LimaString &str, int ¤t, const LimaChar &separator)
static bool m_useOnlyRealization
virtual void parse(const Lima::LimaString &str, int current)
for parsing of input stream
virtual Lima::LimaString getRealization(void) const
virtual void write(std::ostream &file) const
Lima::LimaString getString(void) const
virtual void read(std::istream &file)
virtual std::string getOutputUTF8String(void) const
get a string of the BoWRelation for output function
void convertSpaces(void)
convert the spaces in the realization string into a non-space character (defined by the m_compoundSep...
bool operator==(const BoWRelation &) const
redefine equality
static LimaChar m_compoundSeparator
bool operator!=(const BoWRelation &) const
redefine inequality as negation of equality.
LIMA_BOW_EXPORT uint8_t toInt(const BoWType &bt)
T & operator<<(T &qd, const BoWType &bt)
void writeUTF8StringField(std::ostream &file, const Lima::LimaString &s)
Binary write a a LimaString in a file as an utf8 string.
uint64_t readCodedInt(std::istream &file)
read a integer coded in variable-byte format in a file
std::string limastring2utf8stdstring(const Lima::LimaString &phrase, uint32_t size0)
Convert a wide string to a string , in dest up to size bytes.
void readUTF8StringField(std::istream &file, Lima::LimaString &s)
Binary read an utf8 string from a file and store it in a LimaString.
void writeCodedInt(std::ostream &file, const uint64_t number)
write a integer coded in variable-byte format in a file
LimaString utf8stdstring2limastring(const std::string &src)