$64 GRAYBYTE WORDPRESS FILE MANAGER $91

SERVER : premium201.web-hosting.com #1 SMP Wed Mar 26 12:08:09 UTC 2025
SERVER IP : 104.21.43.35 | ADMIN IP 216.73.216.180
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : mail

/opt/alt/ruby18/share/ri/1.8/system/StringScanner/

HOME
Current File : /opt/alt/ruby18/share/ri/1.8/system/StringScanner//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 &quot;test string&quot;, 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: "&lt;&lt;"
  - !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


Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
3 Mar 2024 10.50 PM
root / linksafe
0755
Error
--
3 Mar 2024 10.50 PM
root / linksafe
0755
%3c%3c-i.yaml
0.584 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
%5b%5d-i.yaml
0.801 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
beginning_of_line%3f-i.yaml
0.573 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
cdesc-StringScanner.yaml
7.411 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
check-i.yaml
0.784 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
check_until-i.yaml
0.724 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
clear-i.yaml
0.277 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
concat-i.yaml
0.59 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
empty%3f-i.yaml
0.27 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
eos%3f-i.yaml
0.483 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
exist%3f-i.yaml
0.647 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
get_byte-i.yaml
0.674 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
getbyte-i.yaml
0.279 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
getch-i.yaml
0.688 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
initialize_copy-i.yaml
0.27 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
inspect-i.yaml
0.888 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
match%3f-i.yaml
0.566 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
matched%3f-i.yaml
0.483 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
matched-i.yaml
0.398 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
matched_size-i.yaml
0.564 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
matchedsize-i.yaml
0.295 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
must_C_version-c.yaml
0.3 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
new-c.yaml
0.362 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
peek-i.yaml
0.484 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
peep-i.yaml
0.268 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
pointer%3d-i.yaml
0.403 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
pointer-i.yaml
0.757 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
pos%3d-i.yaml
0.396 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
pos-i.yaml
0.749 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
post_match-i.yaml
0.584 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
pre_match-i.yaml
0.581 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
reset-i.yaml
0.259 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
rest%3f-i.yaml
0.461 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
rest-i.yaml
0.355 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
rest_size-i.yaml
0.269 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
restsize-i.yaml
0.315 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
scan-i.yaml
0.712 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
scan_full-i.yaml
0.603 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
scan_until-i.yaml
0.701 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
search_full-i.yaml
0.558 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
skip-i.yaml
0.779 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
skip_until-i.yaml
0.885 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
string%3d-i.yaml
0.313 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
string-i.yaml
0.237 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
terminate-i.yaml
0.299 KB
26 Jul 2023 1.47 PM
root / linksafe
0644
unscan-i.yaml
0.634 KB
26 Jul 2023 1.47 PM
root / linksafe
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025 CONTACT ME
Static GIF