📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: Apache
2026-06-22 08:17:06
📂
/ (Root)
/
opt
/
alt
/
ruby33
/
share
/
ri
/
system
/
StringScanner
📍 /opt/alt/ruby33/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"4s = StringScanner.new("abc\u00e4def\u00f6ghi") ;TI"%s.charpos # -> 0 ;TI"/s.scan_until(/\u00e4/) # -> "abc\u00E4" ;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