Class: Chars (ActiveSupport::Multibyte)

Overview
Module Structure
Class Hierarchy
Constants
Chars::HANGUL_SBASE
Chars::HANGUL_LBASE
Chars::HANGUL_VBASE
Chars::HANGUL_TBASE
Chars::HANGUL_LCOUNT
Chars::HANGUL_VCOUNT
Chars::HANGUL_TCOUNT
Chars::HANGUL_NCOUNT
Chars::HANGUL_SCOUNT
Chars::HANGUL_SLAST
Chars::HANGUL_JAMO_FIRST
Chars::HANGUL_JAMO_LAST
Chars::UNICODE_WHITESPACE
Chars::UNICODE_LEADERS_AND_TRAILERS
Chars::UNICODE_TRAILERS_PAT
Chars::UNICODE_LEADERS_PAT
Chars::UTF8_PAT
Class Methods
Chars.codepoints_to_pattern / 1
Chars.wants? / 1
Chars.consumes? / 1
Chars.u_unpack / 1
Chars.in_char_class? / 2
Chars.g_unpack / 1
Chars.g_pack / 1
Chars.padding / 2
Chars.reorder_characters / 1
Chars.decompose_codepoints / 2
Chars.compose_codepoints / 1
Chars.tidy_bytes (2/E) / 1
Chars.translate_offset / 1
Chars.justify / 3
Chars.apply_mapping / 1
Chars.chars / 1
Instance Aliases
Chars#to_s
Chars#to_str
Instance Attributes
Chars#wrapped_string [R]
Instance Methods
Chars#initialize (1/2) / 1
Chars#initialize (2/E) / 1
Chars#method_missing / 3
Chars#respond_to? / 2
Chars#acts_like_string?
Chars#<=> / 1
Chars#+ / 1
Chars#=~ / 1
Chars#split / 1
Chars#insert / 2
Chars#include? / 1
Chars#index / 2
Chars#rindex / 2
Chars#[]= / 1
Chars#rjust / 2
Chars#ljust / 2
Chars#center / 2
Chars#rstrip
Chars#lstrip
Chars#strip
Chars#size
Chars#reverse
Chars#slice / 1
Chars#slice! / 1
Chars#ord
Chars#upcase
Chars#downcase
Chars#capitalize
Chars#normalize / 1
Chars#decompose
Chars#compose
Chars#g_length
Chars#tidy_bytes (1/2)
is a submodule of
module: Multibyte ( ActiveSupport )
includes
  Comparable ( Builtin-Module )
inherits from
  Object ( Builtin-Module )
has properties
constant: HANGUL_SBASE   
constant: HANGUL_LBASE   
constant: HANGUL_VBASE   
constant: HANGUL_TBASE   
constant: HANGUL_LCOUNT   
constant: HANGUL_VCOUNT   
constant: HANGUL_TCOUNT   
constant: HANGUL_NCOUNT   
constant: HANGUL_SCOUNT   
constant: HANGUL_SLAST   
constant: HANGUL_JAMO_FIRST   
constant: HANGUL_JAMO_LAST   
constant: UNICODE_WHITESPACE   
constant: UNICODE_LEADERS_AND_TRAILERS   
class method: codepoints_to_pattern / 1   
constant: UNICODE_TRAILERS_PAT   
constant: UNICODE_LEADERS_PAT   
constant: UTF8_PAT   
attribute: wrapped_string [R]   
alias: to_s wrapped_string   
alias: to_str wrapped_string   
method: initialize (1/2) / 1   
method: initialize (2/E) / 1   
method: method_missing / 3   
method: respond_to? / 2   
method: acts_like_string?   
class method: wants? / 1   
class method: consumes? / 1   
method: <=> / 1   
method: + / 1   
method: =~ / 1   
method: split / 1   
method: insert / 2   
method: include? / 1   
method: index / 2   
method: rindex / 2   
method: []= / 1   
method: rjust / 2   
method: ljust / 2   
method: center / 2   
method: rstrip   
method: lstrip   
method: strip   
method: size   
method: reverse   
method: slice / 1   
method: slice! / 1   
method: ord   
method: upcase   
method: downcase   
method: capitalize   
method: normalize / 1   
method: decompose   
method: compose   
method: g_length   
method: tidy_bytes (1/2)   
class method: u_unpack / 1   
class method: in_char_class? / 2   
class method: g_unpack / 1   
class method: g_pack / 1   
class method: padding / 2   
class method: reorder_characters / 1   
class method: decompose_codepoints / 2   
class method: compose_codepoints / 1   
class method: tidy_bytes (2/E) / 1   
class method: translate_offset / 1   
class method: justify / 3   
class method: apply_mapping / 1   
class method: chars / 1   
is defined at
#34 in active_support/multibyte/chars.rb  

Overview

Module Structure

  module: <Toplevel Module>
  module: <Built-in Module>
module: Comparable     
class: Object     
  module: ActiveSupport
  module: Multibyte
class: Chars     

Class Hierarchy

Object ( Builtin-Module )
includes
  InstanceExecMethods ( Unknown-Module )
has properties
method: duplicable?   
method: ` / 1   
method: blank?   
method: present?   
method: presence   
method: to_param   
method: to_query / 1   
method: remove_subclasses_of / 1   
method: subclasses_of (1/2) / 1   
method: subclasses_of (2/E) / 1   
method: extended_by   
method: extend_with_included_modules_from / 1   
method: instance_exec / 2   
method: instance_variable_defined? / 1   
method: instance_values   
method: instance_variable_names   
method: copy_instance_variables_from / 2   
method: metaclass   
method: returning / 1   
method: tap   
method: with_options / 1   
method: acts_like? / 1   
method: singleton_class   
method: class_eval / 2   
method: html_safe?   
method: try / 3   
method: to_json / 1   
method: as_json / 1   
class method: method_added / 1   
class method: find_hidden_method / 1   
Chars ( ActiveSupport::Multibyte )
includes
  Comparable ( Builtin-Module )
has properties
constant: HANGUL_SBASE   
constant: HANGUL_LBASE   
constant: HANGUL_VBASE   
constant: HANGUL_TBASE   
constant: HANGUL_LCOUNT   
constant: HANGUL_VCOUNT   
constant: HANGUL_TCOUNT   
constant: HANGUL_NCOUNT   
constant: HANGUL_SCOUNT   
constant: HANGUL_SLAST   
constant: HANGUL_JAMO_FIRST   
constant: HANGUL_JAMO_LAST   
constant: UNICODE_WHITESPACE   
constant: UNICODE_LEADERS_AND_TRAILERS   
class method: codepoints_to_pattern / 1   
constant: UNICODE_TRAILERS_PAT   
constant: UNICODE_LEADERS_PAT   
constant: UTF8_PAT   
attribute: wrapped_string [R]   
alias: to_s wrapped_string   
alias: to_str wrapped_string   
method: initialize (1/2) / 1   
method: initialize (2/E) / 1   
method: method_missing / 3   
method: respond_to? / 2   
method: acts_like_string?   
class method: wants? / 1   
class method: consumes? / 1   
method: <=> / 1   
method: + / 1   
method: =~ / 1   
method: split / 1   
method: insert / 2   
method: include? / 1   
method: index / 2   
method: rindex / 2   
method: []= / 1   
method: rjust / 2   
method: ljust / 2   
method: center / 2   
method: rstrip   
method: lstrip   
method: strip   
method: size   
method: reverse   
method: slice / 1   
method: slice! / 1   
method: ord   
method: upcase   
method: downcase   
method: capitalize   
method: normalize / 1   
method: decompose   
method: compose   
method: g_length   
method: tidy_bytes (1/2)   
class method: u_unpack / 1   
class method: in_char_class? / 2   
class method: g_unpack / 1   
class method: g_pack / 1   
class method: padding / 2   
class method: reorder_characters / 1   
class method: decompose_codepoints / 2   
class method: compose_codepoints / 1   
class method: tidy_bytes (2/E) / 1   
class method: translate_offset / 1   
class method: justify / 3   
class method: apply_mapping / 1   
class method: chars / 1   

Constants

Chars::HANGUL_SBASE

#36 in active_support/multibyte/chars.rb

HANGUL_SBASE = 0xAC00   

Chars::HANGUL_LBASE

#37 in active_support/multibyte/chars.rb

HANGUL_LBASE = 0x1100   

Chars::HANGUL_VBASE

#38 in active_support/multibyte/chars.rb

HANGUL_VBASE = 0x1161   

Chars::HANGUL_TBASE

#39 in active_support/multibyte/chars.rb

HANGUL_TBASE = 0x11A7   

Chars::HANGUL_LCOUNT

#40 in active_support/multibyte/chars.rb

HANGUL_LCOUNT = 19   

Chars::HANGUL_VCOUNT

#41 in active_support/multibyte/chars.rb

HANGUL_VCOUNT = 21   

Chars::HANGUL_TCOUNT

#42 in active_support/multibyte/chars.rb

HANGUL_TCOUNT = 28   

Chars::HANGUL_NCOUNT

#43 in active_support/multibyte/chars.rb

HANGUL_NCOUNT = HANGUL_VCOUNT * HANGUL_TCOUNT   

Chars::HANGUL_SCOUNT

#44 in active_support/multibyte/chars.rb

HANGUL_SCOUNT = 11172   

Chars::HANGUL_SLAST

#45 in active_support/multibyte/chars.rb

HANGUL_SLAST = HANGUL_SBASE + HANGUL_SCOUNT   

Chars::HANGUL_JAMO_FIRST

#46 in active_support/multibyte/chars.rb

HANGUL_JAMO_FIRST = 0x1100   

Chars::HANGUL_JAMO_LAST

#47 in active_support/multibyte/chars.rb

HANGUL_JAMO_LAST = 0x11FF   

Chars::UNICODE_WHITESPACE

#50 in active_support/multibyte/chars.rb

UNICODE_WHITESPACE = [   

Chars::UNICODE_LEADERS_AND_TRAILERS

#67 in active_support/multibyte/chars.rb

UNICODE_LEADERS_AND_TRAILERS = UNICODE_WHITESPACE + [65279] # ZERO-WIDTH NO-BREAK SPACE aka BOM   

Chars::UNICODE_TRAILERS_PAT

#73 in active_support/multibyte/chars.rb

UNICODE_TRAILERS_PAT = /(#{codepoints_to_pattern(UNICODE_LEADERS_AND_TRAILERS)})+\Z/   

Chars::UNICODE_LEADERS_PAT

#74 in active_support/multibyte/chars.rb

UNICODE_LEADERS_PAT = /\A(#{codepoints_to_pattern(UNICODE_LEADERS_AND_TRAILERS)})+/   

Chars::UTF8_PAT

#76 in active_support/multibyte/chars.rb

UTF8_PAT = ActiveSupport::Multibyte::VALID_CHARACTER['UTF-8']   

Class Methods

Chars.codepoints_to_pattern / 1

#70 in active_support/multibyte/chars.rb

codepoints_to_pattern ( array_of_codepoints )

Chars.wants? / 1

#118 in active_support/multibyte/chars.rb

wants? ( string )

Chars.consumes? / 1

#123 in active_support/multibyte/chars.rb

consumes? ( string )

Chars.u_unpack / 1

#471 in active_support/multibyte/chars.rb

u_unpack ( string )

Chars.in_char_class? / 2

#484 in active_support/multibyte/chars.rb

in_char_class? ( codepoint ,
  classes )

Chars.g_unpack / 1

#493 in active_support/multibyte/chars.rb

g_unpack ( string )

Chars.g_pack / 1

#527 in active_support/multibyte/chars.rb

g_pack ( unpacked )

Chars.padding / 2

#531 in active_support/multibyte/chars.rb

padding ( padsize ,
  padstr=' ' )

Chars.reorder_characters / 1

#540 in active_support/multibyte/chars.rb

reorder_characters ( codepoints )

Chars.decompose_codepoints / 2

#556 in active_support/multibyte/chars.rb

decompose_codepoints ( type ,
  codepoints )

Chars.compose_codepoints / 1

#577 in active_support/multibyte/chars.rb

compose_codepoints ( codepoints )

Chars.tidy_bytes (2/E) / 1

#636 in active_support/multibyte/chars.rb

tidy_bytes ( string )

Chars.translate_offset / 1

#654 in active_support/multibyte/chars.rb

translate_offset ( byte_offset )

Chars.justify / 3

#674 in active_support/multibyte/chars.rb

justify ( integer ,
  way ,
  padstr=' ' )

Chars.apply_mapping / 1

#691 in active_support/multibyte/chars.rb

apply_mapping ( mapping )

Chars.chars / 1

#702 in active_support/multibyte/chars.rb

chars ( string )

Instance Aliases

Chars#to_s

#79 in active_support/multibyte/chars.rb

to_s wrapped_string   

Chars#to_str

#80 in active_support/multibyte/chars.rb

to_str wrapped_string   

Instance Attributes

Chars#wrapped_string [R]

#78 in active_support/multibyte/chars.rb

Instance Methods

Chars#initialize (1/2) / 1

#84 in active_support/multibyte/chars.rb

initialize ( string )

Chars#initialize (2/E) / 1

#89 in active_support/multibyte/chars.rb

initialize ( string )

Chars#method_missing / 3

#95 in active_support/multibyte/chars.rb

method_missing ( method ,
  *args ,
  &block )

Chars#respond_to? / 2

#107 in active_support/multibyte/chars.rb

respond_to? ( method ,
  include_private=false )

Chars#acts_like_string?

#112 in active_support/multibyte/chars.rb

acts_like_string?

Chars#<=> / 1

#139 in active_support/multibyte/chars.rb

<=> ( other )

Chars#+ / 1

#147 in active_support/multibyte/chars.rb

+ ( other )

Chars#=~ / 1

#155 in active_support/multibyte/chars.rb

=~ ( other )

Chars#split / 1

#164 in active_support/multibyte/chars.rb

split ( *args )

Chars#insert / 2

#172 in active_support/multibyte/chars.rb

insert ( offset ,
  fragment )

Chars#include? / 1

#188 in active_support/multibyte/chars.rb

include? ( other )

Chars#index / 2

#198 in active_support/multibyte/chars.rb

index ( needle ,
  offset=0 )

Chars#rindex / 2

#211 in active_support/multibyte/chars.rb

rindex ( needle ,
  offset=nil )

Chars#[]= / 1

#231 in active_support/multibyte/chars.rb

[]= ( *args )

Chars#rjust / 2

#267 in active_support/multibyte/chars.rb

rjust ( integer ,
  padstr=' ' )

Chars#ljust / 2

#280 in active_support/multibyte/chars.rb

ljust ( integer ,
  padstr=' ' )

Chars#center / 2

#293 in active_support/multibyte/chars.rb

center ( integer ,
  padstr=' ' )

Chars#rstrip

#298 in active_support/multibyte/chars.rb

rstrip

Chars#lstrip

#303 in active_support/multibyte/chars.rb

lstrip

Chars#reverse

#322 in active_support/multibyte/chars.rb

reverse

Chars#slice / 1

#331 in active_support/multibyte/chars.rb

slice ( *args )

Chars#slice! / 1

#359 in active_support/multibyte/chars.rb

slice! ( *args )

Chars#upcase

#377 in active_support/multibyte/chars.rb

upcase

Chars#downcase

#385 in active_support/multibyte/chars.rb

downcase

Chars#capitalize

#393 in active_support/multibyte/chars.rb

capitalize

Chars#normalize / 1

#404 in active_support/multibyte/chars.rb

normalize ( form=ActiveSupport::Multibyte.default_normalization_form )

Chars#decompose

#426 in active_support/multibyte/chars.rb

decompose

Chars#compose

#435 in active_support/multibyte/chars.rb

compose

Chars#g_length

#444 in active_support/multibyte/chars.rb

g_length

Chars#tidy_bytes (1/2)

#449 in active_support/multibyte/chars.rb

tidy_bytes