Class Sass::Util::MultibyteStringScanner
In: lib/sass/util/multibyte_string_scanner.rb
Parent: StringScanner

A wrapper of the native StringScanner class that works correctly with multibyte character encodings. The native class deals only in bytes, not characters, for methods like [pos] and [matched_size]. This class deals only in characters, instead.

Methods

check   check_until   clear   get_byte   getbyte   getch   match?   matched_size   new   new   peek   peep   pointer   pos   pos=   reset   rest_size   scan   scan_full   scan_until   search_full   skip   skip_until   string=   terminate   unscan  

External Aliases

pos -> byte_pos
matched_size -> byte_matched_size

Public Class methods

Public Instance methods

clear()

Alias for terminate

peep(len)

Alias for peek

pointer()

Alias for pos

[Validate]