summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-string-utf8/src/string.c
AgeCommit message (Collapse)Author
2014-03-27use suitable typecubicdaiya
2014-03-25Use mrb_int instead of intcubicdaiya
2014-03-05use mrb_int instead of size_t since string length is represented by mrb_int; ↵Yukihiro "Matz" Matsumoto
close #1810
2014-02-26Implement sprintf("%c") for UTF-8.chasonr
* sprintf("%c") is changed to accept a string for which String#size returns 1, even if it is longer than one byte, and to convert a Fixnum via Fixnum#chr (possibly returning more than one byte). Thus, if the UTF-8 gem is in use, a character will be understood as a single UTF-8 character. * The change to sprintf depends on the implementation of Fixnum#chr added to mrbgems/mruby-string-utf8/src/string.c. This should work with any other gem that implements a multibyte encoding, as long as it implements String#size and Fixnum#chr as appropriate.
2014-01-23fix utf-8 codepageh2so5
2014-01-10String#length should be an alias of String#sizeh2so5
2014-01-08add String#reverse, String#reverse! for UTF-8h2so5
2014-01-07mruby-string-utf8: redefine String#size for UTF-8 string; #1646Yukihiro "Matz" Matsumoto
2014-01-07mruby-string-utf8: UTF-8 string may contail NUL; #1646Yukihiro "Matz" Matsumoto
2014-01-07Add mruby-string-utf8mattn