Class: UnicodeUtils::Impl::MoreAboveConditionalCasing
- Inherits:
-
ConditionalCasing
- Object
- ConditionalCasing
- UnicodeUtils::Impl::MoreAboveConditionalCasing
- Defined in:
- lib/unicode_utils/conditional_casing.rb
Instance Attribute Summary
Attributes inherited from ConditionalCasing
Instance Method Summary collapse
Methods inherited from ConditionalCasing
Constructor Details
This class inherits a constructor from UnicodeUtils::Impl::ConditionalCasing
Instance Method Details
#context_match?(str, pos) ⇒ Boolean
53 54 55 56 57 58 59 60 61 |
# File 'lib/unicode_utils/conditional_casing.rb', line 53 def context_match?(str, pos) (pos + 1).upto(str.length - 1) { |i| c = str[i] cc = UnicodeUtils.combining_class(c) return true if cc == 230 return false if cc == 0 } false end |