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
↓ 222 callers
Method
end
end output in ORDERED mode (--sort)
src/output.hpp:816
↓ 218 callers
Method
str
output a std::string s
src/output.hpp:355
↓ 207 callers
Method
begin
start synchronizing output for this slot in ORDERED mode (--sort)
src/output.hpp:782
↓ 206 callers
Method
size
Returns the current length of the bit vector.
include/reflex/bits.h:494
↓ 199 callers
Method
empty
return true if CNF only defines one empty pattern, after normalization and prune()
src/cnf.hpp:90
↓ 121 callers
Method
assign
include/reflex/pattern.h:817
↓ 117 callers
Method
insert
insert text to line at cursor
src/query.cpp:778
↓ 102 callers
Method
empty
src/ugrep.cpp:2073
↓ 99 callers
Method
clear
clear the CNF
src/cnf.hpp:78
↓ 79 callers
Function
getloptarg
get required non-empty long option argument after =
src/ugrep.cpp:13883
↓ 77 callers
Function
usage
print a diagnostic message
src/ugrep.cpp:13997
↓ 76 callers
Function
cannot_decompress
print to standard error: cannot decompress message if -s and -q not specified
src/ugrep.cpp:15307
↓ 66 callers
Method
back
move back up one file
src/query.cpp:2129
↓ 65 callers
Method
find
Find the first range [lo',hi'] that overlaps the given range [lo,hi], i.e. lo <= hi' and lo' <= hi.
include/reflex/ranges.h:237
↓ 62 callers
Method
end
include/reflex/setop.h:435
↓ 55 callers
Function
warning
print to standard error: warning message if -s and -q not specified, display error if errno is set, like perror()
src/ugrep.cpp:15315
↓ 49 callers
Method
done
done dumping hex
src/output.hpp:277
↓ 48 callers
Function
is_modified
lib/convert.cpp:207
↓ 45 callers
Method
at
include/reflex/pattern.h:1242
↓ 45 callers
Method
erase
erase num bytes from the line at and after the cursor
src/query.cpp:812
↓ 44 callers
Function
error
print to standard error: error message, assumes errno is set, like perror(), then exit
src/ugrep.cpp:15337
↓ 44 callers
Function
supports_escape
include/reflex/convert.h:193
↓ 43 callers
Method
begin
include/reflex/setop.h:431
↓ 43 callers
Function
utf8
Convert a UCS-4 range [a,b] to a UTF-8 regex pattern.
lib/utf8.cpp:120
↓ 39 callers
Method
nl
output a newline (platform-specific conditional "\r\n" or "\n"); flush if --line-buffered
src/output.hpp:718
↓ 37 callers
Function
close
close the decompression stream
src/zstream.hpp:1615
↓ 37 callers
Method
hex
dump matching data in hex
src/output.cpp:40
↓ 35 callers
Method
predict_match
Returns true when match is predicted using my PM3+PM5 logic for min>=1.
include/reflex/pattern.h:381
↓ 34 callers
Function
file_read
read from file into buffer, return len when successful or less when EOF reached or error
src/zstream.hpp:2051
↓ 34 callers
Function
set_color
convert GREP_COLORS and set the color substring to the ANSI SGR codes
src/ugrep.cpp:13713
↓ 34 callers
Method
swap
Swap bit vectors.
include/reflex/bits.h:562
↓ 33 callers
Method
chr
output an 8-bit character c
src/output.hpp:339
↓ 32 callers
Method
state
new DFA state.
include/reflex/pattern.h:979
↓ 32 callers
Function
strarg
save a string argument parsed from the command line or from a config file
src/ugrep.cpp:13893
↓ 32 callers
Function
uppercase
lib/convert.cpp:80
↓ 29 callers
Method
empty
Return true if this pattern is not assigned.
include/reflex/pattern.h:310
↓ 29 callers
Method
header
output the header part of the match, preceding the matched line
src/output.cpp:244
↓ 28 callers
Method
eol
Returns pointer to the end of the line (last char + 1) in the buffer containing the matched text, DANGER: invalidates previous bol() and text() pointe
include/reflex/absmatcher.h:1155
↓ 26 callers
Method
lineno
Returns the line number of matched text.
include/reflex/abslexer.h:336
↓ 25 callers
Method
bol
Returns pointer to the begin of the line in the buffer containing the matched text.
include/reflex/absmatcher.h:1148
↓ 25 callers
Function
init
parse the command-line options and initialize
src/ugrep.cpp:6357
↓ 24 callers
Function
glob_match
pathname or basename glob matching, returns true or false, perform case-insensitive match if icase is true
src/glob.cpp:250
↓ 24 callers
Function
u32
convert 4 bytes in little endian format to 32 bit
src/zstream.hpp:2884
↓ 23 callers
Function
SzReadNumber32
lzma/C/7zArcIn.c:243
↓ 23 callers
Method
first
return the first ALT terms of the CNF
src/cnf.cpp:776
↓ 23 callers
Method
hi
Return the highest value in the set of ranges (the set cannot be empty)
include/reflex/ranges.h:525
↓ 21 callers
Method
format
output format with option --format-begin and --format-end
src/output.cpp:619
↓ 21 callers
Method
get
wait until key press and return VKey::xxx code
src/vkey.cpp:162
↓ 20 callers
Method
lo
Return the lowest value in the set of ranges (the set cannot be empty)
include/reflex/ranges.h:519
↓ 19 callers
Function
lowercase
lib/convert.cpp:75
↓ 18 callers
Function
copy_color
copy color buffers
src/ugrep.cpp:747
↓ 18 callers
Method
pos
Returns position of the error in the regex.
include/reflex/error.h:131
↓ 18 callers
Function
print_char
lib/pattern.cpp:92
↓ 17 callers
Method
get
Get a single character (unsigned char 0..255) or EOF (-1) when end-of-input is reached.
include/reflex/input.h:628
↓ 17 callers
Method
lines
Returns the number of lines that the match spans.
include/reflex/abslexer.h:347
↓ 17 callers
Function
supports_modifier
include/reflex/convert.h:180
↓ 16 callers
Function
check_binary
return true if -X or if -W and match s[0..n-1] is binary
src/ugrep.cpp:717
↓ 16 callers
Method
lazy
lib/pattern.cpp:2266
↓ 16 callers
Function
peek
peek zip data block, return pointer to buffer and length of data available (max ZIPBLOCK when available)
src/zstream.hpp:956
↓ 16 callers
Method
singleton_or_undefined
return true if CNF is undefined or a singleton with just one pattern w/o ALT-NOT patterns, after prune()
src/cnf.hpp:96
↓ 16 callers
Function
utf8
Convert UCS-4 to UTF-8, fills with REFLEX_NONCHAR_UTF8 when out of range, or unrestricted UTF-8 with WITH_UTF8_UNRESTRICTED.
include/reflex/utf8.h:76
↓ 15 callers
Function
getoptarg
get short option argument
src/ugrep.cpp:13871
↓ 15 callers
Function
strtonum
convert unsigned decimal to non-negative size_t, produce error when conversion fails
src/ugrep.cpp:13900
↓ 15 callers
Function
u16
convert 2 bytes in little endian format to 16 bit
src/zstream.hpp:2878
↓ 14 callers
Function
abort
print to standard error: abort message with exception details, then exit
src/ugrep.cpp:15351
↓ 14 callers
Function
gethex
lib/pattern.cpp:148
↓ 13 callers
Method
binary_file_matches
output "Binary file ... matches"
src/output.cpp:534
↓ 13 callers
Method
buffer
Set buffer block size for reading: use 0 (or omit argument) to buffer all input in which case returns true if all the data could be read and false if
include/reflex/absmatcher.h:452
↓ 13 callers
Method
holding
return true when holding the output
src/output.hpp:767
↓ 13 callers
Function
strtopos
convert unsigned decimal to positive size_t, produce error when conversion fails or when the value is zero
src/ugrep.cpp:13910
↓ 12 callers
Method
contains
Returns true if the given bits are a subset of the bit vector, i.e. for each bit in bits, the corresponding bit in the bit vector is set.
include/reflex/bits.h:522
↓ 12 callers
Function
utf8_decode
convert a UTF-8 string to a wide Unicode String
src/ugrep.hpp:187
↓ 11 callers
Function
fopen_smart
open a file where - means stdin/stdout and an initial ~ expands to home directory
src/ugrep.cpp:666
↓ 11 callers
Method
last
Returns the exclusive position of the last character of the match in the input character sequence, a constant-time operation.
include/reflex/absmatcher.h:960
↓ 11 callers
Method
loc
include/reflex/pattern.h:673
↓ 11 callers
Function
modified_time
get modification time (micro seconds) from directory entry
src/ugrep-indexer.cpp:139
↓ 10 callers
Method
accept
include/reflex/pattern.h:670
↓ 10 callers
Method
before
Get the buffered context before the matching line.
include/reflex/absmatcher.h:502
↓ 10 callers
Function
convert
lib/convert.cpp:1462
↓ 10 callers
Function
ctz
include/reflex/simd.h:103
↓ 10 callers
Method
file
attempt to mmap the given file-based input, return true if successful with base and size
src/mmap.hpp:80
↓ 10 callers
Function
has_ext
check if pathname extension matches on of the given filename extensions
src/zstream.hpp:1121
↓ 10 callers
Function
indexhash
prime 61 mod 2^16 file indexing hash function
src/ugrep-indexer.cpp:806
↓ 10 callers
Method
is_undefined
src/flag.hpp:54
↓ 10 callers
Function
isword
Check ASCII word-like character `[A-Za-z0-9_]`, permitting the character range 0..303 (0x12f) and EOF.
include/reflex/absmatcher.h:84
↓ 10 callers
Method
iter
include/reflex/pattern.h:666
↓ 10 callers
Function
latin1
Convert an 8-bit ASCII + Latin-1 Supplement range [a,b] to a regex pattern.
lib/utf8.cpp:109
↓ 10 callers
Function
read
read zip data into buffer zbuf_[], should be called when zcur_ >= zlen_
src/zstream.hpp:1024
↓ 10 callers
Function
regex_range
lib/utf8.cpp:88
↓ 10 callers
Method
skip
Skip input until the specified ASCII character is consumed and return true, or EOF is reached and return false.
include/reflex/absmatcher.h:1283
↓ 10 callers
Method
ugrep
search the specified files or standard input for pattern matches
src/ugrep.cpp:9224
↓ 9 callers
Function
MY_ALLOC
(UInt64, p->PackPositions, (size_t)
lzma/C/7zArcIn.c:399
↓ 9 callers
Method
anchor
anchor a pattern, when specified with -w or -x
src/cnf.hpp:168
↓ 9 callers
Method
any
Returns true if any bit is set.
include/reflex/bits.h:461
↓ 9 callers
Function
error
display an error message unless option -s (--no-messages)
src/ugrep-indexer.cpp:746
↓ 9 callers
Function
have_HW_AVX2
do we have AVX2?
include/reflex/simd.h:84
↓ 9 callers
Function
next
fetch and decompress the next block of data into buf[0..len-1], return number of bytes decompressed, zero on EOF or negative on error
src/zstream.hpp:2057
↓ 9 callers
Method
set_handler
Set FILE* handler
include/reflex/input.h:803
↓ 9 callers
Function
utf8
return wide character of UTF-8 multi-byte sequence, return ASCII lower case if icase is true
src/glob.cpp:280
↓ 8 callers
Function
Ppmd7_InsertNode
lzma/C/Ppmd7.c:117
next →
1–100 of 1,386, ranked by callers