summaryrefslogtreecommitdiff
path: root/string.c
AgeCommit message (Expand)Author
2024-11-20[DOC] Fix typo in comment for STR_PRECOMPUTED_HASHPeter Zhu
2024-11-19[DOC] Fix the default `limit` of String#splitKouhei Yanagita
2024-11-13YJIT: Specialize `String#[]` (`String#slice`) with fixnum arguments (#12069)Randy Stauner
2024-11-13Mark strings returned by Symbol#to_s as chilled (#12065)Jean byroot Boussier
2024-11-13string.c: preserve coderange when interning a stringJean Boussier
2024-11-13string.c: Directly create strings with the correct encodingJean Boussier
2024-11-13Move `Symbol#name` into `symbol.rb`Jean Boussier
2024-11-06Store precomputed hash when there's capacityÉtienne Barrié
2024-11-04Precompute hash only once when interning string literalsÉtienne Barrié
2024-10-21Fix an off-by-one error of own memrchr implementationYusuke Endoh
2024-10-21Show where mutated chilled strings were allocatedÉtienne Barrié
2024-10-07[DOC] String#sub! and String#gsub! return nil if no replacement occuredHolger Just
2024-09-24Use rb_bug instead of UNREACHABLE for assertionsPeter Zhu
2024-09-24Fix undefined behavior in String#append_as_bytesPeter Zhu
2024-09-18Update exception message in string_for_symbolJeremy Evans
2024-09-09Implement String#append_as_bytes(String | Integer, ...)Jean Boussier
2024-09-04Fix documentation for String#index and String#byterindexJean Boussier
2024-09-04Adjust indents [ci skip]Nobuyoshi Nakada
2024-09-03rb_enc_str_asciionly_p: avoid always fetching the encodingJean Boussier
2024-09-03Improve String#rindex performance on OSXZack Deveau
2024-08-09rb_str_bytesplice: skip encoding check if encodings are the sameJean Boussier
2024-08-09string.c: add fastpath in str_ensure_byte_posJean Boussier
2024-08-09string.c: Add fastpath to single_byte_optimizableJean Boussier
2024-08-09string.c: str_capacity don't check for immediatesJean Boussier
2024-08-09str_independent: add a fastpath with a single flag checkJean Boussier
2024-08-02YJIT: Enhance the `String#<<` method substitution to handle integer codepoint...Kevin Menard
2024-06-19String.new(capacity:) don't substract termlenJean Boussier
2024-06-17Add a fast path implementation for appending single byte values to US-ASCII s...Kevin Menard
2024-06-17Add a fast path implementation for appending single byte values to binary str...Kevin Menard
2024-06-13Simplify unaligned write for pre-computed string hashAlan Wu
2024-06-13rb_str_hash(): Avoid UB with making misaligned pointerAlan Wu
2024-06-13Simplify rb_str_resize clear range conditiontompng
2024-06-13Clear coderange when rb_str_resize change sizetompng
2024-06-09[Bug #20566] Mention out-of-range argument cases in `String#<<`Nobuyoshi Nakada
2024-06-02Stop exposing `rb_str_chilled_p`Jean Boussier
2024-05-28[Bug #20512] Set coderange in `Range#each` of stringsNobuyoshi Nakada
2024-05-28Set empty strings to ASCII-onlyNobuyoshi Nakada
2024-05-28Precompute embedded string literals hash codeJean Boussier
2024-05-28Stop marking chilled strings as frozenÉtienne Barrié
2024-04-18Add a hint of `ASCII-8BIT` being `BINARY`Jean Boussier
2024-04-16Eliminate usage of OBJ_FREEZE_RAWJean Boussier
2024-04-08Document STR_CHILLED flag on RStringÉtienne Barrié
2024-04-08Add builtin type assertionNobuyoshi Nakada
2024-04-05Assert that Symbol#inspect returns a T_STRINGPeter Zhu
2024-03-31Add missing RB_GC_GUARDs related to DATA_PTRKJ Tsanaktsidis
2024-03-26Expose rb_str_chilled_pÉtienne Barrié
2024-03-25[Bug #20389] Chilled string cannot be a shared rootNobuyoshi Nakada
2024-03-19Implement chilled stringsÉtienne Barrié
2024-03-03[Bug #20322] Fix rb_enc_interned_str_cstr null encodingThomas Marshall
2024-02-23Stop using rb_str_locktmp_ensure publiclyPeter Zhu