📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: Apache
2026-06-22 08:47:59
📂
/ (Root)
/
opt
/
alt
/
ruby30
/
share
/
ri
/
system
/
StringScanner
📍 /opt/alt/ruby30/share/ri/system/StringScanner
🔄 Refresh
✏️
Editing: charpos-i.ri
Read Only
U:RDoc::AnyMethod[iI"charpos:ETI"StringScanner#charpos;TF:privateo:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I"XReturns the character position of the scan pointer. In the 'reset' position, this ;TI"Rvalue is zero. In the 'terminated' position (i.e. the string is exhausted), ;TI"*this value is the size of the string.;To:RDoc::Markup::BlankLine o; ; [I"4In short, it's a 0-based index into the string.;T@o:RDoc::Markup::Verbatim; [ I",s = StringScanner.new("abcädeföghi") ;TI" s.charpos # -> 0 ;TI"'s.scan_until(/ä/) # -> "abcä" ;TI" s.pos # -> 5 ;TI"s.charpos # -> 4;T:@format0: @fileI"ext/strscan/strscan.c;T:0@omit_headings_from_table_of_contents_below000[ I"();T@FI"StringScanner;TcRDoc::NormalClass00
💾 Save Changes
❌ Cancel