Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Bowen7/regex-vis
/ functions
Functions
215 in github.com/Bowen7/regex-vis
⨍
Functions
215
◇
Types & classes
10
↓ 39 callers
Function
cn
(...inputs: ClassValue[])
src/utils.ts:4
↓ 30 callers
Function
parse
(regex: string, options: Options = {})
src/parser/parse.ts:4
↓ 16 callers
Function
gen
( ast: AST.Regex | AST.Node[], { escapeBackslash, literal }: Options = {}, )
src/parser/gen.ts:249
↓ 16 callers
Method
id
()
src/parser/parser.ts:49
↓ 12 callers
Method
advance
(size: number)
src/parser/lexer.ts:178
↓ 11 callers
Function
updateContent
(ast: AST.Regex, id: string, content: AST.Content)
src/parser/modifiers/content.ts:5
↓ 8 callers
Function
getNodeById
( ast: AST.Regex, id: string, )
src/parser/visit.ts:112
↓ 8 callers
Function
measureNodeText
(texts: string[] | string)
src/modules/graph/measure.ts:87
↓ 8 callers
Function
replaceFromLists
( nodeList: AST.Node[], oldNodes: AST.Node[], newNodes: AST.Node[], )
src/parser/modifiers/replace.ts:3
↓ 7 callers
Function
onChange
(value: string | string[])
src/modules/editor/features/content/back-ref.tsx:30
↓ 7 callers
Method
readByRegex
(r: RegExp)
src/parser/lexer.ts:134
↓ 6 callers
Function
getNodesByIds
( ast: AST.Regex, ids: string[], )
src/parser/visit.ts:144
↓ 6 callers
Method
parseQuantifier
()
src/parser/parser.ts:222
↓ 6 callers
Function
removeBackslash
(str: string)
src/parser/backslash.ts:6
↓ 5 callers
Function
dispatch
(action: Action)
src/components/ui/use-toast.ts:134
↓ 5 callers
Function
measureText
(text: string, fontSize: number, fontFamily = REGEX_FONT_FAMILY)
src/modules/graph/measure.ts:57
↓ 5 callers
Function
toast
({ ...props }: Toast)
src/components/ui/use-toast.ts:143
↓ 5 callers
Function
visit
( node: AST.Regex | AST.Node, callback: ( node: AST.Node, nodeList: AST.Node[], index: number,
src/parser/visit.ts:3
↓ 4 callers
Function
_callback
( node: AST.Node, nodeList: AST.Node[], index: number, parent: AST.ParentNode, )
src/parser/visit.ts:13
↓ 4 callers
Method
genNodes
(nodes: AST.Node[])
src/parser/gen.ts:65
↓ 4 callers
Method
readTarget
(target: string)
src/parser/lexer.ts:115
↓ 4 callers
Function
renderClassCharacter
(value: string, t: TFunction)
src/modules/graph/text.tsx:50
↓ 4 callers
Method
token
(type: TokenType, size = 1)
src/parser/lexer.ts:52
↓ 4 callers
Function
updateQuantifier
( ast: AST.Regex, selectedId: string, quantifier: AST.Quantifier | null, )
src/parser/modifiers/quantifier.ts:7
↓ 4 callers
Function
useToast
()
src/components/ui/use-toast.ts:173
↓ 3 callers
Function
checkQuantifier
(node: AST.Node)
src/parser/utils.ts:6
↓ 3 callers
Function
largerWithMinSize
(size: [number, number])
src/modules/graph/measure.ts:199
↓ 3 callers
Function
measureNodes
(nodes: AST.Node[], sizeMap: Map<AST.Node | AST.Node[], NodeSize>)
src/modules/graph/ast-graph.tsx:35
↓ 3 callers
Method
parseNodes
()
src/parser/parser.ts:53
↓ 3 callers
Function
saveCases
(cases: Case[])
src/modules/editor/test-tab.tsx:39
↓ 3 callers
Function
tryCharacterClassText
(key: string)
src/modules/graph/utils.ts:43
↓ 3 callers
Function
updateGroup
( ast: AST.Regex, selectedIds: string[], group: AST.Group | null, )
src/parser/modifiers/group.ts:12
↓ 3 callers
Function
useSize
( node: AST.Node | AST.Node[], sizeMap: Map<AST.Node | AST.Node[], NodeSize>, )
src/modules/graph/utils.ts:71
↓ 3 callers
Function
visitNodes
( node: AST.Regex | AST.Node, callback: (id: string, index: number, nodes: AST.Node[]) => void | boolean,
src/parser/visit.ts:63
↓ 2 callers
Function
addToRemoveQueue
(toastId: string)
src/components/ui/use-toast.ts:59
↓ 2 callers
Method
gen
()
src/parser/gen.ts:46
↓ 2 callers
Function
genInitialNodesInfo
()
src/modules/editor/utils.ts:16
↓ 2 callers
Function
genPermalink
(tests: string[] = [])
src/utils/helpers/index.ts:1
↓ 2 callers
Function
getBoxSize
(node: AST.Node, contentSize: [number, number])
src/modules/graph/measure.ts:191
↓ 2 callers
Function
getNameText
(node: AST.Node, t: TFunction)
src/modules/graph/utils.ts:16
↓ 2 callers
Function
getQuantifier
(node: AST.Node)
src/parser/utils.ts:3
↓ 2 callers
Function
getQuantifierText
(quantifier: AST.Quantifier)
src/modules/graph/utils.ts:76
↓ 2 callers
Function
groupSelected
( ast: AST.Regex, selectedIds: string[], group: AST.Group, )
src/parser/modifiers/group.ts:37
↓ 2 callers
Function
handleGroupChange
(kind: AST.GroupKind, name = '')
src/modules/editor/features/group/index.tsx:40
↓ 2 callers
Function
lrd
( node: AST.Regex | AST.Node, callback: (node: AST.Regex | AST.Node) => void, )
src/parser/visit.ts:162
↓ 2 callers
Function
onAdd
(range: Omit<AST.Range, 'id'>)
src/modules/editor/features/content/ranges.tsx:64
↓ 2 callers
Method
parse
()
src/parser/parser.ts:32
↓ 2 callers
Method
readBackslash
(range = false)
src/parser/lexer.ts:60
↓ 2 callers
Function
removeFromList
(nodeList: AST.Node[], ids: string[])
src/parser/modifiers/remove.ts:43
↓ 2 callers
Function
renderNodes
(reactNodes)
tests/__mocks__/react-i18next.js:10
↓ 2 callers
Function
renderString
(value: string)
src/modules/graph/text.tsx:34
↓ 2 callers
Function
updateFlags
(ast: AST.Regex, flags: string[])
src/parser/modifiers/flags.ts:3
↓ 2 callers
Function
useCurrentState
( initialState: S | (() => S), )
src/utils/hooks/use-current-state.ts:40
↓ 2 callers
Function
useFocus
(options: FocusOptions = {})
src/utils/hooks/use-focus.ts:7
↓ 2 callers
Function
useLatest
(value: T)
src/utils/hooks/use-latest.ts:3
↓ 1 callers
Function
_visit
(node: AST.Regex | AST.Node)
src/parser/visit.ts:25
↓ 1 callers
Function
_visitNodes
(node: AST.Regex | AST.Node)
src/parser/visit.ts:75
↓ 1 callers
Function
disableTransition
()
src/components/theme-provider/index.tsx:25
↓ 1 callers
Function
dismiss
()
src/components/ui/use-toast.ts:151
↓ 1 callers
Method
genBackReference
(node: AST.BackReferenceNode)
src/parser/gen.ts:239
↓ 1 callers
Method
genBoundaryAssertionNode
( node: | AST.BeginningBoundaryAssertionNode | AST.EndBoundaryAssertionNode | AST.WordBo
src/parser/gen.ts:211
↓ 1 callers
Method
genCharacter
(node: AST.CharacterNode)
src/parser/gen.ts:135
↓ 1 callers
Method
genChoice
(node: AST.ChoiceNode)
src/parser/gen.ts:97
↓ 1 callers
Function
genChoiceNode
()
src/parser/modifiers/insert.ts:18
↓ 1 callers
Method
genFlags
()
src/parser/gen.ts:59
↓ 1 callers
Method
genGroup
(node: AST.GroupNode)
src/parser/gen.ts:107
↓ 1 callers
Function
genId
()
src/components/ui/use-toast.ts:28
↓ 1 callers
Method
genLookAroundAssertionNode
(node: AST.LookAroundAssertionNode)
src/parser/gen.ts:232
↓ 1 callers
Function
genNode
()
src/parser/modifiers/insert.ts:8
↓ 1 callers
Method
genNode
(node: AST.Node)
src/parser/gen.ts:69
↓ 1 callers
Method
genQuantifier
(node: AST.CharacterNode | AST.GroupNode | AST.BackReferenceNode)
src/parser/gen.ts:178
↓ 1 callers
Function
genWithSelected
(ast: AST.Regex, selectedIds: string[])
src/parser/gen-with-selected.ts:28
↓ 1 callers
Function
getBackReferenceText
( node: AST.BackReferenceNode, t: TFunction, )
src/modules/graph/utils.ts:38
↓ 1 callers
Function
getBoundaryAssertionText
( node: | AST.BeginningBoundaryAssertionNode | AST.EndBoundaryAssertionNode | AST.WordBoundaryAs
src/modules/graph/utils.ts:53
↓ 1 callers
Function
getChildren
(node)
tests/__mocks__/react-i18next.js:7
↓ 1 callers
Function
getContentInfo
(nodes: AST.Node[])
src/modules/editor/utils.ts:42
↓ 1 callers
Function
getGroupInfo
(nodes: AST.Node[])
src/modules/editor/utils.ts:28
↓ 1 callers
Function
getIdFromNodes
(nodes: AST.Node[])
src/modules/editor/utils.ts:91
↓ 1 callers
Function
getInfoFromNodes
(ast: AST.Regex, nodes: AST.Node[])
src/modules/editor/utils.ts:98
↓ 1 callers
Function
getLookAroundInfo
( nodes: AST.Node[], )
src/modules/editor/utils.ts:78
↓ 1 callers
Function
getQuantifierInfo
( nodes: AST.Node[], )
src/modules/editor/utils.ts:66
↓ 1 callers
Function
handleChange
(value: string, index: number)
src/modules/editor/test-tab.tsx:50
↓ 1 callers
Function
handleInsert
(direction: InsertDirection)
src/modules/editor/features/insert/index.tsx:86
↓ 1 callers
Function
handleRemove
(index: number)
src/modules/editor/test-tab.tsx:58
↓ 1 callers
Function
handleWrapGroup
(kind: string)
src/modules/editor/features/insert/index.tsx:88
↓ 1 callers
Function
handleWrapLookAroundAssertion
(kind: string)
src/modules/editor/features/insert/index.tsx:106
↓ 1 callers
Function
hasChildren
(node)
tests/__mocks__/react-i18next.js:4
↓ 1 callers
Function
insertAroundSelected
( ast: AST.Regex, selectedIds: string[], direction: InsertDirection, )
src/parser/modifiers/insert.ts:26
↓ 1 callers
Function
isMdnLinkKey
(key: string)
src/utils/links/index.tsx:19
↓ 1 callers
Function
lookAroundAssertionSelected
( ast: AST.Regex, selectedIds: string[], kind: 'lookahead' | 'lookbehind', )
src/parser/modifiers/lookaround.ts:29
↓ 1 callers
Function
makeChoiceValid
(ast: AST.Regex)
src/parser/modifiers/choice.ts:17
↓ 1 callers
Function
measureBranches
(branches: AST.Node[][], currentSizeMap: Map<AST.Node | AST.Node[], NodeSize>, nextSizeMap: Map<AST.Node | AST
src/modules/graph/ast-graph.tsx:47
↓ 1 callers
Function
measureCharacter
(node: AST.CharacterNode)
src/modules/graph/measure.ts:154
↓ 1 callers
Function
measureNodeName
(node: AST.Node | AST.Regex)
src/modules/graph/measure.ts:241
↓ 1 callers
Function
measureQuantifier
(node: AST.Node)
src/modules/graph/measure.ts:69
↓ 1 callers
Function
measureRanges
(ranges: AST.Range[])
src/modules/graph/measure.ts:106
↓ 1 callers
Function
measureSimpleNode
(node: | AST.CharacterNode | AST.BackReferenceNode | AST.BeginningBoundaryAssertionNode | AST.EndBound
src/modules/graph/measure.ts:206
↓ 1 callers
Function
measureTexts
(texts: string[])
src/modules/graph/measure.ts:83
↓ 1 callers
Function
nonCapturingGroupIt
(nodeList: AST.Node[], node: AST.ChoiceNode)
src/parser/modifiers/choice.ts:6
↓ 1 callers
Function
onRangeChange
(index: number, range: AST.Range)
src/modules/editor/features/content/ranges.tsx:73
next →
1–100 of 215, ranked by callers