Commit Graph

23 Commits

Author SHA1 Message Date
ksss 54132e4364 make embed string when create literals 2014-03-06 13:47:51 +00:00
ksss 4070b5987a embed small string
use flags 4 for *this object is embed*
use flags 8~64 for *embed string length*
2014-03-06 13:12:08 +00:00
cremno aa655b9ee1 remove superfluous includes
- reduce compile time by a little bit (full-core: ~0.7s for me)
- thanks to 'include-what-you-use' for some help
- include Standard C header files before any other (coding style)
2014-01-07 17:56:30 +01:00
Yukihiro "Matz" Matsumoto dc25f85bab mruby-string-utf8: UTF-8 string may contail NUL; #1646 2014-01-07 15:00:55 +09:00
Tomoyuki Sahara 120a02c15d add String#partition and String#rpartition. 2013-12-27 15:30:20 +09:00
Tomoyuki Sahara f77dc2e6cb Merge branch 'mruby' into pr-typeerror-string-start-end-with
Conflicts:
	mrbgems/mruby-string-ext/src/string.c
	mrbgems/mruby-string-ext/test/string.rb
2013-08-26 23:20:22 +09:00
Yukihiro "Matz" Matsumoto 91b878e5df Merge pull request #1485 from fjmilens3/string_end_with
Bug in String#end_with? resulting from incorrect length determination
2013-08-26 04:17:20 -07:00
Tomoyuki Sahara 0e8efd4a21 Check type of arguments for #start_with and #end_with. 2013-08-23 15:06:26 +09:00
Frederick John Milens III 2548569f60 Refactor of String#start_with? comparison logic. 2013-08-22 19:29:36 -05:00
Frederick John Milens III d682be9d32 Refactor of String#end_with? comparison logic. 2013-08-22 19:23:53 -05:00
Frederick John Milens III a0183b394a Fix for string-length-related issue in String#end_with? logic. 2013-08-22 18:55:07 -05:00
Frederick John Milens III d42427870b Added test case for String#end_with? with string of length 2. 2013-08-22 18:41:23 -05:00
Frederick John Milens III 28211d6771 Fix for string-length-related issue in String#start_with? logic. 2013-08-22 16:44:00 -05:00
Frederick John Milens III de5f5732fe Added test case for String#start_with? with string of length 1. 2013-08-22 16:37:42 -05:00
Daniel Bovensiepen 181733bcfe Improve test of mruby-string-ext GEM 2013-08-04 22:42:15 +08:00
Tomoyuki Sahara 116f75a8ce "spec.author" is better for single-author gems.
"spec.author=" expects a String represents a single author.
"spec.authors=" expects an Array which is a list of multiple authors.

http://guides.rubygems.org/specification-reference/
2013-07-23 10:09:24 +09:00
Masaki Muranaka 433cb13e6d Add tests to make sure. As we do not use standard library for formatting. 2013-04-25 15:35:16 +09:00
Masaki Muranaka da4b3d1c2c Move regression test as String#dump is not in ther core but the mrbgems. 2013-04-25 15:28:25 +09:00
Yukihiro "Matz" Matsumoto 30d580ecbc rename every ARGS_XXX to MRB_ARGS_XXX; ref #1206 2013-04-25 09:47:36 +09:00
h2so5 79e7bbc8e8 Add String#swapcase,swapcase!,concat,casecmp,start_with,end_with 2013-04-19 21:01:37 +09:00
Tomoyuki Sahara 11edea3880 add "strip" family to String. 2013-03-08 09:45:04 +09:00
Masaki Muranaka 63a56ddd31 Add String#dump method. 2013-03-08 06:30:42 +09:00
skandhas 7cd583ef27 add mrbgems/mruby-string-ext, and method: String#getbyte 2013-03-07 21:47:00 +08:00