Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Genivia/ugrep
/ functions
Functions
1,386 in github.com/Genivia/ugrep
⨍
Functions
1,386
◇
Types & classes
177
↓ 1 callers
Function
expand_list
lib/convert.cpp:415
↓ 1 callers
Method
extract
extract a part from an archive and send to a stream, used by the TUI
src/ugrep.cpp:13582
↓ 1 callers
Method
file_get
lib/input.cpp:752
↓ 1 callers
Method
find_accepting
include/reflex/pattern.h:895
↓ 1 callers
Method
find_text_preview
search input after lineno to populate a string vector with the matching line and lines after up to max lines. used by the TUI
src/ugrep.cpp:13498
↓ 1 callers
Method
finish
release output access in ORDERED mode, otherwise do nothing
src/output.hpp:147
↓ 1 callers
Method
first_empty
return true if the first ALT-list term is an empty pattern
src/cnf.hpp:102
↓ 1 callers
Method
format_invert
output formatted match with options -v --format
src/output.cpp:1525
↓ 1 callers
Method
get
next 7zip file to decompress and get its ZipInfo, return 0 if OK, if none return 1 or -1 on error
src/zstream.hpp:154
↓ 1 callers
Method
get
Read character sequences via a Flex-compatible virtual FlexLexer::LexerInput method.
include/reflex/flexlexer.h:438
↓ 1 callers
Function
get_HW
simd.h get_HW()
lib/simd.cpp:44
↓ 1 callers
Method
good
Check if input is available.
include/reflex/input.h:600
↓ 1 callers
Method
handle
Invoke handler explicitly (externally) with zero shift distance.
include/reflex/absmatcher.h:491
↓ 1 callers
Method
has_hfa
include/reflex/pattern.h:1226
↓ 1 callers
Method
hashes
Get the total number of indexing hash tables constructed for the optional HFA.
include/reflex/pattern.h:344
↓ 1 callers
Function
hex_escape
lib/convert.cpp:237
↓ 1 callers
Method
hold
hold the output and do not flush, buffer all output until further notice
src/output.hpp:751
↓ 1 callers
Function
import_globs
read globs from a file and split them into files or dirs to include or exclude by pushing them onto the vectors
src/ugrep-indexer.cpp:1070
↓ 1 callers
Method
in
wait until key press and return VKey::xxx code, time out after timeout ms
src/vkey.cpp:176
↓ 1 callers
Method
incomplete
hex line is incomplete: to complete invoke done()
src/output.hpp:264
↓ 1 callers
Function
indexer
recursively index files
src/ugrep-indexer.cpp:1440
↓ 1 callers
Method
input
Returns the next 8-bit character (unsigned char 0..255 or EOF) from the input character sequence, while preserving the current text() match (but point
include/reflex/absmatcher.h:1026
↓ 1 callers
Function
insert_escape
lib/convert.cpp:612
↓ 1 callers
Function
insert_posix_class
lib/convert.cpp:768
↓ 1 callers
Function
is_7z
return true if pathname has a 7z filename extension
src/zstream.hpp:1109
↓ 1 callers
Function
is_binary
return true if s[0..n-1] contains a \0 (NUL) or a non-displayable invalid UTF-8 sequence
src/ugrep-indexer.cpp:782
↓ 1 callers
Function
is_br
return true if pathname has a br filename extension
src/zstream.hpp:1085
↓ 1 callers
Function
is_bz
return true if pathname has a (tar) bzlib2 filename extension
src/zstream.hpp:1061
↓ 1 callers
Function
is_bz3
return true if pathname has a bz3 filename extension
src/zstream.hpp:1091
↓ 1 callers
Function
is_lz4
return true if pathname has a lz4 filename extension
src/zstream.hpp:1073
↓ 1 callers
Function
is_rar
return true if pathname has a RAR filename extension
src/zstream.hpp:1115
↓ 1 callers
Method
is_set
src/query.hpp:103
↓ 1 callers
Function
is_xz
return true if pathname has a (tar) xz/lzma filename extension
src/zstream.hpp:1067
↓ 1 callers
Function
is_zstd
return true if pathname has a (tar) zstd filename extension
src/zstream.hpp:1079
↓ 1 callers
Method
lazy
include/reflex/pattern.h:671
↓ 1 callers
Method
lineno_end
Returns the ending line number of matched text.
include/reflex/abslexer.h:353
↓ 1 callers
Function
load_config
load .ugrep-indexer config file when present in the working or home directory
src/ugrep-indexer.cpp:1991
↓ 1 callers
Method
matcher_clone
clone the pattern matcher - the caller is responsible to deallocate the returned matcher
src/ugrep.cpp:4166
↓ 1 callers
Method
matchers_clone
clone the CNF of AND/OR/NOT matchers - the caller is responsible to deallocate the returned list of matchers if not NULL
src/ugrep.cpp:4172
↓ 1 callers
Method
move_job
move a stolen job to this worker, maintaining job slot order
src/ugrep.cpp:2238
↓ 1 callers
Function
negate_list
lib/convert.cpp:936
↓ 1 callers
Method
new_term
add a new ALT-list term to CNF AND-list
src/cnf.hpp:108
↓ 1 callers
Function
nlcount
lib/simd.cpp:62
↓ 1 callers
Method
nodes
Get the number of finite state machine nodes (vertices).
include/reflex/pattern.h:326
↓ 1 callers
Method
nodes_time
Get elapsed DFA vertices construction time.
include/reflex/pattern.h:356
↓ 1 callers
Method
open_next
open pipe to the next file or part in the archive or return NULL, this function is called by the main thread or by the previous decompression thread
src/zthread.hpp:233
↓ 1 callers
Method
operator<
Returns true if the bit vector is lexicographically less than the given right-hand side bits.
include/reflex/bits.h:408
↓ 1 callers
Method
operator<
True if this range set is lexicographically less than range set rs.
include/reflex/ranges.h:430
↓ 1 callers
Method
output_before_context
output the before context
src/ugrep.cpp:2738
↓ 1 callers
Method
parse1
<parse1> -> <parse2> { <space>+ [ 'AND' <space>+ ] <parse2> }
src/cnf.cpp:49
↓ 1 callers
Method
parse2
<parse2> -> <parse3> { [ '|'+ | 'OR' <space>+ ] <parse3> }
src/cnf.cpp:72
↓ 1 callers
Method
parse3
<parse3> -> [ '-' <space>* | 'NOT' <space>+ ] <parse4> <parse4> -> '(' <parse1> ')' | <pattern> Note: '(' <parse1> ')' is parsed only when not (?...)
src/cnf.cpp:84
↓ 1 callers
Method
parse_time
Get elapsed regex parsing and analysis time.
include/reflex/pattern.h:350
↓ 1 callers
Function
pipe_inherit
POSIX pipe() emulation with inherited pipe handles for child processes (Windows specific)
src/ugrep.hpp:130
↓ 1 callers
Method
prune
prune empty ALT terms and ALT terms with empty patterns that match anything
src/cnf.cpp:542
↓ 1 callers
Method
ptr_matcher
Returns a pointer to the current matcher, NULL if none was set.
include/reflex/abslexer.h:238
↓ 1 callers
Method
release
flush output and release sync slot, if one was assigned with sync_on()
src/output.hpp:802
↓ 1 callers
Method
report
report the CNF in readable form
src/cnf.cpp:612
↓ 1 callers
Function
save_config
save a configuration file after loading it first when present
src/ugrep.cpp:5020
↓ 1 callers
Method
save_restline
save the rest of the line to a string buffer to output later, may self-assign, so swap with a temp string
src/ugrep.cpp:4091
↓ 1 callers
Method
set_after_lineno
set the after context to the current line + 1
src/ugrep.cpp:2818
↓ 1 callers
Function
set_blocking
make a pipe block
src/query.cpp:97
↓ 1 callers
Method
set_reserve
Set reserved bytes for buffer shifting
include/reflex/absmatcher.h:497
↓ 1 callers
Function
simd_isutf8_avx2
Check if valid UTF-8 encoding and does not include a NUL, but pass surrogates and 3/4 byte overlongs
lib/simd_avx2.cpp:82
↓ 1 callers
Function
simd_nlcount_avx512bw
Partially count newlines in string b up to e, updates b close to e with uncounted part
lib/simd_avx512bw.cpp:48
↓ 1 callers
Method
size
Returns the matched text size in number of bytes.
include/reflex/abslexer.h:324
↓ 1 callers
Method
split
split the patterns at \n and \r newlines, when present
src/cnf.cpp:563
↓ 1 callers
Method
steal
job stealing on behalf of a worker from a co-worker with at least --min-steal jobs still to do
src/ugrep.cpp:4377
↓ 1 callers
Method
steal_job
steal a job from this worker, if at least --min-steal jobs to do, returns true if successful
src/ugrep.cpp:2216
↓ 1 callers
Method
stop
submit Job::NONE sentinel to stop this worker
src/ugrep.cpp:4269
↓ 1 callers
Method
str
Returns the pattern match as a string, a copy of text(), may include pattern-matched \0s.
include/reflex/abslexer.h:300
↓ 1 callers
Function
strncasecmp
POSIX strncasecmp
src/ugrep.hpp:109
↓ 1 callers
Function
strtonum
convert unsigned decimal to non-negative size_t, produce error when conversion fails
src/ugrep-indexer.cpp:763
↓ 1 callers
Function
strtopos
convert unsigned decimal to positive size_t, produce error when conversion fails or when the value is zero
src/ugrep-indexer.cpp:773
↓ 1 callers
Method
submit_job
submit Job::NONE sentinel to this worker
src/ugrep.cpp:4251
↓ 1 callers
Method
tabs
Set tab size 1, 2, 4, or 8
include/reflex/absmatcher.h:1476
↓ 1 callers
Function
terminal
check TTY info and set colors
src/ugrep.cpp:7530
↓ 1 callers
Method
try_flush
try to flush if we do not have to wait to acquire the output lock
src/output.hpp:737
↓ 1 callers
Function
ugrep_extract
extract a part from an archive and send to a stream, used by the TUI
src/ugrep.cpp:9192
↓ 1 callers
Function
ugrep_find_text_preview
perform a limited ugrep search on a single file with optional archive part and store up to num results in a vector, may throw an exception, used by th
src/ugrep.cpp:9168
↓ 1 callers
Function
utf16_to_utf8
convert UTF-16 string to UTF-8 string buffer utf8[] of max size */
lzma/C/viizip.c:79
↓ 1 callers
Function
utf8_encode
convert a wide Unicode string to an UTF-8 string
src/ugrep-indexer.cpp:88
↓ 1 callers
Function
utf8skipn
UTF-8 multibyte string of length n advance k UTF-8-encoded characters
src/ugrep.hpp:379
↓ 1 callers
Function
viidec
decompress up to len bytes into buf[], return number of bytes decompressed or -1 on error */
lzma/C/viizip.c:338
↓ 1 callers
Function
viinum
get number of archived files and directories */
lzma/C/viizip.c:261
↓ 1 callers
Function
warning
display a warning message unless option -s (--no-messages)
src/ugrep-indexer.cpp:736
↓ 1 callers
Method
words
Get the code size in number of words.
include/reflex/pattern.h:338
↓ 1 callers
Method
words_time
Get elapsed code words assembly time.
include/reflex/pattern.h:368
↓ 1 callers
Method
wrap
The default wrap operation at EOF: do not wrap input.
include/reflex/abslexer.h:128
↓ 1 callers
Method
wsize
Returns the matched text size in number of (wide) characters.
include/reflex/abslexer.h:330
↓ 1 callers
Method
wunput
Put back one (wide) character on the input character sequence for matching, DANGER: invalidates the previous text() pointer and match info, unput is n
include/reflex/absmatcher.h:1093
↓ 1 callers
Method
yywrap
Default yywrap operation at EOF: do not wrap input.
include/reflex/flexlexer.h:521
↓ 1 callers
Function
z7_sysctlbyname_Get
lzma/C/CpuArch.c:809
↓ 1 callers
Function
z7_sysctlbyname_Get_UInt32
lzma/C/CpuArch.c:814
↓ 1 callers
Function
z_open
src/zopen.c:741
↓ 1 callers
Function
z_read
* Decompress read. This routine adapts to the codes in the file building * the "string" table on-the-fly; requiring no table to be stored in the *
src/zopen.c:503
↓ 1 callers
Function
ztoa
include/reflex/error.h:46
Method
AbstractLexer
Construct abstract lexer to scan an input character sequence and echo the text matches to output.
include/reflex/abslexer.h:92
Method
AbstractMatcher
Construct a base abstract matcher.
include/reflex/absmatcher.h:326
Method
AnyLineGrepHandler
src/ugrep.cpp:2591
← previous
next →
401–500 of 1,386, ranked by callers