MCPcopy Create free account

hub / github.com/nk2028/opencc-js / functions

Functions60 in github.com/nk2028/opencc-js

↓ 17 callersMethodconvert
()
types/core.d.ts:35
↓ 10 callersMethodaddWord
* 將一項資料加入字典樹 * @param {string} s 要匹配的字串 * @param {string} v 若匹配成功,則替換為此字串
src/main.js:37
↓ 7 callersFunctiongetAbsPath
(relativePath)
build.js:5
↓ 4 callersFunctionformatMs
(value)
benchmark/performance.mjs:37
↓ 3 callersFunctionConverterBuilder
(localePreset)
src/main.js:310
↓ 3 callersFunctionbyteLength
(text)
benchmark/performance.mjs:54
↓ 3 callersFunctiongetCodePointLength
(s, i)
src/main.js:172
↓ 3 callersMethodloadDictGroup
* 讀取多個字典資料 * @param {DictLike[]} arr 字典
src/main.js:86
↓ 2 callersFunctionConverterFactory
(...dictGroups)
src/main.js:214
↓ 2 callersFunctionflattenConfigDict
(dict, options = {})
build.js:41
↓ 2 callersFunctionflattenDictNames
(dictGroups)
build.js:33
↓ 2 callersFunctionformatNumber
(value)
benchmark/performance.mjs:50
↓ 2 callersFunctiongetDictGroupsCodeWithPrefix
(dictGroups, prefix)
build.js:143
↓ 2 callersFunctiongetUnmatchedLength
(s, i)
src/main.js:201
↓ 2 callersFunctioninner
(currentNode, langMatched)
src/main.js:387
↓ 2 callersFunctionisDictGroup
(dictGroup)
src/main.js:245
↓ 2 callersMethodloadDict
* 讀取字典資料 * @param {DictLike} d 字典
src/main.js:57
↓ 2 callersFunctionloadFile
(fileName)
build.js:125
↓ 2 callersMethodmatchPrefix
(s, i)
src/main.js:92
↓ 2 callersFunctionmeasure
(fn)
benchmark/performance.mjs:73
↓ 2 callersFunctionparseConfigStage
(stage, options)
build.js:55
↓ 2 callersFunctionparseSourceFile
(fileName)
build.js:86
↓ 2 callersFunctionprintTable
(title, columns, rows)
benchmark/performance.mjs:128
↓ 1 callersFunctionConverterFactoryWithSegmentation
(segmentationDict, ...dictGroups)
src/main.js:282
↓ 1 callersFunctionaverageOf
(runs, fn)
benchmark/performance.mjs:79
↓ 1 callersFunctionconversionRunsFor
(bytes)
benchmark/performance.mjs:115
↓ 1 callersMethodconvert
* 根據字典樹中的資料轉換字串。 * @param {string} s 要轉換的字串
src/main.js:146
↓ 1 callersFunctiondictFileToName
(fileName)
build.js:37
↓ 1 callersFunctionfirstDiffLine
(expected, actual)
test/node/golden.mjs:19
↓ 1 callersFunctionformatDiffSnippet
(expected, actual)
test/node/golden.mjs:31
↓ 1 callersFunctiongetConfigName
(from, to)
src/main.js:311
↓ 1 callersFunctiongetConverter
(config)
test/node/opencc-testcases.mjs:72
↓ 1 callersFunctiongetDictGroupsCode
(dictGroups)
build.js:139
↓ 1 callersFunctiongetDictLikeCodeWithPrefix
(dictLike, prefix)
build.js:147
↓ 1 callersFunctiongetDictPath
(fileName)
build.js:82
↓ 1 callersFunctiongetEntries
(fileName)
build.js:118
↓ 1 callersFunctiongetIdeographicDescriptionArity
(cp)
src/main.js:176
↓ 1 callersFunctiongetIdeographicDescriptionSequenceEnd
(s, i)
src/main.js:183
↓ 1 callersFunctiongetPresetCode
(cfg)
build.js:156
↓ 1 callersFunctionisDictGroupCollection
(dictGroups)
src/main.js:251
↓ 1 callersFunctionisSerializedDict
(dict)
src/main.js:237
↓ 1 callersFunctionloadConversionConfigs
()
build.js:59
↓ 1 callersFunctionmakeGeneratedInput
(iterations)
benchmark/performance.mjs:58
↓ 1 callersFunctionmeasureConversion
(runs, converter, text)
benchmark/performance.mjs:99
↓ 1 callersFunctionmedian
(values)
benchmark/performance.mjs:90
↓ 1 callersFunctionnormalizeConverterFactoryDictGroups
(dictGroups)
src/main.js:255
↓ 1 callersFunctionnormalizeDictGroups
(dictGroup)
src/main.js:324
↓ 1 callersFunctionparseTestcases
(source, filename)
test/node/opencc-testcases.mjs:13
↓ 1 callersFunctionpresetIncludesConfig
(config)
build.js:165
↓ 1 callersFunctionreadLongText
()
benchmark/performance.mjs:66
↓ 1 callersFunctionreverseEntries
(entries)
build.js:103
↓ 1 callersMethodsegment
(s)
src/main.js:117
FunctionCustomConverter
(dict)
src/main.js:370
FunctionHTMLConverter
(converter, rootNode, fromLangTag, toLangTag)
src/main.js:382
Methodconstructor
()
src/main.js:28
Functionconvert
* The converter that performs the conversion. * @param {string} s The string to be converted. * @returns {string} The converted string.
src/main.js:225
FunctionisDictLike
(dict)
src/main.js:241
FunctionisDictPair
(entry)
src/main.js:233
Functionrestore
* Restore the page to the state before the conversion.
src/main.js:461
Methodrestore
()
types/core.d.ts:36