Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/CLD2Owners/cld2
/ functions
Functions
389 in github.com/CLD2Owners/cld2
⨍
Functions
389
◇
Types & classes
10
Function
DetectLanguageCheckUTF8
Scan interchange-valid UTF-8 bytes and detect most likely language If the input is in fact not valid UTF-8, this returns immediately with the result v
internal/compact_lang_det.cc:44
Function
DiffScore
internal/scoreonescriptspan.cc:187
Function
DoBigramScoreV3
BIGRAM, using hash table, always advancing by 1 char Caller supplies table, such as &kCjkBiTable_obj or &kGibberishTable_obj Score all bigrams in isrc
internal/cldutil.cc:163
Function
DoWordScore
Find top two langs and scores for one word; underpins delta tables
internal/cldutil_offline.cc:99
Method
DocTote
Take a set of <key, value> pairs and tote them up. After explicitly sorting, retrieve top key, value pairs 0xFFFF in key signifies unused
internal/tote.cc:105
Function
DumpResultChunkVector
internal/debug_empty.cc:60
Method
DumpString
internal/offsetmap.cc:208
Method
Emit
Len may be 0, for example as the low piece of length=64
internal/offsetmap.cc:203
Function
ExtLanguageDeclaredName
Given the Language, returns its Language enum spelling, for use by programs that create C declarations, e.g. "KOREAN" "UNKNOWN_LANGUAGE" if the input
internal/lang_script.cc:253
Function
ExtLanguageName
Given the Language, returns its string name used as the output by the lang/enc identifier, e.g. "Korean" "invalid_language" if the input is invalid. T
internal/lang_script.cc:240
Function
FlagHint
internal/compact_lang_det_impl.cc:438
Function
FlagShort
internal/compact_lang_det_impl.cc:437
Function
FlagTop40
internal/compact_lang_det_impl.cc:436
Function
FlagUseWords
internal/compact_lang_det_impl.cc:439
Method
FlushAll
Add one more entry to copy one byte off the end, then flush
internal/offsetmap.cc:190
Method
GetByteCount
internal/tote.h:46
Method
GetClosePair
internal/tote.h:81
Function
GetColorHtmlEscapedText
internal/debug_empty.cc:31
Function
GetHtmlEscapedText
internal/debug_empty.cc:29
Method
GetIncrCount
internal/tote.h:80
Function
GetLangColorHtmlEscapedText
internal/debug_empty.cc:35
Function
GetLangColorHtmlEscapedText
internal/debug.cc:262
Function
GetOcta2At
Debug output string of two octagrams, including underscores
internal/debug.cc:72
Method
GetOneScriptSpan
Copy next run of same-script non-tag letters to buffer [NUL terminated] Buffer ALWAYS has leading space and trailing space space space NUL
internal/getonescriptspan.cc:799
Method
GetOneTextSpan
Copy next run of non-tag characters to buffer [NUL terminated] This just replaces tags with space or \n and removes entities. Tags <br> <p> and <tr> a
internal/getonescriptspan.cc:679
Function
GetPlainEscapedText
internal/debug_empty.cc:27
Function
GetProb
Not sure who calls this... Return the probability for given language, or 0
internal/cldutil_offline.cc:159
Function
GetScoreTxt
Debug output string of one or two formatted quadgram langprobs
internal/debug.cc:127
Function
GetTextSpanOffsets
At this point, The chunk is described by hitbuffer->base[cspan->chunk_base .. cspan->chunk_base + cspan->base_len) hitbuffer->delta[cspan->chunk_delta
internal/scoreonescriptspan.cc:164
Function
IsContinuationByte
internal/getonescriptspan.h:36
Function
IsSingleLang
Return true if just lang1 is there: lang2=0 and lang3=0
internal/scoreonescriptspan.cc:99
Function
LanguageRecognizedScript
n is in 0..3. Trailing entries are filled with UNKNOWN_LANGUAGE (which never participates in language recognition)
internal/lang_script.cc:228
Method
LowerScriptSpan
Force Latin, Cyrillic, Armenian, Greek scripts to be lowercase List changes with each version of Unicode, so just always lowercase Unicode 6.2.0: ARME
internal/getonescriptspan.cc:1033
Method
MapBack
Maps byte offset in most recent GetOneScriptSpan/Lower span->text [0..text_bytes] into an additional byte offset from span->offset, to get back to cor
internal/getonescriptspan.cc:1076
Method
MapForward
Map an offset in A to the corresponding offset in A'
internal/offsetmap.cc:455
Method
MaybeFlushAll
Flush all if necessary
internal/offsetmap.cc:196
Method
MoveLeft
Move active window one range to the left Return true if move was OK
internal/offsetmap.cc:389
Function
OctaHash40underscore
OCTAGRAM wrapper with surrounding underscores (offline use) Pick up 1..24 bytes plus pre/post space and hash them via mask/shift/add UNDERSHOOTS 1 byt
internal/cldutil_shared.cc:364
Method
OffsetMap
Constructor, destructor
internal/offsetmap.cc:31
Method
ParseNext
Parse next range, 1..5 bytes Return subscript just off the end of that
internal/offsetmap.cc:316
Method
ParsePrevious
Parse previous range, 1..5 bytes Return current subscript
internal/offsetmap.cc:333
Function
PrintHtmlEscapedText
internal/compact_lang_det_impl.cc:1211
Function
PrintLang
internal/compact_lang_det_impl.cc:1216
Method
PrintPosition
Quick debugging dump; does not parse multi-byte items, so just length & 0x3f
internal/offsetmap.cc:339
Function
PrintText
internal/compact_lang_det_impl.cc:471
Function
PrintTopLang
internal/compact_lang_det_impl.cc:1227
Function
PrintTopLangSpeculative
internal/compact_lang_det_impl.cc:1236
Method
Printmap
Print map to file, for debugging
internal/offsetmap.cc:65
Function
ProbPackV2
Take three packed languages and three probabilities 1..12 and put into uint32 For offline construction of tables
internal/cldutil_offline.cc:184
Function
ProbUnpackV2
Take uint32 and unpack into three packed languages and three probabilities For runtime use of tables
internal/cldutil_offline.cc:202
Function
QuadHashV2Underscore
QUADGRAM wrapper with surrounding underscores (offline use) Pick up 1..12 bytes plus pre/post '_' and hash them via mask/shift/add OVERSHOOTS up to 3
internal/cldutil_shared.cc:208
Method
RunningScore
internal/tote.h:76
Method
ScriptScanner
internal/getonescriptspan.cc:545
Function
SetCLDPriorLang
internal/compact_lang_det_hint_code.cc:928
Method
SetLeft
internal/offsetmap.cc:284
Method
SetRight
internal/offsetmap.cc:293
Method
SetScore
internal/tote.h:89
Method
SetScoreCount
internal/tote.h:48
Method
SkipToFrontOfSpan
Get to the first real non-tag letter or entity that is a letter Sets script of that letter Return len if no more letters
internal/getonescriptspan.cc:592
Method
StringPiece
We provide non-explicit singleton constructors so users can pass in a "const char*" or a "string" wherever a "StringPiece" is expected.
internal/stringpiece.h:39
Method
StuffIt
For testing only -- force a mapping
internal/offsetmap.cc:559
Method
Tote
Take a set of <key, value> pairs and tote them up. After explicitly sorting, retrieve top key, value pairs Normal use is key=per-script language and v
internal/tote.cc:30
Function
TrimCLDLangTagsHint
Trim language tag string to canonical form for each language Input is from GetLangTagsFromHtml(), already lowercased
internal/compact_lang_det_hint_code.cc:1050
Function
ULScriptDeclaredName
internal/lang_script.cc:147
Function
ULScriptName
If the input is out of range or otherwise unrecognized, it is treated as UNKNOWN_ULSCRIPT (which never participates in language recognition)
internal/lang_script.cc:133
Function
UNALIGNED_LOAD16
internal/port.h:106
Function
UNALIGNED_LOAD64
internal/port.h:89
Function
UNALIGNED_STORE16
internal/port.h:124
Function
UNALIGNED_STORE64
internal/port.h:95
Function
UTF8GenericProperty
Look up property of one UTF-8 character and advance over it Return 0 if input length is zero Return 0 and advance one byte if input is ill-formed
internal/utf8statetable.cc:179
Function
UTF8GenericReplaceTwoByte
Scan a UTF-8 stringpiece based on state table with two-byte entries, copying to output stringpiece and doing text replacements. Also writes an optiona
internal/utf8statetable.cc:1214
Function
UTF8GenericScanFastAscii
Scan a UTF-8 stringpiece based on state table. Always scan complete UTF-8 characters Set number of bytes scanned. Return reason for exiting OPTIMIZED
internal/utf8statetable.cc:560
Function
UTF8HasGenericProperty
internal/utf8statetable.cc:230
Function
UTF8HasGenericPropertyBigOneByte
BigOneByte versions are needed for tables > 240 states, but most won't need the TwoByte versions.
internal/utf8statetable.cc:324
Function
UTF8HasGenericPropertyTwoByte
TwoByte versions are needed for tables > 240 states
internal/utf8statetable.cc:414
Function
UTF8TrimToChars
Adjust a stringpiece to encompass complete UTF-8 characters. The data pointer will be increased by 0..3 bytes to get to a character boundary, and the
internal/utf8statetable.cc:1291
Function
init
Inits boosts
internal/scoreonescriptspan.h:153
Function
main
internal/cld2_unittest_full.cc:400
Function
main
internal/cld2_unittest.cc:428
Function
main
internal/cld2_do_score.cc:197
Function
main
internal/cld2_dynamic_data_tool.cc:52
Function
main
internal/scoreutf8text.cc:502
Function
main
internal/compact_lang_det_test.cc:204
Function
setDebug
internal/cld2_dynamic_data_extractor.cc:25
Function
wrap
internal/scoreonescriptspan.h:120
Method
~DocTote
internal/tote.cc:113
Method
~OffsetMap
internal/offsetmap.cc:35
Method
~ScriptScanner
internal/getonescriptspan.cc:581
Method
~Tote
internal/tote.cc:37
← previous
301–389 of 389, ranked by callers