A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/spell__check_8cpp_source.html below:

NCBI C++ ToolKit: src/misc/discrepancy/spell_check.cpp Source File

Go to the documentation of this file.

Go to the SVN repository for this file.

45 static const char

*

Words

[] = {

"hypothetical"

,

"protein"

,

"hemoglobin"

,

"Colleen"

,

"Bollin"

};

53  void next

() {

Y

++;

if

(

Y

> 53 || (

Y

== 53 &&

X

==

S

.length() - 1)) {

X

++;

Y

= 0; } }

62  string

s =

S

.substr(0,

X

+ 1) +

S

.substr(

X

);

63

s[

X

] =

'A'

+

Y

- 26;

67  string

s =

S

.substr(0,

X

) +

S

.substr(

X

+ 1);

97

(*Scrumbled)[u].push_back(s);

104  string t

= Scr.str();

108

vector<string>& v = (*Scrumbled)[

t

];

110  for

(

n

= 0;

n

< v.size();

n

++) {

115  if

(

n

== v.size()) {

125  for

(

size_t n

= 0;

n

< v.size();

n

++) {

136  for

(

size_t n

= 0;

n

< w.size();

n

++) {

152  string str

= *

prot

.GetName().begin();

154

vector<string> words;

156  for

(

size_t i

= 0;

i

< words.size();

i

++) {

166  string t

= Scr.str();

172  string msg

= s +

" - should it be"

;

173  for

(

size_t n

= 0;

n

< w.size();

n

++) {

174  msg

+=

" "

+ w[

n

] +

"?"

;

CScrumble(const string &s)

#define DISCREPANCY_CASE(name, type, group, descr)

static const char * str(char *buf, int n)

constexpr size_t ArraySize(const Element(&)[Size])

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define END_SCOPE(ns)

End the previously defined scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

#define BEGIN_SCOPE(ns)

Define a new scope.

static list< string > & Split(const CTempString str, const CTempString delim, list< string > &arr, TSplitFlags flags=0, vector< SIZE_TYPE > *token_pos=NULL)

Split a string using specified delimiters.

static string & ToUpper(string &str)

Convert string to upper case – string& version.

static SLJIT_INLINE sljit_ins msg(sljit_gpr r, sljit_s32 d, sljit_gpr x, sljit_gpr b)

DISCREPANCY_MODULE(spell_check)

static void InitSpellChecker()

static void insert_unique(vector< string > &v, const string &s)

static CSafeStatic< map< string, string > > Dictionary

static CSafeStatic< map< string, vector< string > > > Scrumbled

static const char * Words[]

static CS_CONTEXT * context


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4