FST  openfst-1.8.3
OpenFst Library
Classes | Namespaces | Typedefs | Enumerations | Functions
string.h File Reference
#include <cstdint>
#include <memory>
#include <optional>
#include <ostream>
#include <sstream>
#include <string>
#include <utility>
#include <vector>
#include <fst/flags.h>
#include <fst/log.h>
#include <fst/arc.h>
#include <fst/compact-fst.h>
#include <fst/fst.h>
#include <fst/icu.h>
#include <fst/mutable-fst.h>
#include <fst/properties.h>
#include <fst/symbol-table.h>
#include <fst/util.h>
#include <fst/compat.h>
#include <string_view>
Include dependency graph for string.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  fst::StringPrinter< Arc >
 

Namespaces

 fst
 
 fst::internal
 

Typedefs

using fst::StdStringCompiler = StringCompiler< StdArc >
 
using fst::StdStringPrinter = StringPrinter< StdArc >
 

Enumerations

enum  fst::TokenType : uint8_t { fst::TokenType::SYMBOL = 1, fst::TokenType::BYTE = 2, fst::TokenType::UTF8 = 3 }
 

Functions

 DECLARE_string (fst_field_separator)
 See www.openfst.org for extensive documentation on this weighted. More...
 
std::ostream & fst::operator<< (std::ostream &strm, const TokenType &token_type)
 
template<class Label >
bool fst::internal::ConvertSymbolToLabel (std::string_view str, const SymbolTable *syms, Label unknown_label, Label *output)
 
template<class Label >
bool fst::internal::ConvertStringToLabels (std::string_view str, TokenType token_type, const SymbolTable *syms, Label unknown_label, std::vector< Label > *labels, std::string_view sep=FST_FLAGS_fst_field_separator)
 
template<class Label >
bool fst::internal::LabelsToSymbolString (const std::vector< Label > &labels, std::string *str, const SymbolTable &syms, std::string_view sep, bool omit_epsilon)
 
template<class Label >
bool fst::internal::LabelsToNumericString (const std::vector< Label > &labels, std::string *str, std::string_view sep, bool omit_epsilon)
 
template<class Arc >
class fst::OPENFST_DEPRECATED ("allow_negative is no-op") StringCompiler
 
template<class Arc >
bool fst::StringFstToOutputLabels (const Fst< Arc > &fst, std::vector< typename Arc::Label > *labels)
 
template<class Arc >
bool fst::StringFstToOutputLabels (const Fst< Arc > &fst, std::vector< typename Arc::Label > *labels, typename Arc::Weight *weight)
 
template<class Label >
bool fst::LabelsToString (const std::vector< Label > &labels, std::string *str, TokenType ttype=TokenType::BYTE, const SymbolTable *syms=nullptr, std::string_view sep=FST_FLAGS_fst_field_separator, bool omit_epsilon=true)
 

Function Documentation

DECLARE_string ( fst_field_separator  )

See www.openfst.org for extensive documentation on this weighted.