MCPcopy Create free account

hub / github.com/Genivia/ugrep / functions

Functions1,386 in github.com/Genivia/ugrep

↓ 222 callersMethodend
end output in ORDERED mode (--sort)
src/output.hpp:816
↓ 218 callersMethodstr
output a std::string s
src/output.hpp:355
↓ 207 callersMethodbegin
start synchronizing output for this slot in ORDERED mode (--sort)
src/output.hpp:782
↓ 206 callersMethodsize
Returns the current length of the bit vector.
include/reflex/bits.h:494
↓ 199 callersMethodempty
return true if CNF only defines one empty pattern, after normalization and prune()
src/cnf.hpp:90
↓ 121 callersMethodassign
include/reflex/pattern.h:817
↓ 117 callersMethodinsert
insert text to line at cursor
src/query.cpp:778
↓ 102 callersMethodempty
src/ugrep.cpp:2073
↓ 99 callersMethodclear
clear the CNF
src/cnf.hpp:78
↓ 79 callersFunctiongetloptarg
get required non-empty long option argument after =
src/ugrep.cpp:13883
↓ 77 callersFunctionusage
print a diagnostic message
src/ugrep.cpp:13997
↓ 76 callersFunctioncannot_decompress
print to standard error: cannot decompress message if -s and -q not specified
src/ugrep.cpp:15307
↓ 66 callersMethodback
move back up one file
src/query.cpp:2129
↓ 65 callersMethodfind
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 callersMethodend
include/reflex/setop.h:435
↓ 55 callersFunctionwarning
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 callersMethoddone
done dumping hex
src/output.hpp:277
↓ 48 callersFunctionis_modified
lib/convert.cpp:207
↓ 45 callersMethodat
include/reflex/pattern.h:1242
↓ 45 callersMethoderase
erase num bytes from the line at and after the cursor
src/query.cpp:812
↓ 44 callersFunctionerror
print to standard error: error message, assumes errno is set, like perror(), then exit
src/ugrep.cpp:15337
↓ 44 callersFunctionsupports_escape
include/reflex/convert.h:193
↓ 43 callersMethodbegin
include/reflex/setop.h:431
↓ 43 callersFunctionutf8
Convert a UCS-4 range [a,b] to a UTF-8 regex pattern.
lib/utf8.cpp:120
↓ 39 callersMethodnl
output a newline (platform-specific conditional "\r\n" or "\n"); flush if --line-buffered
src/output.hpp:718
↓ 37 callersFunctionclose
close the decompression stream
src/zstream.hpp:1615
↓ 37 callersMethodhex
dump matching data in hex
src/output.cpp:40
↓ 35 callersMethodpredict_match
Returns true when match is predicted using my PM3+PM5 logic for min>=1.
include/reflex/pattern.h:381
↓ 34 callersFunctionfile_read
read from file into buffer, return len when successful or less when EOF reached or error
src/zstream.hpp:2051
↓ 34 callersFunctionset_color
convert GREP_COLORS and set the color substring to the ANSI SGR codes
src/ugrep.cpp:13713
↓ 34 callersMethodswap
Swap bit vectors.
include/reflex/bits.h:562
↓ 33 callersMethodchr
output an 8-bit character c
src/output.hpp:339
↓ 32 callersMethodstate
new DFA state.
include/reflex/pattern.h:979
↓ 32 callersFunctionstrarg
save a string argument parsed from the command line or from a config file
src/ugrep.cpp:13893
↓ 32 callersFunctionuppercase
lib/convert.cpp:80
↓ 29 callersMethodempty
Return true if this pattern is not assigned.
include/reflex/pattern.h:310
↓ 29 callersMethodheader
output the header part of the match, preceding the matched line
src/output.cpp:244
↓ 28 callersMethodeol
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 callersMethodlineno
Returns the line number of matched text.
include/reflex/abslexer.h:336
↓ 25 callersMethodbol
Returns pointer to the begin of the line in the buffer containing the matched text.
include/reflex/absmatcher.h:1148
↓ 25 callersFunctioninit
parse the command-line options and initialize
src/ugrep.cpp:6357
↓ 24 callersFunctionglob_match
pathname or basename glob matching, returns true or false, perform case-insensitive match if icase is true
src/glob.cpp:250
↓ 24 callersFunctionu32
convert 4 bytes in little endian format to 32 bit
src/zstream.hpp:2884
↓ 23 callersFunctionSzReadNumber32
lzma/C/7zArcIn.c:243
↓ 23 callersMethodfirst
return the first ALT terms of the CNF
src/cnf.cpp:776
↓ 23 callersMethodhi
Return the highest value in the set of ranges (the set cannot be empty)
include/reflex/ranges.h:525
↓ 21 callersMethodformat
output format with option --format-begin and --format-end
src/output.cpp:619
↓ 21 callersMethodget
wait until key press and return VKey::xxx code
src/vkey.cpp:162
↓ 20 callersMethodlo
Return the lowest value in the set of ranges (the set cannot be empty)
include/reflex/ranges.h:519
↓ 19 callersFunctionlowercase
lib/convert.cpp:75
↓ 18 callersFunctioncopy_color
copy color buffers
src/ugrep.cpp:747
↓ 18 callersMethodpos
Returns position of the error in the regex.
include/reflex/error.h:131
↓ 18 callersFunctionprint_char
lib/pattern.cpp:92
↓ 17 callersMethodget
Get a single character (unsigned char 0..255) or EOF (-1) when end-of-input is reached.
include/reflex/input.h:628
↓ 17 callersMethodlines
Returns the number of lines that the match spans.
include/reflex/abslexer.h:347
↓ 17 callersFunctionsupports_modifier
include/reflex/convert.h:180
↓ 16 callersFunctioncheck_binary
return true if -X or if -W and match s[0..n-1] is binary
src/ugrep.cpp:717
↓ 16 callersMethodlazy
lib/pattern.cpp:2266
↓ 16 callersFunctionpeek
peek zip data block, return pointer to buffer and length of data available (max ZIPBLOCK when available)
src/zstream.hpp:956
↓ 16 callersMethodsingleton_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 callersFunctionutf8
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 callersFunctiongetoptarg
get short option argument
src/ugrep.cpp:13871
↓ 15 callersFunctionstrtonum
convert unsigned decimal to non-negative size_t, produce error when conversion fails
src/ugrep.cpp:13900
↓ 15 callersFunctionu16
convert 2 bytes in little endian format to 16 bit
src/zstream.hpp:2878
↓ 14 callersFunctionabort
print to standard error: abort message with exception details, then exit
src/ugrep.cpp:15351
↓ 14 callersFunctiongethex
lib/pattern.cpp:148
↓ 13 callersMethodbinary_file_matches
output "Binary file ... matches"
src/output.cpp:534
↓ 13 callersMethodbuffer
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 callersMethodholding
return true when holding the output
src/output.hpp:767
↓ 13 callersFunctionstrtopos
convert unsigned decimal to positive size_t, produce error when conversion fails or when the value is zero
src/ugrep.cpp:13910
↓ 12 callersMethodcontains
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 callersFunctionutf8_decode
convert a UTF-8 string to a wide Unicode String
src/ugrep.hpp:187
↓ 11 callersFunctionfopen_smart
open a file where - means stdin/stdout and an initial ~ expands to home directory
src/ugrep.cpp:666
↓ 11 callersMethodlast
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 callersMethodloc
include/reflex/pattern.h:673
↓ 11 callersFunctionmodified_time
get modification time (micro seconds) from directory entry
src/ugrep-indexer.cpp:139
↓ 10 callersMethodaccept
include/reflex/pattern.h:670
↓ 10 callersMethodbefore
Get the buffered context before the matching line.
include/reflex/absmatcher.h:502
↓ 10 callersFunctionconvert
lib/convert.cpp:1462
↓ 10 callersFunctionctz
include/reflex/simd.h:103
↓ 10 callersMethodfile
attempt to mmap the given file-based input, return true if successful with base and size
src/mmap.hpp:80
↓ 10 callersFunctionhas_ext
check if pathname extension matches on of the given filename extensions
src/zstream.hpp:1121
↓ 10 callersFunctionindexhash
prime 61 mod 2^16 file indexing hash function
src/ugrep-indexer.cpp:806
↓ 10 callersMethodis_undefined
src/flag.hpp:54
↓ 10 callersFunctionisword
Check ASCII word-like character `[A-Za-z0-9_]`, permitting the character range 0..303 (0x12f) and EOF.
include/reflex/absmatcher.h:84
↓ 10 callersMethoditer
include/reflex/pattern.h:666
↓ 10 callersFunctionlatin1
Convert an 8-bit ASCII + Latin-1 Supplement range [a,b] to a regex pattern.
lib/utf8.cpp:109
↓ 10 callersFunctionread
read zip data into buffer zbuf_[], should be called when zcur_ >= zlen_
src/zstream.hpp:1024
↓ 10 callersFunctionregex_range
lib/utf8.cpp:88
↓ 10 callersMethodskip
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 callersMethodugrep
search the specified files or standard input for pattern matches
src/ugrep.cpp:9224
↓ 9 callersFunctionMY_ALLOC
(UInt64, p->PackPositions, (size_t)
lzma/C/7zArcIn.c:399
↓ 9 callersMethodanchor
anchor a pattern, when specified with -w or -x
src/cnf.hpp:168
↓ 9 callersMethodany
Returns true if any bit is set.
include/reflex/bits.h:461
↓ 9 callersFunctionerror
display an error message unless option -s (--no-messages)
src/ugrep-indexer.cpp:746
↓ 9 callersFunctionhave_HW_AVX2
do we have AVX2?
include/reflex/simd.h:84
↓ 9 callersFunctionnext
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 callersMethodset_handler
Set FILE* handler
include/reflex/input.h:803
↓ 9 callersFunctionutf8
return wide character of UTF-8 multi-byte sequence, return ASCII lower case if icase is true
src/glob.cpp:280
↓ 8 callersFunctionPpmd7_InsertNode
lzma/C/Ppmd7.c:117
next →1–100 of 1,386, ranked by callers