summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorBurdetteLamar <burdettelamar@yahoo.com>2025-12-27 13:50:32 +0000
committerPeter Zhu <peter@peterzhu.ca>2025-12-27 10:59:23 -0500
commit38d24294acdf2fba8ab54fc05483e881b16dc7f1 (patch)
tree2452a8c88b7060c19b1710c394e050b907c6a6e1 /doc
parenta8c3d5e127776d74eb068c95610277feb99adcf0 (diff)
[DOC] Multibyte chars Japanese only
Diffstat (limited to 'doc')
-rw-r--r--doc/string/aref.rdoc2
-rw-r--r--doc/string/aset.rdoc4
-rw-r--r--doc/string/bytes.rdoc1
-rw-r--r--doc/string/bytesize.rdoc3
-rw-r--r--doc/string/capitalize.rdoc2
-rw-r--r--doc/string/center.rdoc1
-rw-r--r--doc/string/chars.rdoc1
-rw-r--r--doc/string/swapcase.rdoc1
8 files changed, 0 insertions, 15 deletions
diff --git a/doc/string/aref.rdoc b/doc/string/aref.rdoc
index ee4c3d33d4..59c6ae97ac 100644
--- a/doc/string/aref.rdoc
+++ b/doc/string/aref.rdoc
@@ -8,7 +8,6 @@ returns the 1-character substring found in self at character offset index:
'hello'[0] # => "h"
'hello'[4] # => "o"
'hello'[5] # => nil
- 'Привет'[2] # => "и"
'こんにちは'[4] # => "は"
With negative integer argument +index+ given,
@@ -92,7 +91,6 @@ returns the matching substring of +self+, if found:
'hello'['ell'] # => "ell"
'hello'[''] # => ""
'hello'['nosuch'] # => nil
- 'Привет'['ив'] # => "ив"
'こんにちは'['んにち'] # => "んにち"
Related: see {Converting to New String}[rdoc-ref:String@Converting+to+New+String].
diff --git a/doc/string/aset.rdoc b/doc/string/aset.rdoc
index db9079ebfb..98c58b59cc 100644
--- a/doc/string/aset.rdoc
+++ b/doc/string/aset.rdoc
@@ -170,10 +170,6 @@ With string argument +substring+ given:
s['ll'] = 'foo' # => "foo"
s # => "hefooo"
- s = 'Привет'
- s['ив'] = 'foo' # => "foo"
- s # => "Прfooет"
-
s = 'こんにちは'
s['んにち'] = 'foo' # => "foo"
s # => "こfooは"
diff --git a/doc/string/bytes.rdoc b/doc/string/bytes.rdoc
index 3815f13276..6dde0a745d 100644
--- a/doc/string/bytes.rdoc
+++ b/doc/string/bytes.rdoc
@@ -1,7 +1,6 @@
Returns an array of the bytes in +self+:
'hello'.bytes # => [104, 101, 108, 108, 111]
- 'Привет'.bytes # => [208, 159, 209, 128, 208, 184, 208, 178, 208, 181, 209, 130]
'こんにちは'.bytes
# => [227, 129, 147, 227, 130, 147, 227, 129, 171, 227, 129, 161, 227, 129, 175]
diff --git a/doc/string/bytesize.rdoc b/doc/string/bytesize.rdoc
index cbb7f439fc..8d12a0d454 100644
--- a/doc/string/bytesize.rdoc
+++ b/doc/string/bytesize.rdoc
@@ -5,9 +5,6 @@ Note that the byte count may be different from the character count (returned by
s = 'foo'
s.bytesize # => 3
s.size # => 3
- s = 'Привет'
- s.bytesize # => 12
- s.size # => 6
s = 'こんにちは'
s.bytesize # => 15
s.size # => 5
diff --git a/doc/string/capitalize.rdoc b/doc/string/capitalize.rdoc
index 9b26c02153..3a1a2dcb8b 100644
--- a/doc/string/capitalize.rdoc
+++ b/doc/string/capitalize.rdoc
@@ -10,8 +10,6 @@ Examples:
'HELLO'.capitalize # => "Hello"
'straße'.capitalize # => "Straße" # Lowercase 'ß' not changed.
'STRAẞE'.capitalize # => "Straße" # Uppercase 'ẞ' downcased to 'ß'.
- 'привет'.capitalize # => "Привет"
- 'ПРИВЕТ'.capitalize # => "Привет"
Some characters (and some character sets) do not have upcase and downcase versions;
see {Case Mapping}[rdoc-ref:case_mapping.rdoc]:
diff --git a/doc/string/center.rdoc b/doc/string/center.rdoc
index 3116d21117..b86c8b5916 100644
--- a/doc/string/center.rdoc
+++ b/doc/string/center.rdoc
@@ -9,7 +9,6 @@ centered and padded on one or both ends with +pad_string+:
'hello'.center(20, '-|') # => "-|-|-|-hello-|-|-|-|" # Some padding repeated.
'hello'.center(10, 'abcdefg') # => "abhelloabc" # Some padding not used.
' hello '.center(13) # => " hello "
- 'Привет'.center(10) # => " Привет "
'こんにちは'.center(10) # => " こんにちは " # Multi-byte characters.
If +size+ is less than or equal to the size of +self+, returns an unpadded copy of +self+:
diff --git a/doc/string/chars.rdoc b/doc/string/chars.rdoc
index 97ea07331f..d4d15bf2ad 100644
--- a/doc/string/chars.rdoc
+++ b/doc/string/chars.rdoc
@@ -1,7 +1,6 @@
Returns an array of the characters in +self+:
'hello'.chars # => ["h", "e", "l", "l", "o"]
- 'Привет'.chars # => ["П", "р", "и", "в", "е", "т"]
'こんにちは'.chars # => ["こ", "ん", "に", "ち", "は"]
''.chars # => []
diff --git a/doc/string/swapcase.rdoc b/doc/string/swapcase.rdoc
index 916e711b7e..4353c8528a 100644
--- a/doc/string/swapcase.rdoc
+++ b/doc/string/swapcase.rdoc
@@ -7,7 +7,6 @@ Examples:
'Hello'.swapcase # => "hELLO"
'Straße'.swapcase # => "sTRASSE"
- 'Привет'.swapcase # => "пРИВЕТ"
'RubyGems.org'.swapcase # => "rUBYgEMS.ORG"
The sizes of +self+ and the upcased result may differ: