Method: StringScanner#as_utf8
- Defined in:
- lib/utf8/string_scanner.rb
#as_utf8 ⇒ Object
Returns an UTF8-aware version of StringScanner wrapping your original string
NOTE: this will lose all state associated with the current StringScanner instance (like the current scan position)
8 9 10 |
# File 'lib/utf8/string_scanner.rb', line 8 def as_utf8 StringScanner::UTF8.new(self.string.as_utf8) end |