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
↓ 41 callers
Method
size
internal/stringpiece.h:71
↓ 36 callers
Function
UNALIGNED_LOAD32
internal/port.h:112
↓ 35 callers
Function
LanguageCode
internal/lang_script.cc:212
↓ 30 callers
Function
LanguageName
internal/lang_script.cc:206
↓ 20 callers
Method
Copy
Add to mapping from A to A', specifying how many next bytes are identical in A and A'
internal/offsetmap.cc:107
↓ 19 callers
Function
LgProb3
Return one of three probabilities in an entry
internal/cldutil_shared.h:322
↓ 18 callers
Function
BinarySearch
Returns mid if key found in lo <= mid < hi, else -1
internal/lang_script.cc:361
↓ 17 callers
Function
GetHtmlEscapedText
internal/debug.cc:225
↓ 17 callers
Function
minint
internal/cldutil.h:73
↓ 16 callers
Method
Delete
Add to mapping from A to A', specifying how many next bytes are deleted from A while not advancing in A' at all
internal/offsetmap.cc:141
↓ 14 callers
Method
data
data() may return a pointer to a buffer with embedded NULs, and the returned buffer may or may not be null terminated. Therefore it is typically a mi
internal/stringpiece.h:70
↓ 14 callers
Method
length
internal/stringpiece.h:72
↓ 13 callers
Function
SkipOneField
Skips over xxxxx_ where _ is one or more spaces/tabs Returns string::npos if no more fields
internal/cld2_do_score.cc:95
↓ 13 callers
Function
SkipOneField
Skips over xxxxx_ where _ is one or more spaces/tabs Returns string::npos if no more fields
internal/scoreutf8text.cc:92
↓ 13 callers
Method
Value
internal/tote.h:84
↓ 13 callers
Method
empty
internal/stringpiece.h:73
↓ 12 callers
Function
DetectLanguageSummaryV2
Results language3/percent3/text_bytes must be exactly three items
internal/compact_lang_det_impl.cc:1707
↓ 12 callers
Function
GetLangScore
Return score for a particular per-script language, or zero
internal/cldutil.cc:141
↓ 10 callers
Function
FindAfter
Scan forwards for case-insensitive string s in [pos..max_pos) Bytes of s must already be lowercase, i.e. in [20..3f] or [60..7f] Cheap lowercase. Cont
internal/compact_lang_det_hint_code.cc:1328
↓ 10 callers
Function
LanguageCloseSet
Returns which set of statistically-close languages lang is in. 0 means none.
internal/lang_script.cc:261
↓ 10 callers
Method
Reliability
sum lg prob
internal/tote.h:86
↓ 9 callers
Function
MakeULScr
internal/lang_script.cc:462
↓ 9 callers
Function
isDataLoaded
internal/compact_lang_det_impl.cc:105
↓ 8 callers
Method
Add
internal/tote.cc:52
↓ 8 callers
Function
GetCLDPriorLang
internal/compact_lang_det_hint_code.h:44
↓ 8 callers
Function
GetCLDPriorWeight
Reading exposed here; setting hidden in .cc
internal/compact_lang_det_hint_code.h:41
↓ 8 callers
Method
Insert
Add to mapping from A to A', specifying how many next bytes are inserted in A' while not advancing in A at all
internal/offsetmap.cc:122
↓ 8 callers
Method
Key
internal/tote.h:83
↓ 8 callers
Function
MakeLang
internal/lang_script.cc:376
↓ 8 callers
Function
writeChunk
internal/cld2_dynamic_data_extractor.cc:39
↓ 7 callers
Method
Clear
Clear the map After: next_diff_sub_ is 0 Windows are the a and a' ranges covered by diffs_[next_diff_sub_-1] which is a fake range of width 0 mapping
internal/offsetmap.cc:43
↓ 7 callers
Function
DisplayPiece
internal/getonescriptspan.cc:213
↓ 7 callers
Function
Flush
internal/cld2_do_score.cc:173
↓ 7 callers
Function
FromPerScriptNumber
internal/lang_script.cc:328
↓ 7 callers
Function
GetLangProbTxt
Debug output string of one formatted langprob Returns "en.24 fr.10 es.4"
internal/debug.cc:99
↓ 7 callers
Function
GetUTF8LetterScriptNum
Gets lscript number for letters; always returns 0 (common script) for non-letters
internal/getonescriptspan.cc:1083
↓ 7 callers
Function
LgProb2TblEntry
Return address of 8-byte entry[i]
internal/cldutil_shared.h:317
↓ 7 callers
Function
MergeCLDLangPriorsBoost
Merge in another language prior, boosting 10x if already there
internal/compact_lang_det_hint_code.cc:958
↓ 7 callers
Function
OpPart
internal/offsetmap.cc:57
↓ 7 callers
Function
UTF8OneCharLen
internal/utf8statetable.h:269
↓ 6 callers
Method
GetBufferStart
internal/getonescriptspan.h:81
↓ 6 callers
Function
InStateZero
Return true if current Tbl pointer is within state0 range Note that unsigned compare checks both ends of range simultaneously
internal/utf8statetable.cc:164
↓ 6 callers
Function
LenPart
internal/offsetmap.cc:60
↓ 6 callers
Function
QuadHashV3Lookup4
Look up 32-bit gram FP in caller-passed table Typical size 256K entries (1.5MB) Two-byte hashkey
internal/cldutil_shared.h:403
↓ 6 callers
Method
SetScore
internal/tote.h:49
↓ 5 callers
Function
EqCase
These are for ASCII-only tag names Compare one letter uplow to c, ignoring case of uplowp
internal/getonescriptspan.cc:647
↓ 5 callers
Function
FindBefore
Scan backwards for case-insensitive string s in [min_pos..pos) Bytes of s must already be lowercase, i.e. in [20..3f] or [60..7f] Cheap lowercase. Con
internal/compact_lang_det_hint_code.cc:1306
↓ 5 callers
Method
GetScore
internal/tote.h:47
↓ 5 callers
Function
MapToSmallInt
internal/scoreutf8text.cc:224
↓ 5 callers
Function
OneTest
internal/cld2_unittest.cc:193
↓ 5 callers
Function
PackCLDPriorLangWeight
internal/compact_lang_det_hint_code.cc:932
↓ 5 callers
Function
PerScriptNumber
internal/lang_script.cc:320
↓ 5 callers
Method
Reset
Reset to offset 0
internal/offsetmap.cc:94
↓ 5 callers
Method
Score
byte count
internal/tote.h:85
↓ 5 callers
Method
SetReliability
internal/tote.h:90
↓ 5 callers
Function
ULScriptCode
internal/lang_script.cc:140
↓ 5 callers
Function
WS
These are for ASCII-only tag names Return true for space \n false for \r
internal/getonescriptspan.cc:659
↓ 5 callers
Method
remove_prefix
internal/stringpiece.h:57
↓ 5 callers
Function
unloadData
internal/compact_lang_det_impl.cc:138
↓ 4 callers
Function
BytesPer1KB
internal/cld2_do_score.cc:192
↓ 4 callers
Function
DoLangTagLookup
Binary lookup on language tag
internal/compact_lang_det_hint_code.cc:1007
↓ 4 callers
Function
DumpResultChunkVector
internal/debug.cc:463
↓ 4 callers
Method
DumpWindow
internal/offsetmap.cc:248
↓ 4 callers
Function
EntityToBuffer
Src points to '&' Writes entity value to dst. Returns take(src), put(dst) byte counts
internal/getonescriptspan.cc:454
↓ 4 callers
Function
InStateZero_2
internal/utf8statetable.cc:169
↓ 4 callers
Function
IsSpecial
Returns true if character is < > or &, none of which are letters
internal/getonescriptspan.cc:471
↓ 4 callers
Method
MapBack
Map an offset in A' to the corresponding offset in A
internal/offsetmap.cc:428
↓ 4 callers
Method
MaxSize
internal/tote.h:82
↓ 4 callers
Function
MergeCLDLangPriorsMax
Merge in another language prior, taking max if already there
internal/compact_lang_det_hint_code.cc:941
↓ 4 callers
Function
SameCloseSet
internal/scoreonescriptspan.cc:44
↓ 4 callers
Function
maxint
internal/cldutil.h:74
↓ 3 callers
Function
AddLangProb
internal/scoreonescriptspan.cc:35
↓ 3 callers
Function
AddOneWhack
internal/compact_lang_det_impl.cc:1545
↓ 3 callers
Function
CountPredictedBytes
internal/compact_lang_det_impl.cc:541
↓ 3 callers
Function
CountSpaces4
Counts number of spaces; a little faster than one-at-a-time Doesn't count odd bytes at end
internal/compact_lang_det_impl.cc:586
↓ 3 callers
Function
Divisor
Avoid zdiv
internal/cld2_do_score.cc:169
↓ 3 callers
Function
DumpExtLang
internal/compact_lang_det_test.cc:97
↓ 3 callers
Function
DumpLanguages
internal/compact_lang_det_test.cc:159
↓ 3 callers
Function
FmtLP
Debug output string of one formatted pslang,qprob pair
internal/debug.cc:87
↓ 3 callers
Function
GetBackColor
internal/debug.cc:171
↓ 3 callers
Function
GetCLDLangPriorCount
internal/compact_lang_det_hint_code.h:48
↓ 3 callers
Function
GetLanguageFromName
Name can be either full name or ISO code, or can be ISO code embedded in a language-script combination such as "ABKHAZIAN", "en", "en-Latn-GB"
internal/lang_script.cc:380
↓ 3 callers
Function
GetNormalizedScore
Return internal probability score (sum) per 1024 bytes
internal/compact_lang_det_impl.cc:1269
↓ 3 callers
Function
GetTextColor
internal/debug.cc:191
↓ 3 callers
Function
IsLatnLanguage
Return true if language can be in the Latin script
internal/lang_script.cc:344
↓ 3 callers
Function
IsOthrLanguage
Return true if language can be in a non-Latin script
internal/lang_script.cc:350
↓ 3 callers
Function
LScript4
Map script into Latin, Cyrillic, Arabic, Other
internal/lang_script.cc:552
↓ 3 callers
Function
MakeLangProb
Create a langprob packed value from its parts. qprob is quantized [0..12] We use Latn script to represent any RTypeMany language
internal/cldutil.cc:610
↓ 3 callers
Function
NeqLetter
These are for ASCII-only tag names Return true for space / < > etc. all less than 0x40
internal/getonescriptspan.cc:653
↓ 3 callers
Function
OctaHashV3Lookup4
Look up 40-bit gram FP in caller-passed table Typical size 256K-4M entries (1-16MB) 24-12 bit hashkey packed with 8-20 bit indirect lang/probs keymask
internal/cldutil_shared.h:431
↓ 3 callers
Function
OctaLen
src points to a letter. Find the byte length of an octagram starting there.
internal/cldutil_shared.cc:421
↓ 3 callers
Function
ScanToPossibleLetter
src points to non-letter, such as tag-opening '<' Return length from here to next possible letter On another < before >, return 1 advances <tag> |
internal/getonescriptspan.cc:503
↓ 3 callers
Method
SetKey
internal/tote.h:87
↓ 3 callers
Function
UTF8GenericScan
Scan a UTF-8 stringpiece based on state table. Always scan complete UTF-8 characters Set number of bytes scanned. Return reason for exiting
internal/utf8statetable.cc:460
↓ 3 callers
Function
loadDataFromFile
internal/compact_lang_det_impl.cc:108
↓ 2 callers
Function
AddCloseLangWhack
internal/compact_lang_det_impl.cc:1563
↓ 2 callers
Function
BackscanToSpace
Backscan to word boundary, returning how many bytes n to go back so that src - n is non-space ans src - n - 1 is space. If not found in kMaxSpaceScan
internal/compact_lang_det_impl.cc:491
↓ 2 callers
Function
BiHashV2
BIGRAM Pick up 1..8 bytes and hash them via mask/shift/add. NO pre/post OVERSHOOTS up to 3 bytes For runtime use of tables Does X86 unaligned loads
internal/cldutil_shared.cc:107
↓ 2 callers
Function
CLD2_Debug
For showing one chunk Print debug output for one scored chunk Optionally print out per-chunk scoring information In degenerate cases, hitbuffer and cs
internal/debug.cc:275
↓ 2 callers
Function
CarefulMatch
internal/scoreutf8text.cc:161
next →
1–100 of 389, ranked by callers