Just another update
This commit is contained in:
parent
a25938f123
commit
00a190b0a6
6591 changed files with 94363 additions and 23227 deletions
2
Task/Unicode-strings/Ruby/unicode-strings-1.rb
Normal file
2
Task/Unicode-strings/Ruby/unicode-strings-1.rb
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
str = "你好"
|
||||
str.include?("好") # => true
|
||||
4
Task/Unicode-strings/Ruby/unicode-strings-3.rb
Normal file
4
Task/Unicode-strings/Ruby/unicode-strings-3.rb
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
p bad = "¿como\u0301 esta\u0301s?" # => "¿comó estás?"
|
||||
p bad.unicode_normalized? # => false
|
||||
p bad.unicode_normalize! # => "¿comó estás?"
|
||||
p bad.unicode_normalized? # => true
|
||||
Loading…
Add table
Add a link
Reference in a new issue