summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-sprintf/src
AgeCommit message (Collapse)Author
2015-06-24Remove unnecessary backticks.Franck Verrot
Dr Markus Kuhn published in 1999 an article [1] explaining in details why we shouldn't use the ASCII grave accent (0x60) as a left quotation. Backticks have been used most notably to produce nice-looking LaTeX documents but it doesn't seem to be an issue on modern platforms and for the oldest ones, there are workarounds as mentioned by Dr Kuhn. [1]: https://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
2014-09-04refactor MACRO to avoid local variable name conflict; ref #2585Yukihiro "Matz" Matsumoto
2014-09-04get rid of shadowing variables (mrbgems)cremno
Mostly renaming, except that the definition of struct accessor methods is now done in a new function.
2014-07-12remove spaces after open parensYukihiro "Matz" Matsumoto
2014-05-04simply use `isfinite`cremno
2014-04-25Use mrb_int in mrbgem rest argument getting.take_cheeze
2014-03-25Use mrb_int instead of intcubicdaiya
2014-03-22Use bool-macro instead of magic-numbercubicdaiya
2014-03-11add MRB_INT_BITcremno
2014-03-06make embed string when create literalsksss
2014-03-06embed small stringksss
use flags 4 for *this object is embed* use flags 8~64 for *embed string length*
2014-02-28cancel 313f6b; add fallthrough commentYukihiro "Matz" Matsumoto
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-02-27forget to break in the switch statementYukihiro "Matz" Matsumoto
2014-02-26use mrb_str_new_lit instead of mrb_str_new for C string literalscubicdaiya
2014-01-31add missing declaration of mrb_str_formatcremno
2014-01-02remove various preprocessor conditionalscremno
- HAVE_IEEEFP_H is nowhere defined or needed at all - FreeBSD < 4 is unsupported since years - MSVC workaround (around what exactly?)
2013-06-27Visual Studio 2013 support + strtof + inlineCremno
- VC12 has better C99 library support due to C++11 - defined strtof for VC11 or older - define "inline" only if the C compiler is used
2013-05-18removed unused variables / assigns never usedJulien Ammous
2013-05-10change mrb_warn to get mrb_state and %S formatterYukihiro "Matz" Matsumoto
2013-04-25rename every ARGS_XXX to MRB_ARGS_XXX; ref #1206Yukihiro "Matz" Matsumoto
2013-03-29Rename mrb_fix2str() to mrb_fixnum_to_str(). This is for naming consistency.Masaki Muranaka
2013-03-29Remove mrb_flt2big() as there is no bignum in the core.Masaki Muranaka
Add new API mrb_flo_to_fixnum(). You can replace mrb_flt2big() to mrb_flo_to_fixnum() with few modifications.
2013-03-29Remove API mrb_string_value(). There have mrb_str_to_str() in the core. And ↵Masaki Muranaka
mrb_string_value() is no merit to keep using.
2013-03-29Remove limits.h from numeric.h. Add limits.h to some C files.Masaki Muranaka
2013-03-28Fix format for new mrb_raisef().Masaki Muranaka
2013-03-12Merge pull request #984 from monaka/pr-make-mrb_str_new2-obsoleteYukihiro "Matz" Matsumoto
Remove mrb_str_new2().
2013-03-12Use suitable types for variables.Masaki Muranaka
2013-03-12Remove mrb_str_new2(). Use mrb_str_new_cstr() instead.Masaki Muranaka
Make mrb_str_new_cstr() accept NULL pointer. It generates 0byte strings by NULL pointer.
2013-03-04Separate Kernel#sprintf support from mruby core. It's moved to mrbgems.Masaki Muranaka
2013-03-04Move src/sprintf to mrbgems/mruby-sprintf/src/Masaki Muranaka