Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dachev/node-cld
/ functions
Functions
252 in github.com/dachev/node-cld
⨍
Functions
252
◇
Types & classes
121
↓ 1 callers
Function
strto64
For now, long long is 64-bit on all the platforms we care about, so these functions can simply pass the call to strto[u]ll.
chromium/base/strtoint.h:62
Function
ANNOTATE_UNPROTECTED_READ
chromium/base/dynamic_annotations.h:328
Method
Add
chromium/encodings/compact_lang_det/subsetsequence.cc:160
Method
AddClosePair
chromium/encodings/compact_lang_det/tote.h:55
Function
BackOneUTF8
Back up one UTF-8 character
chromium/encodings/compact_lang_det/compact_lang_det_impl.cc:1578
Method
BiHashV25
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
chromium/encodings/compact_lang_det/cldutil.cc:94
Method
CheapSqueezeInplace
Remove portions of text that have a high density of spaces, or that are overly repetitive, squeezing the remaining text in-place to the front of the i
chromium/encodings/compact_lang_det/compact_lang_det_impl.cc:969
Function
CheckNotNull
chromium/base/logging.h:1073
Method
CheckOpString
chromium/base/logging.h:426
Method
Cld
src/cld.h:14
Method
CrashReason
chromium/base/crash.h:13
Method
DemoteNotTop40
Demote all languages except Top40 and plus_one Do this just before sorting chunk_tote results
chromium/encodings/compact_lang_det/cldutil.cc:897
Method
Detect
src/cld.cc:131
Method
DetectLanguage
chromium/encodings/compact_lang_det/compact_lang_det.cc:14
Function
DetectLanguageOfUnicodeText
Detects a language of the UTF-16 encoded zero-terminated text. Returns: Language enum.
chromium/encodings/compact_lang_det/win/cld_unicodetext.cc:38
Method
DetectLanguageSummaryV25
Result vector must be exactly three items
chromium/encodings/compact_lang_det/compact_lang_det_impl.cc:2090
Method
DetectLanguageVersion
Return version text string String is "code_version - data_scrape_date"
chromium/encodings/compact_lang_det/compact_lang_det.cc:59
Method
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
chromium/encodings/compact_lang_det/cldutil.cc:504
Method
DoCarries
chromium/encodings/compact_lang_det/subsetsequence.cc:129
Method
DoOctaScoreV3
OCTAGRAM, using hash table, always advancing by 1 word Caller supplies table, such as &kLongWord8Table_obj Score all words in isrc, using languages th
chromium/encodings/compact_lang_det/cldutil.cc:678
Method
DoQuadScoreV3
QUADGRAM, using hash table, advancing by 2/4/8/16 chars Caller supplies table, such as &kQuadTable_obj or &kGibberishTable_obj Score up to n quadgrams
chromium/encodings/compact_lang_det/cldutil.cc:562
Method
DoUniScoreV3
UNIGRAM, using UTF-8 property table, advancing by 1/2/4/8 chars Caller supplies table, such as compact_lang_det_generated_ctjkvz_b1_obj Score up to n
chromium/encodings/compact_lang_det/cldutil.cc:425
Method
Dump
chromium/encodings/compact_lang_det/tote.cc:128
Function
DumpInts
chromium/encodings/compact_lang_det/subsetsequence.cc:52
Function
DumpUint8s
chromium/encodings/compact_lang_det/subsetsequence.cc:60
Function
EntityToBuffer
Src points to '&' Writes entity value to dst. Returns take(src), put(dst) byte counts
chromium/encodings/compact_lang_det/win/cld_htmlutils_windows.cc:9
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
chromium/encodings/compact_lang_det/ext_lang_enc.cc:257
Method
Extract
Extract representative pattern of exactly N values into dst[0..n-1] This routine may be called multiple times, but it may downsample as a side effect,
chromium/encodings/compact_lang_det/subsetsequence.cc:198
Function
FlagHint
chromium/encodings/compact_lang_det/compact_lang_det_impl.cc:748
Function
FlagShort
chromium/encodings/compact_lang_det/compact_lang_det_impl.cc:747
Method
Flush
Collapse tail end by simple median across disparate-weight values, dropping or duplicating last value if need be. This routine is idempotent.
chromium/encodings/compact_lang_det/subsetsequence.cc:175
Method
GetClosePair
chromium/encodings/compact_lang_det/tote.h:64
Method
GetIncrCount
chromium/encodings/compact_lang_det/tote.h:63
Function
GetLScriptFromNumberOrName
Convert "en-Latn-GB" to ULScript_Latin
chromium/encodings/compact_lang_det/ext_lang_enc.cc:497
Function
GetLanguageFromNumberOrName
Convert "en-Latn-GB" to ENGLISH Normalize to PORTUGUESE, not PORTUGUESE_B nor PORTUGUESE_P Consider for later: NORWEGIAN, NORWEGIAN_N Consider for lat
chromium/encodings/compact_lang_det/ext_lang_enc.cc:289
Method
GetNormalizedScore
Calculate ratio of score per 1KB vs. expected score per 1KB
chromium/encodings/compact_lang_det/cldutil.cc:812
Method
GetOneScriptSpan
Copy next run of same-script non-tag letters to buffer [NUL terminated] Buffer has leading space and all text is lowercased
chromium/encodings/compact_lang_det/getonescriptspan.cc:346
Method
GetReliability
Calculate reliablity of len bytes of script lscript with chunk_tote
chromium/encodings/compact_lang_det/cldutil.cc:839
Method
GetUTF8LetterScriptNum
Gets lscript number for letters; always returns 0 (common script) for non-letters
chromium/encodings/compact_lang_det/getonescriptspan.cc:566
Method
Init
src/cld.cc:14
Method
Init
chromium/encodings/compact_lang_det/subsetsequence.cc:79
Function
IsContinuationByte
chromium/encodings/compact_lang_det/getonescriptspan.h:30
Function
IsUTF8ContinueByte
Useful single-byte tests
chromium/encodings/compact_lang_det/cldutil.h:1192
Function
IsUTF8HighByte
chromium/encodings/compact_lang_det/cldutil.h:1194
Method
Key
chromium/encodings/compact_lang_det/tote.h:66
Function
LanguageCodeISO639_1
chromium/languages/internal/languages.cc:253
Function
LanguageCodeISO639_2
chromium/languages/internal/languages.cc:261
Function
LanguageCodeWithDialects
chromium/languages/internal/languages.cc:269
Function
LgProb5
Return one of five probabilities in an entry CURRENTLY UNUSED
chromium/encodings/compact_lang_det/cldutil.h:991
Function
LogAtLevel
A non-macro interface to the log facility; (useful when the logging level is not a compile-time constant).
chromium/base/logging.h:1060
Method
LogMessageData
chromium/base/logging.h:994
Method
LogMessageVoidify
chromium/base/logging.h:1132
Method
LogStream
chromium/base/logging.h:876
Method
LowerScriptSpan
Force Latin, Cyrillic, Greek scripts to be lowercase
chromium/encodings/compact_lang_det/getonescriptspan.cc:535
Function
MakeCheckOpString
chromium/base/logging.h:454
Method
MaxSize
chromium/encodings/compact_lang_det/tote.h:65
Method
Median3
Return median of seq_[sub] .. seq_[sub+2], favoring middle element
chromium/encodings/compact_lang_det/subsetsequence.cc:69
Function
MyExtLanguageCode
Returns "0" for too small
chromium/encodings/compact_lang_det/cldutil.h:968
Method
NewLevel
Compress level k by 3x, creating level k+1
chromium/encodings/compact_lang_det/subsetsequence.cc:95
Method
NormalizationAPI
Creates fully initialized NormalizationAPI object. Loads DLL and binds all referenced functions.
chromium/encodings/compact_lang_det/win/normalizedunicodetext.cc:33
Method
Normalize
chromium/encodings/compact_lang_det/win/normalizedunicodetext.cc:86
Function
NormalizeLanguage
Merge together some languages, such as bo/hr/sr Croatian Latin and Serbian Cyrillic now.
chromium/encodings/compact_lang_det/ext_lang_enc.cc:536
Method
NormalizedUnicodeText
chromium/encodings/compact_lang_det/win/normalizedunicodetext.cc:81
Method
NullStream
Initialize the LogStream so the messages can be written somewhere (they'll never be actually displayed). This will be needed if a NullStream& is impli
chromium/base/logging.h:1372
Method
NullStreamFatal
chromium/base/logging.h:1397
Method
OctaHash40
OCTAGRAM wrapper with surrounding spaces Pick up 1..24 bytes plus pre/post space and hash them via mask/shift/add UNDERSHOOTS 1 byte, OVERSHOOTS up to
chromium/encodings/compact_lang_det/cldutil.cc:339
Method
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
chromium/encodings/compact_lang_det/cldutil.cc:357
Function
OneCharLen
chromium/encodings/compact_lang_det/win/cld_unilib_google3.cc:14
Function
PrintTopLang
chromium/encodings/compact_lang_det/compact_lang_det_impl.cc:1461
Method
ProcessProbV25Tote
BIGRAM, QUADGRAM, OCTAGRAM score one => tote Input: 4-byte entry of 3 language numbers and one probability subscript, plus an accumulator tote. (langu
chromium/encodings/compact_lang_det/cldutil.cc:402
Method
ProcessProbV25UniTote
UNIGRAM score one => tote Input: 1-byte entry of subscript into unigram probs, plus an accumulator tote. Output: running sums in tote updated
chromium/encodings/compact_lang_det/cldutil.cc:387
Method
QuadHashV25
QUADGRAM wrapper with surrounding spaces Pick up 1..12 bytes plus pre/post space and hash them via mask/shift/add UNDERSHOOTS 1 byte, OVERSHOOTS up to
chromium/encodings/compact_lang_det/cldutil.cc:184
Method
QuadHashV25Underscore
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
chromium/encodings/compact_lang_det/cldutil.cc:198
Method
ReliabilityDelta
Return reliablity of result 0..100 for top two scores delta==0 is 0% reliable, delta==fully_reliable_thresh is 100% reliable (on a scale where +1 is a
chromium/encodings/compact_lang_det/cldutil.cc:765
Method
ReliabilityMainstream
Return reliablity of result 0..100 for top score vs. mainsteam score Values are score per 1024 bytes of input ratio = max(top/mainstream, mainstream/t
chromium/encodings/compact_lang_det/cldutil.cc:790
Method
ScriptScanner
chromium/encodings/compact_lang_det/getonescriptspan.cc:263
Method
SetGramCount
chromium/encodings/compact_lang_det/tote.h:30
Method
SetIncrCount
chromium/encodings/compact_lang_det/tote.h:31
Method
SetKey
chromium/encodings/compact_lang_det/tote.h:70
Method
SetScore
chromium/encodings/compact_lang_det/tote.h:72
Method
SetValue
chromium/encodings/compact_lang_det/tote.h:71
Function
Site
Construct a logging site from a logging level and epoch.
chromium/base/vlog_is_on.h:115
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
chromium/encodings/compact_lang_det/getonescriptspan.cc:286
Method
SubsetSequence
chromium/encodings/compact_lang_det/subsetsequence.h:19
Function
TEST_F
chromium/encodings/compact_lang_det/compact_lang_det_unittest_small.cc:141
Method
TestCompactLangDetPlain
Detect language of plaintext src
chromium/encodings/compact_lang_det/compact_lang_det_unittest_small.cc:110
Method
TestExtCompactLangDetPlain
Detect extended language of plaintext src
chromium/encodings/compact_lang_det/compact_lang_det_unittest_small.cc:122
Method
Tote
Take a set of <key, value> pairs and tote them up. After explicitly sorting, retrieve top key, value pairs
chromium/encodings/compact_lang_det/tote.cc:13
Method
ToteWithReliability
Take a set of <key, value> pairs and tote them up. After explicitly sorting, retrieve top key, value pairs
chromium/encodings/compact_lang_det/tote.cc:142
Method
TryToNormalizeText
chromium/encodings/compact_lang_det/win/normalizedunicodetext.cc:94
Function
UTF8GenericScan
chromium/encodings/compact_lang_det/win/cld_utf8utils_google3.cc:13
Function
UTF8GenericScan
chromium/encodings/compact_lang_det/win/cld_utf8utils_windows.cc:11
Function
UnicodeLScriptName
chromium/encodings/compact_lang_det/letterscript_enum.cc:108
Function
VLogEnabled
Determine whether verbose logging should occur at a given log site. TODO(llansing): Find a way to eliminate FLAGS_silent_init from this function whil
chromium/base/vlog_is_on.h:131
Method
Value
chromium/encodings/compact_lang_det/tote.h:67
Function
atoi32
Although it returns an int, atoi() is implemented in terms of strtol, and so has differing overflow and underflow behavior. atol is the same.
chromium/base/strtoint.h:76
Function
atoi64
chromium/base/strtoint.h:80
Function
bit_cast
chromium/base/casts.h:146
Function
bit_cast
chromium/base/basictypes.h:320
Function
copy_n
chromium/base/stl_decl_msvc.h:34
← previous
next →
101–200 of 252, ranked by callers