Skip to content

Commit a92c034

Browse files
BurdetteLamarpeterzhu2118
authored andcommitted
[DOC] Japanese only for multi-byte chars examples
1 parent 38d2429 commit a92c034

32 files changed

+0
-69
lines changed

doc/string/chomp.rdoc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ if they are <tt>"\r"</tt>, <tt>"\n"</tt>, or <tt>"\r\n"</tt>
99
"abc\n".chomp # => "abc"
1010
"abc\r\n".chomp # => "abc"
1111
"abc\n\r".chomp # => "abc\n"
12-
"тест\r\n".chomp # => "тест"
1312
"こんにちは\r\n".chomp # => "こんにちは"
1413

1514
When +line_sep+ is <tt>''</tt> (an empty string),

doc/string/chop.rdoc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,11 @@ Returns a new string copied from +self+, with trailing characters possibly remov
33
Removes <tt>"\r\n"</tt> if those are the last two characters.
44

55
"abc\r\n".chop # => "abc"
6-
"тест\r\n".chop # => "тест"
76
"こんにちは\r\n".chop # => "こんにちは"
87

98
Otherwise removes the last character if it exists.
109

1110
'abcd'.chop # => "abc"
12-
'тест'.chop # => "тес"
1311
'こんにちは'.chop # => "こんにち"
1412
''.chop # => ""
1513

doc/string/chr.rdoc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
Returns a string containing the first character of +self+:
22

33
'hello'.chr # => "h"
4-
'тест'.chr # => "т"
54
'こんにちは'.chr # => "こ"
65
''.chr # => ""
76

doc/string/codepoints.rdoc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ Returns an array of the codepoints in +self+;
22
each codepoint is the integer value for a character:
33

44
'hello'.codepoints # => [104, 101, 108, 108, 111]
5-
'тест'.codepoints # => [1090, 1077, 1089, 1090]
65
'こんにちは'.codepoints # => [12371, 12435, 12395, 12385, 12399]
76
''.codepoints # => []
87

doc/string/concat.rdoc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ For each given object +object+ that is an integer,
66
the value is considered a codepoint and converted to a character before concatenation:
77

88
'foo'.concat(32, 'bar', 32, 'baz') # => "foo bar baz" # Embeds spaces.
9-
'те'.concat(1089, 1090) # => "тест"
109
'こん'.concat(12395, 12385, 12399) # => "こんにちは"
1110

1211
Related: see {Converting to New String}[rdoc-ref:String@Converting+to+New+String].

doc/string/count.rdoc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ returns the count of instances of that character:
99
s.count('x') # => 0
1010
s.count('') # => 0
1111

12-
s = 'тест'
13-
s.count('т') # => 2
14-
s.count('е') # => 1
15-
1612
s = 'よろしくお願いします'
1713
s.count('よ') # => 1
1814
s.count('し') # => 2

doc/string/delete.rdoc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ removes all instances of that character:
1010
s.delete('x') # => "abracadabra"
1111
s.delete('') # => "abracadabra"
1212

13-
s = 'тест'
14-
s.delete('т') # => "ес"
15-
s.delete('е') # => "тст"
16-
1713
s = 'よろしくお願いします'
1814
s.delete('よ') # => "ろしくお願いします"
1915
s.delete('し') # => "よろくお願います"

doc/string/delete_prefix.rdoc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ Returns a copy of +self+ with leading substring +prefix+ removed:
44
'oof'.delete_prefix('oo') # => "f"
55
'oof'.delete_prefix('oof') # => ""
66
'oof'.delete_prefix('x') # => "oof"
7-
'тест'.delete_prefix('те') # => "ст"
87
'こんにちは'.delete_prefix('こん') # => "にちは"
98

109
Related: see {Converting to New String}[rdoc-ref:String@Converting+to+New+String].

doc/string/delete_suffix.rdoc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ Returns a copy of +self+ with trailing substring <tt>suffix</tt> removed:
55
'foo'.delete_suffix('foo') # => ""
66
'foo'.delete_suffix('f') # => "foo"
77
'foo'.delete_suffix('x') # => "foo"
8-
'тест'.delete_suffix('ст') # => "те"
98
'こんにちは'.delete_suffix('ちは') # => "こんに"
109

1110
Related: see {Converting to New String}[rdoc-ref:String@Converting+to+New+String].

doc/string/dump.rdoc

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,6 @@ and so contains both outer double-quotes and escaped inner double-quotes:
6969
If +self+ is encoded in UTF-8 and contains Unicode characters,
7070
each Unicode character is dumped as a Unicode escape sequence:
7171

72-
String: тест
73-
Dumped: "\u0442\u0435\u0441\u0442"
74-
Undumped: тест
75-
7672
String: こんにちは
7773
Dumped: "\u3053\u3093\u306B\u3061\u306F"
7874
Undumped: こんにちは
@@ -88,10 +84,6 @@ where <tt><encoding></tt> is <tt>self.encoding.name</tt>:
8884
Dumped: "\xFE\xFF\x00h\x00e\x00l\x00l\x00o".dup.force_encoding("UTF-16")
8985
Undumped: hello
9086

91-
String: тест
92-
Dumped: "\xFE\xFF\x04B\x045\x04A\x04B".dup.force_encoding("UTF-16")
93-
Undumped: тест
94-
9587
String: こんにちは
9688
Dumped: "\xFE\xFF0S0\x930k0a0o".dup.force_encoding("UTF-16")
9789
Undumped: こんにちは

0 commit comments

Comments
 (0)