Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Jun 19, 2012
  1. @Watson1978

    fix the struct declarations

    Watson1978 authored
Commits on Jun 7, 2012
  1. @Watson1978

    improve the performance of String#length with multi-byte character st…

    Watson1978 authored
    …ring
    
    * before
                    user     system      total        real
    ascii       0.000000   0.000000   0.000000 (  0.002556)
    utf8        2.340000   0.000000   2.340000 (  2.344955)
    utf8 (dup)  3.580000   0.640000   4.220000 (  3.584336)
    
    * after
                    user     system      total        real
    ascii       0.000000   0.000000   0.000000 (  0.002540)
    utf8        0.010000   0.000000   0.010000 (  0.003444)
    utf8 (dup)  0.600000   0.780000   1.380000 (  1.324915)
    
    Test Script
    ----
    # -*- coding: utf-8 -*-
    require 'benchmark'
    
    str_ascii = "abcdefghij" * 100000
    str_utf8 = "あいうえお" * 100000
    Benchmark.bm(10) do |x|
      x.report "ascii" do
        1000.times do
          str_ascii.length
        end
      end
    
      x.report "utf8" do
        1000.times do
          str_utf8.length
        end
      end
    
      x.report "utf8 (dup)" do
        1000.times do
          str_utf8.dup.length
        end
      end
    
    end
Commits on Apr 23, 2012
  1. @ferrous26
Commits on Jun 6, 2011
  1. @lrz

    add NSString#encode which returns a properly encoded RubyString, and …

    lrz authored
    …NSString#encode! which raises an exception
  2. @lrz
Commits on May 27, 2011
  1. @lrz

    String() and Array() will respectively convert NSStrings and NSArrays…

    lrz authored
    … to RubyStrings and RubyArrays
Commits on Feb 9, 2011
  1. better RSTRING_{PTR,LEN] for pure NSStrings

    Laurent Sansonetti authored
    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@5223 23306eb0-4c56-4727-a40e-e92c0eb68959
Commits on Jan 28, 2011
  1. r{ary,str,hash}_modify: check for the unstrust flag properly

    Laurent Sansonetti authored
    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@5194 23306eb0-4c56-4727-a40e-e92c0eb68959
Commits on Jan 15, 2011
  1. update copyrights to 2011

    Laurent Sansonetti authored
    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@5168 23306eb0-4c56-4727-a40e-e92c0eb68959
Commits on Jan 7, 2011
  1. @vincentisambart

    String#scan should now be much faster for non-ASCII strings

    vincentisambart authored
    rb_str_subseq should also now do what it should.
    
    Next step: Make String#gsub faster
    
    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@5130 23306eb0-4c56-4727-a40e-e92c0eb68959
Commits on Jan 5, 2011
  1. let's use 64 unichars like CF

    Laurent Sansonetti authored
    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@5119 23306eb0-4c56-4727-a40e-e92c0eb68959
  2. no c99 in headers used by C extensions

    Laurent Sansonetti authored
    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@5116 23306eb0-4c56-4727-a40e-e92c0eb68959
  3. introduce a better unichar API, which should be as fast as before the…

    Laurent Sansonetti authored
    … recent string datastore change, also fixing the rubygems crasher and also various memory leaks
    
    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@5114 23306eb0-4c56-4727-a40e-e92c0eb68959
Commits on Dec 23, 2010
  1. @vincentisambart
Commits on Dec 22, 2010
  1. @vincentisambart
Commits on Dec 19, 2010
  1. @vincentisambart

    changed the internal representation of strings

    vincentisambart authored
    The strings could have 2 internal representations (UTF-16 or binary),
    there is now only the binary one. It makes a few things harder, but
    other things much simpler.
    
    The main reason for doing it is that we could have problems in
    multi-threaded applications, when multiple threads are using the same
    string at the same time, even without using any operation modifiying the
    string (as some operations were prefering using the string in UTF-16 and
    others in binary mode).
    
    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@5054 23306eb0-4c56-4727-a40e-e92c0eb68959
