Project

General

Profile

Template
reco_sphinx.cpp File Reference
#include "reco_sphinx.h"
#include <iostream>
#include <sstream>
#include <algorithm>
#include <sys/stat.h>

Go to the source code of this file.

Macros

#define MAX_BUFFER   262144
 utils libraries
 
#define P_SLASH   "/"
 

Functions

bool fileExists (const std::string &filePath)
 
std::string getDirectoryFromFilePath (const std::string &filePath)
 
std::string getFileNameWithoutExtension (const std::string &filePath)
 
int countWords (const std::string &text)
 

Macro Definition Documentation

◆ MAX_BUFFER

#define MAX_BUFFER   262144

utils libraries

Definition at line 36 of file reco_sphinx.cpp.

◆ P_SLASH

#define P_SLASH   "/"

Definition at line 56 of file reco_sphinx.cpp.

Function Documentation

◆ countWords()

int countWords ( const std::string &  text)

Definition at line 85 of file reco_sphinx.cpp.

◆ fileExists()

bool fileExists ( const std::string &  filePath)

Definition at line 58 of file reco_sphinx.cpp.

◆ getDirectoryFromFilePath()

std::string getDirectoryFromFilePath ( const std::string &  filePath)

Definition at line 65 of file reco_sphinx.cpp.

◆ getFileNameWithoutExtension()

std::string getFileNameWithoutExtension ( const std::string &  filePath)

Definition at line 75 of file reco_sphinx.cpp.