Class: TwitterCldr::Segmentation::ThaiBreakEngine
- Inherits:
-
Object
- Object
- TwitterCldr::Segmentation::ThaiBreakEngine
- Extended by:
- Forwardable
- Includes:
- Singleton
- Defined in:
- lib/twitter_cldr/segmentation/thai_break_engine.rb
Overview
Constant Summary collapse
- THAI_PAIYANNOI =
ellision character
0x0E2F
- THAI_MAIYAMOK =
repeat character
0x0E46
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.word_set ⇒ Object
20 21 22 23 24 25 26 |
# File 'lib/twitter_cldr/segmentation/thai_break_engine.rb', line 20 def self.word_set @word_set ||= begin uset = TwitterCldr::Shared::UnicodeSet.new uset.apply_pattern('[[:Thai:]&[:Line_Break=SA:]]') uset.to_set end end |
Instance Method Details
#each_boundary(*args, &block) ⇒ Object
34 35 36 |
# File 'lib/twitter_cldr/segmentation/thai_break_engine.rb', line 34 def each_boundary(*args, &block) engine.each_boundary(*args, &block) end |