Back to index

texmacs  1.0.7.15
Functions
ispell.hpp File Reference
#include "tree.hpp"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

string ispell_start (string lan)
tree ispell_check (string lan, string s)
void ispell_accept (string lan, string s)
void ispell_insert (string lan, string s)
void ispell_done (string lan)

Function Documentation

void ispell_accept ( string  lan,
string  s 
)

Definition at line 285 of file ispell.cpp.

                                     {
  if (DEBUG_IO) cout << "Ispell] Accept " << s << "\n";
  ispell_send (lan, "@" * s);
}

Here is the call graph for this function:

Here is the caller graph for this function:

tree ispell_check ( string  lan,
string  s 
)

Definition at line 272 of file ispell.cpp.

                                    {
  if (DEBUG_IO) cout << "Ispell] Check " << s << "\n";
  ispeller sc= ispeller (lan);
  if (is_nil (sc) || (!sc->ln->alive)) {
    string message= ispell_start (lan);
    if (starts (message, "Error: ")) return message;
  }
  string ret_s= ispell_eval (lan, "^" * s);
  if (starts (ret_s, "Error: ")) return ret_s;
  return parse_ispell (ret_s);
}

Here is the call graph for this function:

Here is the caller graph for this function:

void ispell_done ( string  lan)

Definition at line 297 of file ispell.cpp.

                         {
  if (DEBUG_IO) cout << "Ispell] End " << lan << "\n";
  ispell_send (lan, "#");
}

Here is the call graph for this function:

Here is the caller graph for this function:

void ispell_insert ( string  lan,
string  s 
)

Definition at line 291 of file ispell.cpp.

                                     {
  if (DEBUG_IO) cout << "Ispell] Insert " << s << "\n";
  ispell_send (lan, "*" * s);
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 264 of file ispell.cpp.

                          {
  if (DEBUG_IO) cout << "Ispell] Start " << lan << "\n";
  ispeller sc= ispeller (lan);
  if (is_nil (sc)) sc= tm_new<ispeller_rep> (lan);
  return sc->start ();
}

Here is the call graph for this function:

Here is the caller graph for this function: