Commit Graph

21 Commits

Author SHA1 Message Date
Ai Lin Chia
773c6cbcfc Cater for languages not in gb (eg: nynorsk/bokmaal) 2018-03-09 10:24:22 +01:00
Ivan Skytte Jørgensen
128790084b Use lang_t enum more than just plain uint8_t 2017-11-21 16:18:45 +01:00
Ai Lin Chia
55985c2cf1 Add newly added languages into the allowed list 2017-06-29 16:55:32 +02:00
Ai Lin Chia
bab6c505ed Pick language based on specific criteria 2017-06-28 14:18:07 +02:00
Ai Lin Chia
ecaca8aeea Add more languages 2017-06-28 11:52:06 +02:00
Ai Lin Chia
ed01207939 Try to set langId from charset if it's still unknown by the end of the various detection we use 2017-05-04 15:14:47 +02:00
Ivan Skytte Jørgensen
416db85d5a Moved isAdult() from Lang.cpp to AdultCheck.cpp 2016-11-29 14:50:17 +01:00
Ivan Skytte Jørgensen
81553cd8dd constness in Lang.* 2016-11-12 21:12:13 +01:00
Brian Rasmusson
f0e3b14873 fix for out-of-bounds read warning in getLangIdFromAbbr 2016-09-22 22:20:38 +02:00
Ivan Skytte Jørgensen
13e081b07a constness 2016-05-22 21:42:38 +02:00
Ai Lin Chia
b1b0abd039 Add constness to strnstr. Remove unused methods. 2016-05-10 16:15:32 +02:00
Ai Lin Chia
9fdfd046a1 Rename strnstr2 to strnstr 2016-05-10 16:15:32 +02:00
Ivan Skytte Jørgensen
0792686a51 Removed or commented out unreachable code 2016-02-25 15:07:05 +01:00
Ai Lin Chia
91ced06a6a Use fx_fetld, fx_qlang, fx_blang, fx_country as hints to CLD2 detection
Rename getLangAbbr to getLanguageAbbr
2015-11-23 16:16:26 +01:00
Ai Lin Chia
6184e376a4 Cleanup related to languages/Compiler warnings 2015-11-23 14:45:18 +01:00
Ai Lin Chia
ca98d20173 Use cld2 for language detection on query 2015-11-05 15:43:21 +01:00
Matt
96b8197ad3 now it compiles with -m32 2014-11-10 14:45:11 -08:00
mwells
caee238c46 fixes to make easier to compile on max os x. 2014-08-28 12:55:02 -07:00
mwells
d2f39cd1a0 comment updates 2013-10-15 23:13:50 -07:00
mwells
34b6d3e74a fixed some cores. brought in fixes from
old repo.
2013-09-08 16:16:13 -06:00
Matt Wells
f6e560c1f4 Initial file population. 2013-08-02 13:12:24 -07:00