Commit graph

53 commits

Author SHA1 Message Date
BurdetteLamar
b7f65f01ee [DOC] Tweaks for String#grapheme_clusters 2025-08-05 09:26:42 -04:00
BurdetteLamar
6f7a4f9c96 [DOC] Tweaks for String#getbyte 2025-07-31 09:14:11 -04:00
BurdetteLamar
d7bc1378d2 [DOC] Tweaks for String#force_encoding 2025-07-31 09:13:57 -04:00
BurdetteLamar
6d466a55bd [DOC] Tweaks for String#eql? 2025-07-31 09:13:36 -04:00
BurdetteLamar
ff6a8e95b7 [DOc] Tweaks for String#end_with? 2025-07-31 09:13:20 -04:00
Burdette Lamar
e2bd36388f
[DOC] Tweak for String#encode 2025-07-31 09:13:01 -04:00
Burdette Lamar
56572baa4c
[DOC] Tweaks for String#each_grapheme_cluster (#13981) 2025-07-23 17:07:25 -04:00
BurdetteLamar
7816a04d97 [DOC] Tweaks for String#each_line 2025-07-23 15:48:35 -04:00
BurdetteLamar
17eee25c66 [DOC] Tweaks for String#each_codepoint 2025-07-23 15:36:32 -04:00
BurdetteLamar
cd9b74638c [DOC] Tweaks for String#each_char 2025-07-23 15:35:28 -04:00
BurdetteLamar
465b1696ad [DOC] Tweaks for String#each_byte 2025-07-22 17:55:06 -04:00
Peter Zhu
21c78cb0f7 [DOC] Docs for String#dump 2025-07-21 17:07:39 -04:00
Burdette Lamar
3cf32e9364
[DOC] Tweaks for String#downcase 2025-07-15 16:31:58 -04:00
BurdetteLamar
07a3ab53a2 [DOC] Tweaks for String#delete_suffix 2025-07-14 09:58:35 -04:00
BurdetteLamar
d38bb4ad1c [DOC] Tweaks for String#delete_prefix 2025-07-14 09:57:19 -04:00
BurdetteLamar
e1bc92d00b [DOC] Tweaks for String#delete 2025-07-12 13:08:14 -04:00
Burdette Lamar
b0db93c002
[DOC] Tweaks for String#count 2025-07-12 10:55:33 -04:00
Burdette Lamar
51252ef8d7
[DOC] Tweaks for String#concat (#13836) 2025-07-10 10:40:49 -04:00
BurdetteLamar
a1acba6d14 [DOC] Tweaks for String#codepoints 2025-07-10 10:02:22 -04:00
BurdetteLamar
3baed2ea38 [DOC] Tweaks for String#chr 2025-07-09 14:41:11 -04:00
BurdetteLamar
94e702b0ba [DOC] Tweaks for String#chop 2025-07-09 13:38:53 -04:00
BurdetteLamar
1de0b28cbb [DOC] Tweaks for String#chomp 2025-07-09 11:54:23 -04:00
BurdetteLamar
b16047088a [DOC] Tweaks for String#chars 2025-07-08 13:26:58 -04:00
BurdetteLamar
14971e75ce [DOC] Tweaks for String#center 2025-07-08 13:26:46 -04:00
Burdette Lamar
35feaee917
[DOC] Tweaks for String#bytesplice 2025-06-30 14:13:09 -04:00
BurdetteLamar
456f6f3f83 [DOC] Tweaks for Strings#byteslice 2025-06-30 13:59:25 -04:00
Burdette Lamar
c351c3d065
[DOC] Tweaks for String#bytes 2025-06-24 12:28:17 -04:00
BurdetteLamar
db6f397987 Tweaks for String#bytesize 2025-06-24 02:28:05 +09:00
BurdetteLamar
a188249616 [DOC] Tweaks for String#b 2025-05-16 12:47:17 -04:00
Burdette Lamar
79fe8aa010
[DOC] Tweaks for String.new 2025-05-01 10:51:22 -04:00
Damian C. Rossney
6029781984
[DOC] Update for String#split
Highlight the performance advantages of calling `string.split` with a block, instead of `string.split.each` with the same block.

