<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/doc/string, branch v3_3_9</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>String.new(capacity:) don't substract termlen (#11027)</title>
<updated>2024-06-20T17:39:20+00:00</updated>
<author>
<name>Jean byroot Boussier</name>
<email>jean.boussier+github@shopify.com</email>
</author>
<published>2024-06-20T17:39:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=d1ffd5ecfa62a049b7c508f30b6912a890de1b32'/>
<id>d1ffd5ecfa62a049b7c508f30b6912a890de1b32</id>
<content type='text'>
[Bug #20585]

This was changed in 36a06efdd9f0604093dccbaf96d4e2cb17874dc8 because
`String.new(1024)` would end up allocating `1025` bytes, but the problem
with this change is that the caller may be trying to right size a String.

So instead, we should just better document the behavior of `capacity:`.

Co-authored-by: Jean Boussier &lt;jean.boussier@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
[Bug #20585]

This was changed in 36a06efdd9f0604093dccbaf96d4e2cb17874dc8 because
`String.new(1024)` would end up allocating `1025` bytes, but the problem
with this change is that the caller may be trying to right size a String.

So instead, we should just better document the behavior of `capacity:`.

Co-authored-by: Jean Boussier &lt;jean.boussier@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>Remove (newly unneeded) remarks about aliases</title>
<updated>2023-02-19T22:26:34+00:00</updated>
<author>
<name>BurdetteLamar</name>
<email>burdettelamar@yahoo.com</email>
</author>
<published>2023-02-19T20:16:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=3b239d2480123046a59a75f1089ab58d192b9c57'/>
<id>3b239d2480123046a59a75f1089ab58d192b9c57</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[DOC] Update `String#encode` special case</title>
<updated>2023-01-16T10:44:40+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2023-01-16T10:44:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=a2748c500d776fe0386271b4458fa3fd1c0dd56d'/>
<id>a2748c500d776fe0386271b4458fa3fd1c0dd56d</id>
<content type='text'>
This behavior has been slightly extended with the addition of
`String#scrub`.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This behavior has been slightly extended with the addition of
`String#scrub`.
</pre>
</div>
</content>
</entry>
<entry>
<title>[DOC] Explain that transcoding to the same encoding just copies.</title>
<updated>2023-01-16T07:30:15+00:00</updated>
<author>
<name>Martin Dürst</name>
<email>duerst@it.aoyama.ac.jp</email>
</author>
<published>2023-01-16T07:25:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=11f28f3268f9234b6310bc659de7e46dfc5c0706'/>
<id>11f28f3268f9234b6310bc659de7e46dfc5c0706</id>
<content type='text'>
This is a reenstatement of the explanation in commit
463633e4a934a00f869086a6ffbf84c6cb8ad630 to partially
address Bug #19342.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is a reenstatement of the explanation in commit
463633e4a934a00f869086a6ffbf84c6cb8ad630 to partially
address Bug #19342.
</pre>
</div>
</content>
</entry>
<entry>
<title>[DOC] Use RDoc inclusions in transcode.c</title>
<updated>2023-01-16T04:38:58+00:00</updated>
<author>
<name>Nobuyoshi Nakada</name>
<email>nobu@ruby-lang.org</email>
</author>
<published>2023-01-15T13:19:20+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=468ce1488d26ffc92c940324794dc9257f72b5d2'/>
<id>468ce1488d26ffc92c940324794dc9257f72b5d2</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[DOC] Fix markup for `String` (#5984)</title>
<updated>2022-06-09T18:40:21+00:00</updated>
<author>
<name>Alexander Ilyin</name>
<email>alexander.ilyin11@gmail.com</email>
</author>
<published>2022-06-09T18:40:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=adcfd6969070c3c51b35221d183728bbde8b8539'/>
<id>adcfd6969070c3c51b35221d183728bbde8b8539</id>
<content type='text'>
* Add missing space for `String#start_with?`.
* Add missing pluses for `String#tr` and
  `Methods for Converting to New String` label.
* Move quote into the tag for `Whitespace in Strings` label.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Add missing space for `String#start_with?`.
* Add missing pluses for `String#tr` and
  `Methods for Converting to New String` label.
* Move quote into the tag for `Whitespace in Strings` label.</pre>
</div>
</content>
</entry>
<entry>
<title>All-in-one RDoc for class String (#5777)</title>
<updated>2022-04-07T19:29:04+00:00</updated>
<author>
<name>Burdette Lamar</name>
<email>BurdetteLamar@Yahoo.com</email>
</author>
<published>2022-04-07T19:29:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=9ca3d537b9dffba416bd37dfb25466f2cebc8510'/>
<id>9ca3d537b9dffba416bd37dfb25466f2cebc8510</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[DOC] Enhanced RDoc for string slices (#5769)</title>
<updated>2022-04-06T20:47:22+00:00</updated>
<author>
<name>Burdette Lamar</name>
<email>BurdetteLamar@Yahoo.com</email>
</author>
<published>2022-04-06T20:47:22+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=717b20ee305e523123bbb18d54fe8e87a78a9cb1'/>
<id>717b20ee305e523123bbb18d54fe8e87a78a9cb1</id>
<content type='text'>
Creates file doc/string/slices.rdoc that the string slicing methods can link to.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Creates file doc/string/slices.rdoc that the string slicing methods can link to.</pre>
</div>
</content>
</entry>
<entry>
<title>Enhanced RDoc for String#index (#5759)</title>
<updated>2022-04-04T19:18:10+00:00</updated>
<author>
<name>Burdette Lamar</name>
<email>BurdetteLamar@Yahoo.com</email>
</author>
<published>2022-04-04T19:18:10+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=4a4485adbd13a75019ece34490b291da1dde8d91'/>
<id>4a4485adbd13a75019ece34490b291da1dde8d91</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[DOC] Enhanced RDoc for String (#5753)</title>
<updated>2022-04-03T15:09:34+00:00</updated>
<author>
<name>Burdette Lamar</name>
<email>BurdetteLamar@Yahoo.com</email>
</author>
<published>2022-04-03T15:09:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=0b0ae583f4e25e378294df5e19a76f9fd541a6d0'/>
<id>0b0ae583f4e25e378294df5e19a76f9fd541a6d0</id>
<content type='text'>
Treats:
    #length
    #bytesize

</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Treats:
    #length
    #bytesize

</pre>
</div>
</content>
</entry>
</feed>
