forked from psemiletov/tea-qt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
textproc.h
39 lines (35 loc) · 1.39 KB
/
textproc.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef TEXTPROC_H
#define TEXTPROC_H
enum
{
QSTRL_PROC_REMOVE_FORMATTING = 0,
QSTRL_PROC_APPLY_2_EACH_LINE,
QSTRL_PROC_FLT_WITH_REGEXP,
QSTRL_PROC_FLT_WITH_SORTCASECARE,
QSTRL_PROC_LIST_FLIP,
QSTRL_PROC_FLT_LESS,
QSTRL_PROC_FLT_GREATER,
QSTRL_PROC_FLT_REMOVE_DUPS,
QSTRL_PROC_FLT_REMOVE_EMPTY,
QSTRL_PROC_FLT_WITH_SORTNOCASECARE,
QSTRL_PROC_FLT_WITH_SORTCASECARE_SEP,
QSTRL_PROC_LIST_FLIP_SEP,
QSTRL_PROC_FLT_WITH_SORTLEN
};
int str_fuzzy_search (const QString &s, const QString &text_to_find, int start_pos, double q);
QString apply_table (const QString &s, const QString &fname, bool use_regexp);
QString strip_html (const QString &text);
QString qstringlist_process (const QString &s, const QString ¶ms, int mode);
QString string_reverse (const QString &s);
QString conv_quotes (const QString &source, const QString &c1, const QString &c2);
QStringList html_get_by_patt (const QString &s, const QString &spatt);
QStringList anagram (const QString &s);
int romanToDecimal (const char *roman);
QString arabicToRoman (int i);
QString int_to_binary (int n);
unsigned int bin_to_decimal (const QString &s);
QString str_to_entities (const QString &s);
QString morse_from_lang (const QString &s, const QString &lang);
QString morse_to_lang (const QString &s, const QString &lang);
int get_arab_num (std::string rom_str);
#endif // TEXTPROC_H