/disk4/html/www/moses/doxygen/mosesdecoder/util/string_piece.hh File Reference

#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)


Function Documentation

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().

Here is the call graph for this function:

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().

Here is the call graph for this function:

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().

Here is the call graph for this function:

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]

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().

Here is the call graph for this function:

Here is the caller graph for this function:


Generated on Thu Jul 6 00:31:41 2017 for Moses by  doxygen 1.5.9