![]() |
LIMA
Libre Multilingual Analyzer — C++ API
|
string and wstring utility routines More...
#include "strwstrtools.h"#include "readwritetools.h"#include <algorithm>#include <string.h>#include <cassert>#include <cstdlib>#include <iostream>#include <fstream>#include <sstream>#include <iomanip>#include <stdexcept>Go to the source code of this file.
Namespaces | |
| namespace | Lima |
| NAUTITIA. | |
| namespace | Lima::Common |
| namespace | Lima::Common::Misc |
Functions | |
| void | Lima::Common::Misc::readStream (std::istream &is, std::string &dest) |
| Read an input stream into a string, until EOF. | |
| void | Lima::Common::Misc::writeStream (std::ostream &os, const std::string &src) |
| Write a string to an output stream. | |
| std::string | Lima::Common::Misc::readLine (std::istream &inputFile) |
| void | Lima::Common::Misc::readString (std::istream &file, std::string &s) |
| Read an input stream into a wide string, until EOF. | |
| void | Lima::Common::Misc::writeString (std::ostream &file, const std::string &s) |
| write a string on an output file stream | |
| void | Lima::Common::Misc::readStringField (istream &file, string &s) |
| void | Lima::Common::Misc::writeStringField (ostream &file, const string &s) |
| void | Lima::Common::Misc::readUTF8StringField (std::istream &file, Lima::LimaString &s) |
| Binary read an utf8 string from a file and store it in a LimaString. | |
| void | Lima::Common::Misc::writeUTF8StringField (std::ostream &file, const Lima::LimaString &s) |
| Binary write a a LimaString in a file as an utf8 string. | |
| LimaString | Lima::Common::Misc::utf8stdstring2limastring (const std::string &src) |
| std::string | Lima::Common::Misc::localestring2utf8string (const std::string &src) |
| ␈rief Convert a string in the locale codepage to a UTF8 string | |
| LimaString | Lima::Common::Misc::latin15stdstring2limastring (const std::string &src) |
| Convert a latin15 string to a LimaString. | |
| std::string | Lima::Common::Misc::limastring2utf8stdstring (const Lima::LimaString &phrase, uint32_t size) |
| Convert a wide string to a string , in dest up to size bytes. | |
| std::string | Lima::Common::Misc::limastring2utf8stdstring (const Lima::LimaString &src) |
| Convert a Lima string to a string. | |
| LimaString | Lima::Common::Misc::setStringSameEndian (const unsigned short *s, const uint32_t count) |
| redefine an existing LimaString from UTF-16 | |
| LimaString | Lima::Common::Misc::setStringReverseEndian (const unsigned short *s, const uint32_t count) |
| redefine an existing LimaString from UTF-16 changing the endian mode | |
| LimaString | Lima::Common::Misc::transcodeToXmlEntities (const LimaString &str) |
string and wstring utility routines
Definition in file strwstrtools.cpp.