

Public Member Functions | |
| eAutoCompleterChat (std::deque< tString > &words) | |
| int | DoFullCompletion (tString &string, int pos, int len, tString &match) |
| Replaces the word the cursor is on by the given match and a space. | |
| tString | Simplify (tString const &str) |
| Simplifies a string, by default converts it to lowercase. | |
Definition at line 3379 of file ePlayer.cpp.
| eAutoCompleterChat::eAutoCompleterChat | ( | std::deque< tString > & | words | ) | [inline] |
| int eAutoCompleterChat::DoFullCompletion | ( | tString & | string, | |
| int | pos, | |||
| int | len, | |||
| tString & | match | |||
| ) | [inline, virtual] |
Replaces the word the cursor is on by the given match and a space.
| string | the string in which the completion should take place | |
| pos | the position in string where the replaced word ends | |
| len | the length of the word that is already there | |
| match | the string that will be inserted into the other one |
Reimplemented from uAutoCompleter.
Definition at line 3384 of file ePlayer.cpp.
03385 :uAutoCompleter(words) {}; 03386 int DoFullCompletion(tString &string, int pos, int len, tString &match) { 03387 tString actualString; 03388 if(pos - len == 0 || pos - len == 6 && string.StartsWith("/team ")) { 03389 actualString = match + ": "; 03390 } else if(pos - len == 5 && string.StartsWith("/msg ") || string.StartsWith("/admin ")) { 03391 actualString = Simplify(match) + " "; 03392 } else { 03393 actualString = match + " "; 03394 }
Simplifies a string, by default converts it to lowercase.
| str | the string to simplify |
Reimplemented from uAutoCompleter.
Definition at line 3395 of file ePlayer.cpp.
1.5.4