Frog
Macros | Functions
ucto_tokenizer_mod.cxx File Reference
#include "frog/ucto_tokenizer_mod.h"
#include <string>
#include "timbl/TimblAPI.h"
#include "frog/Frog-util.h"
#include "frog/FrogData.h"
#include "ticcutils/Configuration.h"
#include "ticcutils/FileUtils.h"
#include "ticcutils/Unicode.h"
#include "ticcutils/PrettyPrint.h"
#include "config.h"
Include dependency graph for ucto_tokenizer_mod.cxx:

Macros

#define LOG   *TiCC::Log(errLog)
 
#define DBG   *TiCC::Log(dbgLog)
 

Functions

string resolve_configdir (const string &rules_name, const string &dir)
 
string get_parent_id (folia::FoliaElement *el)
 

Macro Definition Documentation

◆ DBG

#define DBG   *TiCC::Log(dbgLog)

◆ LOG

#define LOG   *TiCC::Log(errLog)

Function Documentation

◆ get_parent_id()

string get_parent_id ( folia::FoliaElement *  el)

return the id of the FoliaElement or its parent

Parameters
elThe FoliaElement to examine
Returns
the id found or "" if nothing is found

recurses upwards through the parents when the element doesn't have an id

◆ resolve_configdir()

string resolve_configdir ( const string &  rules_name,
const string &  dir 
)

lame attempt to resolve the location of a rules file give a possible dir

Parameters
rules_nameThe filename to search
dirpossible location of the file