#include "util/have.hh"
#include <cstring>
#include <iosfwd>
#include <ostream>
#include <algorithm>
#include <cstddef>
#include <string>
Go to the source code of this file.
Classes | |
class | StringPiece |
Functions | |
bool | operator== (const StringPiece &x, const StringPiece &y) |
bool | operator!= (const StringPiece &x, const StringPiece &y) |
bool | starts_with (const StringPiece &longer, const StringPiece &prefix) |
bool | operator< (const StringPiece &x, const StringPiece &y) |
bool | operator> (const StringPiece &x, const StringPiece &y) |
bool | operator<= (const StringPiece &x, const StringPiece &y) |
bool | operator>= (const StringPiece &x, const StringPiece &y) |
StringPiece | Trim (const StringPiece &str, const std::string dropChars=" \t\n\r") |
std::ostream & | operator<< (std::ostream &o, const StringPiece &piece) |
bool operator!= | ( | const StringPiece & | x, | |
const StringPiece & | y | |||
) | [inline] |
Definition at line 232 of file string_piece.hh.
bool operator< | ( | const StringPiece & | x, | |
const StringPiece & | y | |||
) | [inline] |
Definition at line 242 of file string_piece.hh.
References StringPiece::data(), and StringPiece::size().
std::ostream& operator<< | ( | std::ostream & | o, | |
const StringPiece & | piece | |||
) | [inline] |
Definition at line 269 of file string_piece.hh.
References StringPiece::data(), and StringPiece::size().
bool operator<= | ( | const StringPiece & | x, | |
const StringPiece & | y | |||
) | [inline] |
Definition at line 252 of file string_piece.hh.
bool operator== | ( | const StringPiece & | x, | |
const StringPiece & | y | |||
) | [inline] |
Definition at line 225 of file string_piece.hh.
References StringPiece::data(), and StringPiece::size().
bool operator> | ( | const StringPiece & | x, | |
const StringPiece & | y | |||
) | [inline] |
Definition at line 248 of file string_piece.hh.
bool operator>= | ( | const StringPiece & | x, | |
const StringPiece & | y | |||
) | [inline] |
Definition at line 256 of file string_piece.hh.
bool starts_with | ( | const StringPiece & | longer, | |
const StringPiece & | prefix | |||
) | [inline] |
Definition at line 236 of file string_piece.hh.
References StringPiece::starts_with().
Referenced by MosesTraining::ScoreFeatureManager::configure(), xpath_ast_node::eval_boolean(), Moses::ScoreComponentCollection::GetNumberWeights(), Moses::ScoreComponentCollection::GetVectorForProducer(), Moses::IOWrapper::IOWrapper(), Moses::Parameter::isOption(), Moses::LexicalReordering::LexicalReordering(), loadOrientationPriors(), Moses::ScoreComponentCollection::MultiplyEquals(), MosesTuning::NextLine(), namespace_uri_predicate::operator()(), process_tagged_input(), lm::ReadARPACounts(), Moses::ReformatHieroRule(), and Moses::TrimXml().
StringPiece Trim | ( | const StringPiece & | str, | |
const std::string | dropChars = " \t\n\r" | |||
) | [inline] |
Definition at line 260 of file string_piece.hh.
References StringPiece::find_first_not_of(), StringPiece::find_last_not_of(), and StringPiece::substr().
Referenced by main().