Includes other minor formatting corrections.
2025-04-23 13:05:30 +09:00
Kouhei Yanagita
eb2b0c2a0d [DOC] Fix the default limit of String#split
We can't pass `nil` as the second parameter of `String#split`.
Therefore, descriptions like "if limit is nil, ..." are not appropriate.
2024-11-19 12:15:48 +09:00
Jean Boussier
83f57ca3d2 String.new(capacity:) don't substract termlen
[Bug #20585]

This was changed in 36a06efdd9 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:`.
2024-06-19 15:11:07 +02:00
ydah
aa6d0bc0bd s/ocurs/occurs/ 2024-02-15 17:01:02 +09:00
BurdetteLamar
3b239d2480 Remove (newly unneeded) remarks about aliases 2023-02-19 14:26:34 -08:00
Nobuyoshi Nakada
a2748c500d
[DOC] Update String#encode special case
This behavior has been slightly extended with the addition of
`String#scrub`.
2023-01-16 19:44:40 +09:00
Martin Dürst
11f28f3268 [DOC] Explain that transcoding to the same encoding just copies.
This is a reenstatement of the explanation in commit
463633e4a9 to partially
address Bug #19342.
2023-01-16 16:30:15 +09:00
Nobuyoshi Nakada
468ce1488d [DOC] Use RDoc inclusions in transcode.c 2023-01-16 13:38:58 +09:00
Alexander Ilyin
adcfd69690
[DOC] Fix markup for String (#5984)
* 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.
2022-06-09 13:40:21 -05:00
Burdette Lamar
9ca3d537b9
All-in-one RDoc for class String (#5777) 2022-04-07 14:29:04 -05:00
Burdette Lamar
717b20ee30
[DOC] Enhanced RDoc for string slices (#5769)
Creates file doc/string/slices.rdoc that the string slicing methods can link to.
2022-04-06 15:47:22 -05:00
Burdette Lamar
4a4485adbd
Enhanced RDoc for String#index (#5759) 2022-04-04 14:18:10 -05:00
Burdette Lamar
0b0ae583f4
[DOC] Enhanced RDoc for String (#5753)
Treats:
    #length
    #bytesize
2022-04-03 10:09:34 -05:00
Burdette Lamar
7be4d900f0
[DOC] Enhanced RDoc for String (#5751)
Adds to doc for String.new, also making it compliant with documentation_guide.rdoc.
    Fixes some broken links in io.c (that I failed to correct yesterday).
2022-04-02 14:26:49 -05:00
Nobuyoshi Nakada
729b9a8543
[DOC] Fix broken links to encodings.rdoc
Also prefers class name based references than file name based
references.
2022-04-02 15:06:12 +09:00
Burdette Lamar
81741690a0
[DOC] Main doc for encodings moved from encoding.c to doc/encodings.rdoc (#5748)
Main doc for encodings moved from encoding.c to doc/encodings.rdoc
2022-04-01 20:41:04 -05:00
Burdette Lamar
056b7a8633
[DOC] Enhanced RDoc for String (#5742)
Treats:
    #force_encoding
    #b
    #valid_encoding?
    #ascii_only?
    #scrub
    #scrub!
    #unicode_normalized?
Plus a couple of minor tweaks.
2022-03-31 15:09:25 -05:00
Burdette Lamar
b257034ae5
[DOC] Enhanced RDoc for String (#5730)
Treats:

    #start_with?
    #end_with?
    #delete_prefix
    #delete_prefix!
    #delete_suffix
    #delete_suffix!
2022-03-29 09:54:29 -05:00
Burdette Lamar
5525e47a0b
[DOC] Enhanced RDoc for String (#5726)
Treats:

    #ljust
    #rjust
    #center
    #partition
    #rpartition
2022-03-28 15:49:18 -05:00
Burdette Lamar
d52cf1013f
[DOC] Enhanced RDoc for String (#5724)
Treats:

    #scan
    #hex
    #oct
    #crypt
    #ord
    #sum
2022-03-27 14:45:14 -05:00