FreeLing  4.0
Classes | Namespaces | Defines
util.h File Reference
#include <cstdio>
#include <list>
#include <string>
#include <vector>
#include <set>
#include <locale>
#include <iostream>
#include "freeling/utf8/utf8.h"
#include "freeling/regexp.h"
#include "freeling/windll.h"
#include "freeling/morfo/traces.h"
Include dependency graph for util.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  freeling::util
 Class util implements some utilities for NLP analyzers: "tolower" for latin alfabets, tags manipulation, wstring2number and viceversa conversions, etc. More...

Namespaces

namespace  freeling

Defines

#define err_type   char*
#define NEW_TMPNAME(buf, sz)   tmpnam(buf)
#define TMPNAME_FAILED(x)   (x==NULL)
#define TMPNAME_PREFIX   L""
#define UPPER_NONE   0
#define UPPER_1ST   1
#define UPPER_ALL   2
#define MOD_TRACENAME   L"UTIL"
#define MOD_TRACECODE   UTIL_TRACE
#define wstring2vector(x, y)   wstring_to<std::vector<std::wstring> >(x,y)
 Macros for convenience (and back-compatibility)
#define wstring2list(x, y)   wstring_to<std::list<std::wstring> >(x,y)
#define wstring2set(x, y)   wstring_to<std::set<std::wstring> >(x,y)
#define wstring2string(x)   wstring_to<std::string>(x)
#define wstring2int(x)   wstring_to<int>(x)
#define wstring2double(x)   wstring_to<double>(x)
#define wstring2longdouble(x)   wstring_to<long double>(x)
#define vector2wstring(x, y)   wstring_from(x,y)
#define list2wstring(x, y)   wstring_from(x,y)
#define set2wstring(x, y)   wstring_from(x,y)
#define string2wstring(x)   wstring_from(x)
#define int2wstring(x)   wstring_from(x)
#define double2wstring(x)   wstring_from(x)
#define longdouble2wstring(x)   wstring_from(x)
#define wstring2pairlist(x, y, z)   wstring2pairlist<std::wstring,std::wstring>(x,y,z)

Define Documentation

#define double2wstring (   x)    wstring_from(x)
#define err_type   char*
#define int2wstring (   x)    wstring_from(x)
#define list2wstring (   x,
 
)    wstring_from(x,y)
#define longdouble2wstring (   x)    wstring_from(x)
#define MOD_TRACECODE   UTIL_TRACE
#define MOD_TRACENAME   L"UTIL"
#define NEW_TMPNAME (   buf,
  sz 
)    tmpnam(buf)
#define set2wstring (   x,
 
)    wstring_from(x,y)
#define string2wstring (   x)    wstring_from(x)
#define TMPNAME_FAILED (   x)    (x==NULL)
#define TMPNAME_PREFIX   L""
#define UPPER_1ST   1
#define UPPER_ALL   2
#define UPPER_NONE   0
#define vector2wstring (   x,
 
)    wstring_from(x,y)
#define wstring2double (   x)    wstring_to<double>(x)
#define wstring2int (   x)    wstring_to<int>(x)
#define wstring2list (   x,
 
)    wstring_to<std::list<std::wstring> >(x,y)
#define wstring2longdouble (   x)    wstring_to<long double>(x)
#define wstring2pairlist (   x,
  y,
 
)    wstring2pairlist<std::wstring,std::wstring>(x,y,z)
#define wstring2set (   x,
 
)    wstring_to<std::set<std::wstring> >(x,y)
#define wstring2string (   x)    wstring_to<std::string>(x)
#define wstring2vector (   x,
 
)    wstring_to<std::vector<std::wstring> >(x,y)

Macros for convenience (and back-compatibility)

Referenced by freeling::hmm_tagger::hmm_tagger(), freeling::hmm_tagger::is_forbidden(), and freeling::tagset::tagset().