Linux host2.healingcodesinfo.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
Apache
Server IP : 69.167.168.125 & Your IP : 216.73.216.208
Domains : 126 Domain
User : christia
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
include /
Delete
Unzip
Name
Size
Permission
Date
Action
GL
[ DIR ]
drwxr-xr-x
2021-01-13 19:43
X11
[ DIR ]
drwxr-xr-x
2024-07-06 04:35
apache2
[ DIR ]
drwxr-xr-x
2026-03-19 21:41
arpa
[ DIR ]
drwxr-xr-x
2024-07-06 04:35
asm
[ DIR ]
drwxr-xr-x
2024-07-06 04:35
asm-generic
[ DIR ]
drwxr-xr-x
2024-07-06 04:35
bind9
[ DIR ]
drwxr-xr-x
2024-07-06 04:35
bits
[ DIR ]
drwxr-xr-x
2024-07-06 04:35
c++
[ DIR ]
drwxr-xr-x
2021-01-13 19:43
db4.7.25
[ DIR ]
drwxr-xr-x
2021-01-13 19:36
drm
[ DIR ]
drwxr-xr-x
2024-07-06 04:35
e2p
[ DIR ]
drwxr-xr-x
2021-01-13 19:44
et
[ DIR ]
drwxr-xr-x
2021-01-13 19:43
ext2fs
[ DIR ]
drwxr-xr-x
2021-01-13 19:44
fontconfig
[ DIR ]
drwxr-xr-x
2021-01-13 19:44
freetype2
[ DIR ]
drwxr-xr-x
2021-01-13 19:43
gdbm
[ DIR ]
drwxr-xr-x
2021-01-13 19:42
gnu
[ DIR ]
drwxr-xr-x
2024-07-06 04:35
gssapi
[ DIR ]
drwxr-xr-x
2022-12-01 22:41
gssrpc
[ DIR ]
drwxr-xr-x
2022-12-01 22:41
kadm5
[ DIR ]
drwxr-xr-x
2022-12-01 22:41
krb5
[ DIR ]
drwxr-xr-x
2022-12-01 22:41
libdb
[ DIR ]
drwxr-xr-x
2021-01-13 19:42
libexslt
[ DIR ]
drwxr-xr-x
2021-01-13 19:44
libltdl
[ DIR ]
drwxr-xr-x
2021-01-13 19:44
libpng15
[ DIR ]
drwxr-xr-x
2021-01-13 19:43
libxml2
[ DIR ]
drwxr-xr-x
2021-10-21 16:15
libxslt
[ DIR ]
drwxr-xr-x
2021-01-13 19:44
linux
[ DIR ]
drwxr-xr-x
2024-07-06 04:35
lzma
[ DIR ]
drwxr-xr-x
2022-06-16 21:41
misc
[ DIR ]
drwxr-xr-x
2024-07-06 04:35
mtd
[ DIR ]
drwxr-xr-x
2024-07-06 04:35
mysql
[ DIR ]
drwxr-xr-x
2023-10-24 21:41
ncurses
[ DIR ]
drwxr-xr-x
2021-01-13 19:44
ncursesw
[ DIR ]
drwxr-xr-x
2021-01-13 19:44
net
[ DIR ]
drwxr-xr-x
2024-07-06 04:35
netash
[ DIR ]
drwxr-xr-x
2024-07-06 04:35
netatalk
[ DIR ]
drwxr-xr-x
2024-07-06 04:35
netax25
[ DIR ]
drwxr-xr-x
2024-07-06 04:35
neteconet
[ DIR ]
drwxr-xr-x
2024-07-06 04:35
netinet
[ DIR ]
drwxr-xr-x
2024-07-06 04:35
netipx
[ DIR ]
drwxr-xr-x
2024-07-06 04:35
netiucv
[ DIR ]
drwxr-xr-x
2024-07-06 04:35
netpacket
[ DIR ]
drwxr-xr-x
2024-07-06 04:35
netpbm
[ DIR ]
drwxr-xr-x
2021-01-13 19:45
netrom
[ DIR ]
drwxr-xr-x
2024-07-06 04:35
netrose
[ DIR ]
drwxr-xr-x
2024-07-06 04:35
nfs
[ DIR ]
drwxr-xr-x
2024-07-06 04:35
openssl
[ DIR ]
drwxr-xr-x
2023-03-22 21:41
protocols
[ DIR ]
drwxr-xr-x
2024-07-06 04:35
python2.7
[ DIR ]
drwxr-xr-x
2024-04-03 21:42
python3.6m
[ DIR ]
drwxr-xr-x
2024-04-03 21:41
quota
[ DIR ]
drwxr-xr-x
2021-01-13 19:44
rdma
[ DIR ]
drwxr-xr-x
2024-07-06 04:35
rpc
[ DIR ]
drwxr-xr-x
2024-07-06 04:35
rpcsvc
[ DIR ]
drwxr-xr-x
2024-07-06 04:35
sasl
[ DIR ]
drwxr-xr-x
2022-02-25 22:41
scsi
[ DIR ]
drwxr-xr-x
2024-07-06 04:35
security
[ DIR ]
drwxr-xr-x
2021-01-13 19:36
selinux
[ DIR ]
drwxr-xr-x
2021-01-13 19:44
sepol
[ DIR ]
drwxr-xr-x
2021-01-13 19:44
sound
[ DIR ]
drwxr-xr-x
2024-07-06 04:35
sys
[ DIR ]
drwxr-xr-x
2024-07-06 04:35
uapi
[ DIR ]
drwxr-xr-x
2024-06-04 14:55
uuid
[ DIR ]
drwxr-xr-x
2021-02-04 22:41
video
[ DIR ]
drwxr-xr-x
2024-07-06 04:35
xcb
[ DIR ]
drwxr-xr-x
2021-01-13 19:43
xen
[ DIR ]
drwxr-xr-x
2024-07-06 04:35
FlexLexer.h
6.07
KB
-rw-r--r--
2018-10-30 20:30
_G_config.h
1.26
KB
-rw-r--r--
2024-06-04 14:43
a.out.h
4.25
KB
-rw-r--r--
2024-06-04 14:43
aio.h
7.27
KB
-rw-r--r--
2024-06-04 14:43
aliases.h
2
KB
-rw-r--r--
2024-06-04 14:43
alloca.h
1.19
KB
-rw-r--r--
2024-06-04 14:43
ar.h
1.68
KB
-rw-r--r--
2024-06-04 14:43
argp.h
24.75
KB
-rw-r--r--
2024-06-04 14:43
argz.h
6.96
KB
-rw-r--r--
2024-06-04 14:43
assert.h
3.52
KB
-rw-r--r--
2024-06-04 14:43
autosprintf.h
2.33
KB
-rw-r--r--
2020-04-01 02:42
byteswap.h
1.41
KB
-rw-r--r--
2024-06-04 14:43
com_err.h
2.07
KB
-rw-r--r--
2012-07-06 13:37
complex.h
3.62
KB
-rw-r--r--
2024-06-04 14:43
cpio.h
2.21
KB
-rw-r--r--
2024-06-04 14:43
cpufreq.h
5.8
KB
-rw-r--r--
2024-06-04 14:55
crypt.h
2.22
KB
-rw-r--r--
2024-06-04 14:43
ctype.h
11.52
KB
-rw-r--r--
2024-06-04 14:43
curses.h
93.19
KB
-rw-r--r--
2017-09-06 22:08
cursesapp.h
6.62
KB
-rw-r--r--
2017-09-06 22:08
cursesf.h
27.05
KB
-rw-r--r--
2017-09-06 22:08
cursesm.h
19.09
KB
-rw-r--r--
2017-09-06 22:08
cursesp.h
8.3
KB
-rw-r--r--
2017-09-06 22:08
cursesw.h
48.24
KB
-rw-r--r--
2017-09-06 22:08
cursslk.h
7.13
KB
-rw-r--r--
2017-09-06 22:08
db.h
120.21
KB
-r--r--r--
2019-08-09 00:16
db_185.h
5.84
KB
-r--r--r--
2019-08-09 00:16
dbm.h
1.37
KB
-rw-r--r--
2014-06-09 21:39
dirent.h
12.34
KB
-rw-r--r--
2024-06-04 14:43
dlfcn.h
6.88
KB
-rw-r--r--
2024-06-04 14:43
elf.h
141.01
KB
-rw-r--r--
2024-06-04 14:43
endian.h
2.95
KB
-rw-r--r--
2024-06-04 14:43
entities.h
4.56
KB
-rw-r--r--
2007-03-31 17:24
envz.h
2.82
KB
-rw-r--r--
2024-06-04 14:43
err.h
2.18
KB
-rw-r--r--
2024-06-04 14:43
errno.h
2.33
KB
-rw-r--r--
2024-06-04 14:43
error.h
2.01
KB
-rw-r--r--
2024-06-04 14:43
eti.h
2.82
KB
-rw-r--r--
2017-09-06 22:08
etip.h
9.04
KB
-rw-r--r--
2017-09-06 22:08
execinfo.h
1.5
KB
-rw-r--r--
2024-06-04 14:43
expat.h
40.77
KB
-rw-r--r--
2022-10-06 12:52
expat_external.h
3.29
KB
-rw-r--r--
2022-10-06 12:52
fcntl.h
9.89
KB
-rw-r--r--
2024-06-04 14:43
features.h
12.87
KB
-rw-r--r--
2024-06-04 14:43
fenv.h
4.5
KB
-rw-r--r--
2024-06-04 14:43
fmtmsg.h
3.18
KB
-rw-r--r--
2024-06-04 14:43
fnmatch.h
2.27
KB
-rw-r--r--
2024-06-04 14:43
form.h
17.56
KB
-rw-r--r--
2017-09-06 22:08
fpu_control.h
3.5
KB
-rw-r--r--
2024-06-04 14:43
fstab.h
3.04
KB
-rw-r--r--
2024-06-04 14:43
fts.h
5.17
KB
-rw-r--r--
2024-06-04 14:43
ftw.h
5.15
KB
-rw-r--r--
2024-06-04 14:43
gconv.h
5.16
KB
-rw-r--r--
2024-06-04 14:43
gcrypt-module.h
7.18
KB
-rw-r--r--
2017-08-02 15:54
gcrypt.h
76.51
KB
-rw-r--r--
2017-08-02 15:54
gd.h
32.02
KB
-rw-r--r--
2007-05-06 20:38
gd_io.h
1.13
KB
-rw-r--r--
2007-01-03 21:50
gdbm.h
5.75
KB
-rw-r--r--
2014-06-09 21:39
gdcache.h
2.75
KB
-rw-r--r--
2006-04-05 15:54
gdfontg.h
623
B
-rw-r--r--
2006-04-05 15:54
gdfontl.h
621
B
-rw-r--r--
2006-04-05 15:54
gdfontmb.h
590
B
-rw-r--r--
2006-04-05 15:54
gdfonts.h
585
B
-rw-r--r--
2006-04-05 15:54
gdfontt.h
617
B
-rw-r--r--
2006-04-05 15:54
gdfx.h
2.34
KB
-rw-r--r--
2006-04-05 15:54
getopt.h
6.53
KB
-rw-r--r--
2024-06-04 14:43
gettext-po.h
15.17
KB
-rw-r--r--
2020-04-01 02:42
glob.h
6.51
KB
-rw-r--r--
2024-06-04 14:43
gnu-versions.h
2.29
KB
-rw-r--r--
2024-06-04 14:43
gpg-error.h
23.66
KB
-rw-r--r--
2014-06-10 08:46
grp.h
6.75
KB
-rw-r--r--
2024-06-04 14:43
gshadow.h
4.43
KB
-rw-r--r--
2024-06-04 14:43
gssapi.h
181
B
-rw-r--r--
2022-11-30 19:01
iconv.h
1.83
KB
-rw-r--r--
2024-06-04 14:43
idn-free.h
2.41
KB
-rw-r--r--
2015-11-21 17:00
idn-int.h
20
B
-rw-r--r--
2015-11-21 17:00
idna.h
3.48
KB
-rw-r--r--
2015-11-21 17:00
ieee754.h
4.81
KB
-rw-r--r--
2024-06-04 14:43
ifaddrs.h
2.77
KB
-rw-r--r--
2024-06-04 14:43
inttypes.h
11.61
KB
-rw-r--r--
2024-06-04 14:43
jconfig.h
1.7
KB
-rw-r--r--
2019-08-09 00:23
jerror.h
14.4
KB
-rw-r--r--
2019-08-09 00:23
jmorecfg.h
13.5
KB
-rw-r--r--
2019-08-09 00:23
jpeglib.h
49.12
KB
-rw-r--r--
2019-08-09 00:23
kdb.h
60.12
KB
-rw-r--r--
2022-11-30 19:01
keyutils.h
7.08
KB
-rw-r--r--
2014-06-10 02:17
krad.h
8.72
KB
-rw-r--r--
2022-11-30 19:01
krb5.h
402
B
-rw-r--r--
2022-11-30 19:01
langinfo.h
15.57
KB
-rw-r--r--
2024-06-04 14:43
lastlog.h
126
B
-rw-r--r--
2024-06-04 14:43
lber.h
14.95
KB
-rw-r--r--
2022-02-23 17:11
lber_types.h
1.43
KB
-rw-r--r--
2022-02-23 17:11
ldap.h
63.46
KB
-rw-r--r--
2022-02-23 17:11
ldap_cdefs.h
9.24
KB
-rw-r--r--
2022-02-23 17:11
ldap_features.h
1.77
KB
-rw-r--r--
2022-02-23 17:11
ldap_schema.h
9.23
KB
-rw-r--r--
2022-02-23 17:11
ldap_utf8.h
3.39
KB
-rw-r--r--
2022-02-23 17:11
ldif.h
4.58
KB
-rw-r--r--
2022-02-23 17:11
libaio.h
7.8
KB
-rw-r--r--
2015-11-20 06:37
libgen.h
1.37
KB
-rw-r--r--
2024-06-04 14:43
libintl.h
4.49
KB
-rw-r--r--
2024-06-04 14:43
libio.h
16.87
KB
-rw-r--r--
2024-06-04 14:43
limits.h
4.42
KB
-rw-r--r--
2024-06-04 14:43
link.h
6.99
KB
-rw-r--r--
2024-06-04 14:43
locale.h
7.78
KB
-rw-r--r--
2024-06-04 14:43
ltdl.h
5.58
KB
-rw-r--r--
2017-04-12 18:57
lzma.h
9.51
KB
-rw-r--r--
2015-09-29 10:57
malloc.h
6.44
KB
-rw-r--r--
2024-06-04 14:43
math.h
15.7
KB
-rw-r--r--
2024-06-04 14:43
mcheck.h
2.4
KB
-rw-r--r--
2024-06-04 14:43
memory.h
962
B
-rw-r--r--
2024-06-04 14:43
menu.h
11.67
KB
-rw-r--r--
2017-09-06 22:08
mntent.h
3.3
KB
-rw-r--r--
2024-06-04 14:43
monetary.h
1.73
KB
-rw-r--r--
2024-06-04 14:43
mqueue.h
3.7
KB
-rw-r--r--
2024-06-04 14:43
nc_tparm.h
4.05
KB
-rw-r--r--
2017-09-06 22:08
ncurses.h
93.19
KB
-rw-r--r--
2017-09-06 22:08
ncurses_dll.h
3.83
KB
-rw-r--r--
2017-09-06 22:08
ndbm.h
2.39
KB
-rw-r--r--
2014-06-09 21:39
netdb.h
27.46
KB
-rw-r--r--
2024-06-04 14:43
nl_types.h
1.73
KB
-rw-r--r--
2024-06-04 14:43
nss.h
1.85
KB
-rw-r--r--
2024-06-04 14:43
obstack.h
18.84
KB
-rw-r--r--
2024-06-04 14:43
panel.h
3.97
KB
-rw-r--r--
2017-09-06 22:08
paths.h
2.91
KB
-rw-r--r--
2024-06-04 14:43
pcre.h
29.73
KB
-rw-r--r--
2017-08-02 03:07
pcre_scanner.h
6.45
KB
-rw-r--r--
2017-08-02 03:07
pcre_stringpiece.h
6.11
KB
-rw-r--r--
2017-08-02 03:07
pcrecpp.h
25.91
KB
-rw-r--r--
2017-08-02 03:07
pcrecpparg.h
6.62
KB
-rw-r--r--
2017-08-02 03:07
pcreposix.h
5.32
KB
-rw-r--r--
2017-08-02 03:07
png.h
113.36
KB
-rw-r--r--
2020-10-13 15:52
pngconf.h
20.94
KB
-rw-r--r--
2020-10-13 15:52
pnglibconf.h
6.3
KB
-rw-r--r--
2020-10-13 15:52
poll.h
22
B
-rw-r--r--
2024-06-04 14:43
pr29.h
2.07
KB
-rw-r--r--
2015-11-21 17:00
printf.h
6.56
KB
-rw-r--r--
2024-06-04 14:43
profile.h
11.87
KB
-rw-r--r--
2022-11-30 19:01
pthread.h
39.95
KB
-rw-r--r--
2024-06-04 14:43
pty.h
1.51
KB
-rw-r--r--
2024-06-04 14:43
punycode.h
9.36
KB
-rw-r--r--
2015-11-21 17:00
pwd.h
5.87
KB
-rw-r--r--
2024-06-04 14:43
re_comp.h
957
B
-rw-r--r--
2024-06-04 14:43
regex.h
21.58
KB
-rw-r--r--
2024-06-04 14:43
regexp.h
6.89
KB
-rw-r--r--
2024-06-04 14:43
resolv.h
14.67
KB
-rw-r--r--
2024-06-04 14:43
sched.h
4.55
KB
-rw-r--r--
2024-06-04 14:43
search.h
5.11
KB
-rw-r--r--
2024-06-04 14:43
semaphore.h
2.36
KB
-rw-r--r--
2024-06-04 14:43
setjmp.h
3.97
KB
-rw-r--r--
2024-06-04 14:43
sgtty.h
1.33
KB
-rw-r--r--
2024-06-04 14:43
shadow.h
5.1
KB
-rw-r--r--
2024-06-04 14:43
signal.h
13.3
KB
-rw-r--r--
2024-06-04 14:43
slapi-plugin.h
37.45
KB
-rw-r--r--
2022-02-23 17:11
spawn.h
6.53
KB
-rw-r--r--
2024-06-04 14:43
stab.h
264
B
-rw-r--r--
2024-06-04 14:43
stdc-predef.h
1.59
KB
-rw-r--r--
2024-06-04 14:43
stdint.h
7.94
KB
-rw-r--r--
2024-06-04 14:43
stdio.h
30.9
KB
-rw-r--r--
2024-06-04 14:43
stdio_ext.h
2.74
KB
-rw-r--r--
2024-06-04 14:43
stdlib.h
33.23
KB
-rw-r--r--
2024-06-04 14:43
string.h
21.75
KB
-rw-r--r--
2024-06-04 14:43
stringprep.h
8
KB
-rw-r--r--
2015-11-21 17:00
strings.h
4.55
KB
-rw-r--r--
2024-06-04 14:43
syscall.h
25
B
-rw-r--r--
2024-06-04 14:43
sysexits.h
5.11
KB
-rw-r--r--
2024-06-04 14:43
syslog.h
24
B
-rw-r--r--
2024-06-04 14:43
tar.h
3.67
KB
-rw-r--r--
2024-06-04 14:43
tcpd.h
11.48
KB
-rw-r--r--
2014-06-10 04:41
term.h
38.63
KB
-rw-r--r--
2017-09-06 22:08
term_entry.h
7.91
KB
-rw-r--r--
2017-09-06 22:08
termcap.h
3.4
KB
-rw-r--r--
2017-09-06 22:08
termio.h
214
B
-rw-r--r--
2024-06-04 14:43
termios.h
3.52
KB
-rw-r--r--
2024-06-04 14:43
tgmath.h
18.11
KB
-rw-r--r--
2024-06-04 14:43
thread_db.h
15.65
KB
-rw-r--r--
2024-06-04 14:43
tic.h
12.35
KB
-rw-r--r--
2017-09-06 22:08
tiff.h
34.95
KB
-rw-r--r--
2020-10-13 15:55
tiffconf-64.h
3.35
KB
-rw-r--r--
2020-10-13 15:55
tiffconf.h
250
B
-rw-r--r--
2020-10-13 15:55
tiffio.h
22.52
KB
-rw-r--r--
2020-10-13 15:55
tiffio.hxx
1.66
KB
-rw-r--r--
2020-10-13 15:55
tiffvers.h
410
B
-rw-r--r--
2020-10-13 15:55
time.h
13.4
KB
-rw-r--r--
2024-06-04 14:43
tld.h
4.54
KB
-rw-r--r--
2015-11-21 17:00
ttyent.h
2.44
KB
-rw-r--r--
2024-06-04 14:43
uchar.h
2.42
KB
-rw-r--r--
2024-06-04 14:43
ucontext.h
1.92
KB
-rw-r--r--
2024-06-04 14:43
ulimit.h
1.55
KB
-rw-r--r--
2024-06-04 14:43
unctrl.h
3.03
KB
-rw-r--r--
2017-09-06 22:08
unistd.h
41.78
KB
-rw-r--r--
2024-06-04 14:43
ustat.h
23
B
-rw-r--r--
2024-06-04 14:43
utime.h
1.5
KB
-rw-r--r--
2024-06-04 14:43
utmp.h
3.16
KB
-rw-r--r--
2024-06-04 14:43
utmpx.h
4.02
KB
-rw-r--r--
2024-06-04 14:43
values.h
1.92
KB
-rw-r--r--
2024-06-04 14:43
verto-module.h
6.48
KB
-rw-r--r--
2014-06-10 07:44
verto.h
18.57
KB
-rw-r--r--
2014-06-10 07:44
wait.h
22
B
-rw-r--r--
2024-06-04 14:43
wchar.h
31.37
KB
-rw-r--r--
2024-06-04 14:43
wctype.h
10.89
KB
-rw-r--r--
2024-06-04 14:43
wordexp.h
2.47
KB
-rw-r--r--
2024-06-04 14:43
xlocale.h
1.66
KB
-rw-r--r--
2024-06-04 14:43
zconf.h
14.92
KB
-rw-r--r--
2023-03-07 14:49
zlib.h
84.68
KB
-rw-r--r--
2023-03-07 14:49
Save
Rename
// Copyright (c) 2005, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. // * Redistributions in binary form must reproduce the above // copyright notice, this list of conditions and the following disclaimer // in the documentation and/or other materials provided with the // distribution. // * Neither the name of Google Inc. nor the names of its // contributors may be used to endorse or promote products derived from // this software without specific prior written permission. // // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // // Author: Sanjay Ghemawat // // Regular-expression based scanner for parsing an input stream. // // Example 1: parse a sequence of "var = number" entries from input: // // Scanner scanner(input); // string var; // int number; // scanner.SetSkipExpression("\\s+"); // Skip any white space we encounter // while (scanner.Consume("(\\w+) = (\\d+)", &var, &number)) { // ...; // } #ifndef _PCRE_SCANNER_H #define _PCRE_SCANNER_H #include <assert.h> #include <string> #include <vector> #include <pcrecpp.h> #include <pcre_stringpiece.h> namespace pcrecpp { class PCRECPP_EXP_DEFN Scanner { public: Scanner(); explicit Scanner(const std::string& input); ~Scanner(); // Return current line number. The returned line-number is // one-based. I.e. it returns 1 + the number of consumed newlines. // // Note: this method may be slow. It may take time proportional to // the size of the input. int LineNumber() const; // Return the byte-offset that the scanner is looking in the // input data; int Offset() const; // Return true iff the start of the remaining input matches "re" bool LookingAt(const RE& re) const; // Return true iff all of the following are true // a. the start of the remaining input matches "re", // b. if any arguments are supplied, matched sub-patterns can be // parsed and stored into the arguments. // If it returns true, it skips over the matched input and any // following input that matches the "skip" regular expression. bool Consume(const RE& re, const Arg& arg0 = RE::no_arg, const Arg& arg1 = RE::no_arg, const Arg& arg2 = RE::no_arg // TODO: Allow more arguments? ); // Set the "skip" regular expression. If after consuming some data, // a prefix of the input matches this RE, it is automatically // skipped. For example, a programming language scanner would use // a skip RE that matches white space and comments. // // scanner.SetSkipExpression("\\s+|//.*|/[*](.|\n)*?[*]/"); // // Skipping repeats as long as it succeeds. We used to let people do // this by writing "(...)*" in the regular expression, but that added // up to lots of recursive calls within the pcre library, so now we // control repetition explicitly via the function call API. // // You can pass NULL for "re" if you do not want any data to be skipped. void Skip(const char* re); // DEPRECATED; does *not* repeat void SetSkipExpression(const char* re); // Temporarily pause "skip"ing. This // Skip("Foo"); code ; DisableSkip(); code; EnableSkip() // is similar to // Skip("Foo"); code ; Skip(NULL); code ; Skip("Foo"); // but avoids creating/deleting new RE objects. void DisableSkip(); // Reenable previously paused skipping. Any prefix of the input // that matches the skip pattern is immediately dropped. void EnableSkip(); /***** Special wrappers around SetSkip() for some common idioms *****/ // Arranges to skip whitespace, C comments, C++ comments. // The overall RE is a disjunction of the following REs: // \\s whitespace // //.*\n C++ comment // /[*](.|\n)*?[*]/ C comment (x*? means minimal repetitions of x) // We get repetition via the semantics of SetSkipExpression, not by using * void SkipCXXComments() { SetSkipExpression("\\s|//.*\n|/[*](?:\n|.)*?[*]/"); } void set_save_comments(bool comments) { save_comments_ = comments; } bool save_comments() { return save_comments_; } // Append to vector ranges the comments found in the // byte range [start,end] (inclusive) of the input data. // Only comments that were extracted entirely within that // range are returned: no range splitting of atomically-extracted // comments is performed. void GetComments(int start, int end, std::vector<StringPiece> *ranges); // Append to vector ranges the comments added // since the last time this was called. This // functionality is provided for efficiency when // interleaving scanning with parsing. void GetNextComments(std::vector<StringPiece> *ranges); private: std::string data_; // All the input data StringPiece input_; // Unprocessed input RE* skip_; // If non-NULL, RE for skipping input bool should_skip_; // If true, use skip_ bool skip_repeat_; // If true, repeat skip_ as long as it works bool save_comments_; // If true, aggregate the skip expression // the skipped comments // TODO: later consider requiring that the StringPieces be added // in order by their start position std::vector<StringPiece> *comments_; // the offset into comments_ that has been returned by GetNextComments int comments_offset_; // helper function to consume *skip_ and honour // save_comments_ void ConsumeSkip(); }; } // namespace pcrecpp #endif /* _PCRE_SCANNER_H */