Sese Framework  2.3.0
A cross-platform framework
Loading...
Searching...
No Matches
Algorithm.cpp File Reference
#include <sese/text/Algorithm.h>
#include <sese/text/SString.h>
#include <cstring>
#include <vector>

Functions

static std::vector< int > getNext (const char *str)
 
static int dist (const char *t, char ch)
 
static int dist (std::vector< sstr::SChar > &t, uint32_t ch)
 

Function Documentation

◆ dist() [1/2]

static int dist ( const char * t,
char ch )
static

Referenced by sstr::BM(), and sstr::BM().

◆ dist() [2/2]

static int dist ( std::vector< sstr::SChar > & t,
uint32_t ch )
static

◆ getNext()

static std::vector< int > getNext ( const char * str)
static

Referenced by sstr::KMP().