Commits on Dec 18, 2010
  1. @vincentisambart

    Started using C-blocks (note that they should not be used in

    vincentisambart authored
    ObjC or sensitive places like dispatcher.cpp)
    
    All this was to start cleaning-up string code.
    I removed the function pointers for each encoding as I'm pretty sure no
    one will use them to extend the encoding-handling and they make the code
    harder to maintain.
    
    Feature-wise currently the only change is that String#inspect is much
    better when part of a string is invalid:
    % ./miniruby -e 'p "あ\xFF"'
    "あ\xFF"
    
    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@5049 23306eb0-4c56-4727-a40e-e92c0eb68959
Commits on Dec 17, 2010
  1. improved rb_eql() for performance, makes faster hash lookup / keys co…

    Laurent Sansonetti authored
    …mparison operations
    
    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@5041 23306eb0-4c56-4727-a40e-e92c0eb68959
Commits on Dec 7, 2010
  1. Dir.glob: convert paths to unicode normalization form C

    Laurent Sansonetti authored
    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@4991 23306eb0-4c56-4727-a40e-e92c0eb68959
Commits on Aug 11, 2010
  1. when trying to convert a string into a numeric type, raise an excepti…

    Laurent Sansonetti authored
    …on in case the string encoding isn't ASCII incompatible
    
    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@4421 23306eb0-4c56-4727-a40e-e92c0eb68959
Commits on Jun 1, 2010
  1. Add support for Encoding::Converter and move String#encode and String…

    Patrick Thomson authored
    …#encode! into the corresponding file.
    
    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@4182 23306eb0-4c56-4727-a40e-e92c0eb68959
Commits on May 26, 2010
  1. faster r{ary,hash,str}_modify() functions

    Laurent Sansonetti authored
    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@4159 23306eb0-4c56-4727-a40e-e92c0eb68959
Commits on May 14, 2010
  1. faster #<<, #[] and #[]=

    Laurent Sansonetti authored
    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@4099 23306eb0-4c56-4727-a40e-e92c0eb68959
Commits on May 9, 2010
  1. @vincentisambart
  2. @vincentisambart
  3. @vincentisambart
Commits on Mar 25, 2010
  1. Make Symbol NSCoding compliant

    Thibault Martin-Lagardette authored
     - Added `-classForKeyedArchiver`, `-encodeWithCoder:` and `-initWithCoder:` so that symbols can be archived in Cocoa
     - Added `-copy` returning `self` (copying a symbol does not make sense) so that copied symbols return symbols, not strings
     - Fixes 7716974
    
    
    
    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@3863 23306eb0-4c56-4727-a40e-e92c0eb68959
Commits on Mar 20, 2010
  1. ditto

    Laurent Sansonetti authored
    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@3835 23306eb0-4c56-4727-a40e-e92c0eb68959
Commits on Mar 17, 2010
  1. IO and Marshal now returning UTF8 strings

    Laurent Sansonetti authored
    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/trunk@3782 23306eb0-4c56-4727-a40e-e92c0eb68959
Commits on Mar 12, 2010
  1. added Symbol#[]

    Laurent Sansonetti authored
    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/branches/icu@3743 23306eb0-4c56-4727-a40e-e92c0eb68959
Commits on Mar 10, 2010
  1. misc bugfix

    Laurent Sansonetti authored
    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/branches/icu@3732 23306eb0-4c56-4727-a40e-e92c0eb68959
Commits on Mar 9, 2010
  1. expose the bstr APIs

    Laurent Sansonetti authored
    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/branches/icu@3716 23306eb0-4c56-4727-a40e-e92c0eb68959
Commits on Mar 3, 2010
  1. added regexp quoting

    Laurent Sansonetti authored
    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/branches/icu@3684 23306eb0-4c56-4727-a40e-e92c0eb68959
Commits on Mar 2, 2010
  1. unicode string formats (a work in progress)

    Laurent Sansonetti authored
    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/branches/icu@3663 23306eb0-4c56-4727-a40e-e92c0eb68959
Commits on Feb 28, 2010
  1. added bstr_concat() to be used to cat bytes, use it in marshal

    Laurent Sansonetti authored
    git-svn-id: http://svn.macosforge.org/repository/ruby/MacRuby/branches/icu@3657 23306eb0-4c56-4727-a40e-e92c0eb68959
Something went wrong with that request. Please try again.