Linux server123.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64
LiteSpeed
: 198.54.126.127 | : 216.73.216.107
Cant Read [ /etc/named.conf ]
?8.4.14
ezdajrnh
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
opt /
alt /
ruby18 /
share /
ri /
1.8 /
system /
StringScanner /
[ HOME SHELL ]
Name
Size
Permission
Action
?;
Error
[ DIR ]
drwxr-xr-x
%3c%3c-i.yaml
598
B
-rw-r--r--
%5b%5d-i.yaml
820
B
-rw-r--r--
beginning_of_line%3f-i.yaml
587
B
-rw-r--r--
cdesc-StringScanner.yaml
7.41
KB
-rw-r--r--
check-i.yaml
803
B
-rw-r--r--
check_until-i.yaml
741
B
-rw-r--r--
clear-i.yaml
284
B
-rw-r--r--
concat-i.yaml
604
B
-rw-r--r--
empty%3f-i.yaml
276
B
-rw-r--r--
eos%3f-i.yaml
495
B
-rw-r--r--
exist%3f-i.yaml
663
B
-rw-r--r--
get_byte-i.yaml
690
B
-rw-r--r--
getbyte-i.yaml
286
B
-rw-r--r--
getch-i.yaml
705
B
-rw-r--r--
initialize_copy-i.yaml
276
B
-rw-r--r--
inspect-i.yaml
909
B
-rw-r--r--
match%3f-i.yaml
580
B
-rw-r--r--
matched%3f-i.yaml
495
B
-rw-r--r--
matched-i.yaml
408
B
-rw-r--r--
matched_size-i.yaml
578
B
-rw-r--r--
matchedsize-i.yaml
302
B
-rw-r--r--
must_C_version-c.yaml
307
B
-rw-r--r--
new-c.yaml
371
B
-rw-r--r--
peek-i.yaml
496
B
-rw-r--r--
peep-i.yaml
274
B
-rw-r--r--
pointer%3d-i.yaml
413
B
-rw-r--r--
pointer-i.yaml
775
B
-rw-r--r--
pos%3d-i.yaml
405
B
-rw-r--r--
pos-i.yaml
767
B
-rw-r--r--
post_match-i.yaml
598
B
-rw-r--r--
pre_match-i.yaml
595
B
-rw-r--r--
reset-i.yaml
265
B
-rw-r--r--
rest%3f-i.yaml
472
B
-rw-r--r--
rest-i.yaml
364
B
-rw-r--r--
rest_size-i.yaml
275
B
-rw-r--r--
restsize-i.yaml
323
B
-rw-r--r--
scan-i.yaml
729
B
-rw-r--r--
scan_full-i.yaml
617
B
-rw-r--r--
scan_until-i.yaml
718
B
-rw-r--r--
search_full-i.yaml
571
B
-rw-r--r--
skip-i.yaml
798
B
-rw-r--r--
skip_until-i.yaml
906
B
-rw-r--r--
string%3d-i.yaml
321
B
-rw-r--r--
string-i.yaml
243
B
-rw-r--r--
terminate-i.yaml
306
B
-rw-r--r--
unscan-i.yaml
649
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : cdesc-StringScanner.yaml
--- !ruby/object:RI::ClassDescription attributes: [] class_methods: - !ruby/object:RI::MethodSummary name: must_C_version - !ruby/object:RI::MethodSummary name: new comment: - !ruby/struct:SM::Flow::P body: "StringScanner provides for lexical scanning operations on a String. Here is an example of its usage:" - !ruby/struct:SM::Flow::VERB body: " s = StringScanner.new('This is an example string')\n s.eos? # -> false\n\n p s.scan(/\\w+/) # -> "This"\n p s.scan(/\\w+/) # -> nil\n p s.scan(/\\s+/) # -> " "\n p s.scan(/\\s+/) # -> nil\n p s.scan(/\\w+/) # -> "is"\n s.eos? # -> false\n\n p s.scan(/\\s+/) # -> " "\n p s.scan(/\\w+/) # -> "an"\n p s.scan(/\\s+/) # -> " "\n p s.scan(/\\w+/) # -> "example"\n p s.scan(/\\s+/) # -> " "\n p s.scan(/\\w+/) # -> "string"\n s.eos? # -> true\n\n p s.scan(/\\s+/) # -> nil\n p s.scan(/\\w+/) # -> nil\n" - !ruby/struct:SM::Flow::P body: Scanning a string means remembering the position of a <em>scan pointer</em>, which is just an index. The point of scanning is to move forward a bit at a time, so matches are sought after the scan pointer; usually immediately after it. - !ruby/struct:SM::Flow::P body: "Given the string "test string", here are the pertinent scan pointer positions:" - !ruby/struct:SM::Flow::VERB body: " t e s t s t r i n g\n 0 1 2 ... 1\n 0\n" - !ruby/struct:SM::Flow::P body: "When you #scan for a pattern (a regular expression), the match must occur at the character after the scan pointer. If you use #scan_until, then the match can occur anywhere after the scan pointer. In both cases, the scan pointer moves <em>just beyond</em> the last character of the match, ready to scan again from the next character onwards. This is demonstrated by the example above." - !ruby/struct:SM::Flow::H level: 2 text: Method Categories - !ruby/struct:SM::Flow::P body: There are other methods besides the plain scanners. You can look ahead in the string without actually scanning. You can access the most recent match. You can modify the string being scanned, reset or terminate the scanner, find out or change the position of the scan pointer, skip ahead, and so on. - !ruby/struct:SM::Flow::H level: 3 text: Advancing the Scan Pointer - !ruby/object:SM::Flow::LIST contents: - !ruby/struct:SM::Flow::LI label: "-" body: "#getch" - !ruby/struct:SM::Flow::LI label: "-" body: "#get_byte" - !ruby/struct:SM::Flow::LI label: "-" body: "#scan" - !ruby/struct:SM::Flow::LI label: "-" body: "#scan_until" - !ruby/struct:SM::Flow::LI label: "-" body: "#skip" - !ruby/struct:SM::Flow::LI label: "-" body: "#skip_until" type: :BULLET - !ruby/struct:SM::Flow::H level: 3 text: Looking Ahead - !ruby/object:SM::Flow::LIST contents: - !ruby/struct:SM::Flow::LI label: "-" body: "#check" - !ruby/struct:SM::Flow::LI label: "-" body: "#check_until" - !ruby/struct:SM::Flow::LI label: "-" body: "#exist?" - !ruby/struct:SM::Flow::LI label: "-" body: "#match?" - !ruby/struct:SM::Flow::LI label: "-" body: "#peek" type: :BULLET - !ruby/struct:SM::Flow::H level: 3 text: Finding Where we Are - !ruby/object:SM::Flow::LIST contents: - !ruby/struct:SM::Flow::LI label: "-" body: "#beginning_of_line? (#bol?)" - !ruby/struct:SM::Flow::LI label: "-" body: "#eos?" - !ruby/struct:SM::Flow::LI label: "-" body: "#rest?" - !ruby/struct:SM::Flow::LI label: "-" body: "#rest_size" - !ruby/struct:SM::Flow::LI label: "-" body: "#pos" type: :BULLET - !ruby/struct:SM::Flow::H level: 3 text: Setting Where we Are - !ruby/object:SM::Flow::LIST contents: - !ruby/struct:SM::Flow::LI label: "-" body: "#reset" - !ruby/struct:SM::Flow::LI label: "-" body: "#terminate" - !ruby/struct:SM::Flow::LI label: "-" body: "#pos=" type: :BULLET - !ruby/struct:SM::Flow::H level: 3 text: Match Data - !ruby/object:SM::Flow::LIST contents: - !ruby/struct:SM::Flow::LI label: "-" body: "#matched" - !ruby/struct:SM::Flow::LI label: "-" body: "#matched?" - !ruby/struct:SM::Flow::LI label: "-" body: "#matched_size" - !ruby/struct:SM::Flow::LI label: "-" body: "[]" - !ruby/struct:SM::Flow::LI label: "-" body: "#pre_match" - !ruby/struct:SM::Flow::LI label: "-" body: "#post_match" type: :BULLET - !ruby/struct:SM::Flow::H level: 3 text: Miscellaneous - !ruby/object:SM::Flow::LIST contents: - !ruby/struct:SM::Flow::LI label: "-" body: "<<" - !ruby/struct:SM::Flow::LI label: "-" body: "#concat" - !ruby/struct:SM::Flow::LI label: "-" body: "#string" - !ruby/struct:SM::Flow::LI label: "-" body: "#string=" - !ruby/struct:SM::Flow::LI label: "-" body: "#unscan" type: :BULLET - !ruby/struct:SM::Flow::P body: There are aliases to several of the methods. constants: [] full_name: StringScanner includes: [] instance_methods: - !ruby/object:RI::MethodSummary name: "<<" - !ruby/object:RI::MethodSummary name: "[]" - !ruby/object:RI::MethodSummary name: beginning_of_line? - !ruby/object:RI::MethodSummary name: check - !ruby/object:RI::MethodSummary name: check_until - !ruby/object:RI::MethodSummary name: clear - !ruby/object:RI::MethodSummary name: concat - !ruby/object:RI::MethodSummary name: empty? - !ruby/object:RI::MethodSummary name: eos? - !ruby/object:RI::MethodSummary name: exist? - !ruby/object:RI::MethodSummary name: get_byte - !ruby/object:RI::MethodSummary name: getbyte - !ruby/object:RI::MethodSummary name: getch - !ruby/object:RI::MethodSummary name: initialize_copy - !ruby/object:RI::MethodSummary name: inspect - !ruby/object:RI::MethodSummary name: match? - !ruby/object:RI::MethodSummary name: matched - !ruby/object:RI::MethodSummary name: matched? - !ruby/object:RI::MethodSummary name: matched_size - !ruby/object:RI::MethodSummary name: matchedsize - !ruby/object:RI::MethodSummary name: peek - !ruby/object:RI::MethodSummary name: peep - !ruby/object:RI::MethodSummary name: pointer - !ruby/object:RI::MethodSummary name: pointer= - !ruby/object:RI::MethodSummary name: pos - !ruby/object:RI::MethodSummary name: pos= - !ruby/object:RI::MethodSummary name: post_match - !ruby/object:RI::MethodSummary name: pre_match - !ruby/object:RI::MethodSummary name: reset - !ruby/object:RI::MethodSummary name: rest - !ruby/object:RI::MethodSummary name: rest? - !ruby/object:RI::MethodSummary name: rest_size - !ruby/object:RI::MethodSummary name: restsize - !ruby/object:RI::MethodSummary name: scan - !ruby/object:RI::MethodSummary name: scan_full - !ruby/object:RI::MethodSummary name: scan_until - !ruby/object:RI::MethodSummary name: search_full - !ruby/object:RI::MethodSummary name: skip - !ruby/object:RI::MethodSummary name: skip_until - !ruby/object:RI::MethodSummary name: string - !ruby/object:RI::MethodSummary name: string= - !ruby/object:RI::MethodSummary name: terminate - !ruby/object:RI::MethodSummary name: unscan name: StringScanner superclass: Object
Close