Edinburgh Speech Tools  2.1-release
EST_Token.cc File Reference
#include <cstdio>
#include <iostream>
#include "EST_unix.h"
#include <cstdlib>
#include <climits>
#include <cstring>
#include "EST_math.h"
#include "EST_Token.h"
#include "EST_string_aux.h"
#include "EST_cutils.h"
#include "EST_error.h"
Include dependency graph for EST_Token.cc:

Go to the source code of this file.

Macros

#define check_extend_str(STR, POS, MAX)   (((POS)>= *(MAX))?check_extend_str_in((STR),(POS),(MAX)):(STR))
 
#define CLASS(C, CL)   (p_table[(unsigned char)(C)]==(CL))
 
#define CLASS2(C, CL1, CL2)   (p_table[(unsigned char)(C)]==(CL1)||p_table[(unsigned char)(C)]==(CL2))
 

Functions

ostream & operator<< (ostream &s, const EST_Token &p)
 
ostream & operator<< (ostream &s, EST_TokenStream &p)
 
EST_String quote_string (const EST_String &s, const EST_String &quote, const EST_String &escape, int force)
 

Variables

const EST_String EST_Token_Default_WhiteSpaceChars = " \t\n\r"
 The default whitespace characters. More...
 
const EST_String EST_Token_Default_SingleCharSymbols = "(){}[]"
 
const EST_String EST_Token_Default_PrePunctuationSymbols = "\"'`({["
 
const EST_String EST_Token_Default_PunctuationSymbols = "\"'`.,:;!?]})"
 
const EST_String Token_Origin_FD = "existing file descriptor"
 
const EST_String Token_Origin_Stream = "existing istream"
 
const EST_String Token_Origin_String = "existing string"
 

Macro Definition Documentation

#define check_extend_str (   STR,
  POS,
  MAX 
)    (((POS)>= *(MAX))?check_extend_str_in((STR),(POS),(MAX)):(STR))

Definition at line 86 of file EST_Token.cc.

#define CLASS (   C,
  CL 
)    (p_table[(unsigned char)(C)]==(CL))

Definition at line 719 of file EST_Token.cc.

#define CLASS2 (   C,
  CL1,
  CL2 
)    (p_table[(unsigned char)(C)]==(CL1)||p_table[(unsigned char)(C)]==(CL2))

Definition at line 721 of file EST_Token.cc.

Function Documentation

ostream& operator<< ( ostream &  s,
const EST_Token p 
)

Definition at line 89 of file EST_Token.cc.

ostream& operator<< ( ostream &  s,
EST_TokenStream p 
)

Definition at line 190 of file EST_Token.cc.

EST_String quote_string ( const EST_String s,
const EST_String quote = "\"",
const EST_String escape = "\\",
int  force = 0 
)

Quote a string with given quotes and escape character

Definition at line 844 of file EST_Token.cc.

Variable Documentation

const EST_String EST_Token_Default_WhiteSpaceChars = " \t\n\r"

The default whitespace characters.

Definition at line 55 of file EST_Token.cc.

const EST_String EST_Token_Default_SingleCharSymbols = "(){}[]"

Definition at line 56 of file EST_Token.cc.

const EST_String EST_Token_Default_PrePunctuationSymbols = "\"'`({["

Definition at line 57 of file EST_Token.cc.

const EST_String EST_Token_Default_PunctuationSymbols = "\"'`.,:;!?]})"

Definition at line 58 of file EST_Token.cc.

const EST_String Token_Origin_FD = "existing file descriptor"

Definition at line 59 of file EST_Token.cc.

const EST_String Token_Origin_Stream = "existing istream"

Definition at line 60 of file EST_Token.cc.

const EST_String Token_Origin_String = "existing string"

Definition at line 61 of file EST_Token.cc.