Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | documentation fix: wrong result | Akira Matsuda | 2011-07-13 | 1 | -2/+1 |
| | |||||
* | save a few method calls | Aaron Patterson | 2010-10-22 | 1 | -2/+3 |
| | |||||
* | removing wtfalse | Aaron Patterson | 2010-10-22 | 1 | -1/+1 |
| | |||||
* | removing unused code | Aaron Patterson | 2010-08-22 | 1 | -1/+1 |
| | |||||
* | edit pass to apply API guideline wrt the use of "# =>" in example code | Xavier Noria | 2010-07-30 | 1 | -36/+37 |
| | |||||
* | Improve bang method defs, make slice! operate in-place. [#5028 state:resolved] | Norman Clarke | 2010-07-08 | 1 | -19/+7 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Improve the idiom used in multibyte chars a bit. | José Valim | 2010-06-30 | 1 | -3/+3 |
| | |||||
* | Fix ActiveSupport::Multibyte::Chars#slice for empty strings when starting ↵ | Alex Muntean | 2010-06-30 | 1 | -1/+2 |
| | | | | | | offset is negative [#4717 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Fix AS::MB::Chars#+ to not alter self [#4646 state:resolved] | James MacAulay | 2010-06-30 | 1 | -1/+1 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Move some methods into 1.8.x-only proxy. [#4978 state:resolved] | Norman Clarke | 2010-06-26 | 1 | -40/+39 |
| | | | | | | | | These methods had been overridden because they had bugs on 1.9.1. Since Rails now supports only 1.9.2, and these methods now work properly on that version, there's no longer any need to override them. Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Adds titleize/titlecase to AS::Multibyte::Chars | Norman Clarke | 2010-06-20 | 1 | -0/+10 |
| | | | | | | [#2794 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | <=> is defined twice on multibyte/chars.rb for Ruby < 1.9 | Sam Elliott and Santiago Pastorino | 2010-06-20 | 1 | -14/+10 |
| | | | | | | [#4850 state:committed] Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Explicitly delegate Chars#<=> to work around Kernel#<=> possibly ignoring ↵ | Jeremy Kemper | 2010-06-11 | 1 | -3/+4 |
| | | | | method_missing | ||||
* | Move the undef into the 1.9 only branch | wycats | 2010-06-07 | 1 | -2/+2 |
| | |||||
* | If we undef <=>, it solves a problem involving comparison. Please figure out ↵ | wycats | 2010-06-07 | 1 | -0/+2 |
| | | | | the root cause. | ||||
* | Use multibyte proxy class on 1.9, refactor Unicode. | Norman Clarke | 2010-05-21 | 1 | -436/+141 |
| | | | | | | | | | | Makes String#mb_chars on Ruby 1.9 return an instance of ActiveSupport::Multibyte::Chars to work around 1.9's lack of Unicode case folding. Refactors class methods from ActiveSupport::Multibyte::Chars into new Unicode module, adding other related functionality for consistency. [#4594 state:resolved] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Delegate Inflector.transliterate to i18n. [#4508 state:resolved] | Norman Clarke | 2010-04-30 | 1 | -18/+27 |
| | | | | | | | Ancillary changes: Moved Chars#normalize into a class method; removed unused UTF_PAT constant. Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | Action Pack: fix tests with -K*, work around Ruby 1.9.1 constant lookup. | Cezary Baginski | 2010-04-25 | 1 | -2/+2 |
| | | | | | | [#4473 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Make tidy_bytes work on 1.9 and improve its performance. [#4350 state:resolved] | Norman Clarke | 2010-04-09 | 1 | -18/+67 |
| | | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Fixed french sentence so it actually makes sense. | Eloy Duran | 2010-01-08 | 1 | -1/+1 |
| | |||||
* | Fix unresolved string extension dependencies | Jeremy Kemper | 2009-11-08 | 1 | -2/+3 |
| | |||||
* | Make ActiveSupport::Chars#limit run on Ruby 1.9. | Manfred Stienstra | 2009-11-04 | 1 | -0/+5 |
| | |||||
* | Add ActiveSupport::Multibyte::Chars#limit. | Manfred Stienstra | 2009-11-04 | 1 | -14/+15 |
| | | | | | | | | | | The limit method limits the number of bytes in a string. Useful when the storage space of the string is limited, for instance in a database column definition. Sharpen up the implementation of translate offset. [#3192 state:committed] | ||||
* | Fix chars.reverse for multibyte decomposed strings | Matias Flores | 2009-11-02 | 1 | -1/+1 |
| | | | | | | [#597 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Add verify and clean methods to ActiveSupport::Multibyte. | Michael Koziarski | 2009-09-04 | 1 | -16/+7 |
| | | | | | | | | | | | | When accepting character input from outside of your application you can't blindly trust that all strings are properly encoded. With these methods you can check incoming strings and clean them up if necessary. Signed-off-by: Michael Koziarski <michael@koziarski.com> Conflicts: activesupport/lib/active_support/multibyte.rb | ||||
* | Correctly handle offsets in Multibyte::Chars#index and #rindex. | Erik Ostrom | 2009-08-09 | 1 | -3/+5 |
| | | | | | | | | The offset in codepoints was being passed directly to the wrapped string's index/rindex method. Now we translate the offset into bytes first. [#3028 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Add rindex to ActiveSupport::Multibyte::Chars. | Erik Ostrom | 2009-08-09 | 1 | -0/+13 |
| | | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Include acts_as_string? | Jeremy Kemper | 2009-05-18 | 1 | -0/+1 |
| | |||||
* | Make Chars#slice! behave more like String#slice! [#1243 state:resolved] | George Ogata | 2009-03-07 | 1 | -2/+14 |
| | | | | | | | - Chars#slice! now returns the slice instead of itself - Chars#slice! now removes the slice from itself Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Ruby 1.9: force ascii encoding for comparison with utf8 regexp | Jeremy Kemper | 2009-02-03 | 1 | -0/+2 |
| | |||||
* | Add ActiveSupport::Multibyte::Chars#ord method so that it returns correct ↵ | Jason Cheow | 2008-12-08 | 1 | -0/+8 |
| | | | | | | | | Unicode value instead of falling back on String#ord in CoreExtensions, which is not multibyte compatible [#1483 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> | ||||
* | Merge with docrails. Also add a rake task to generate guides in your rails ↵ | Pratik Naik | 2008-10-21 | 1 | -2/+2 |
| | | | | | | | | application : rake doc:guides The rake task will generate guides inside doc/guides directory of your application. Open index.html to browse. | ||||
* | Add tests for u_unpack to make sure it raises an EncodingError on invalid ↵ | Manfred Stienstra | 2008-09-21 | 1 | -1/+1 |
| | | | | UTF-8 strings. | ||||
* | Non-string results from forwarded methods should be returned vertabim. | Manfred Stienstra | 2008-09-21 | 1 | -2/+3 |
| | |||||
* | Improve documentation. | Manfred Stienstra | 2008-09-21 | 1 | -52/+61 |
| | |||||
* | All methods which normally return a string now return a proxy instance. | Manfred Stienstra | 2008-09-21 | 1 | -2/+1 |
| | |||||
* | Change all calls to String#chars to String#mb_chars. | Manfred Stienstra | 2008-09-21 | 1 | -10/+10 |
| | |||||
* | Simplify ActiveSupport::Multibyte and make it run on Ruby 1.9. | Manfred Stienstra | 2008-09-21 | 1 | -127/+655 |
| | | | | | | * Unicode methods are now defined directly on Chars instead of a handler * Updated Unicode database to Unicode 5.1.0 * Improved documentation | ||||
* | Fix ActiveRecord::Base.quote_bound_value for ActiveSupper::Multibyte::Chars ↵ | Manfred Stienstra | 2008-09-11 | 1 | -0/+5 |
| | | | | | | | | | | values. - Adds String#acts_like_string? - Adds Chars#acts_like_string? Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1029 state:committed] | ||||
* | Ruby 1.8.7 compat: TimeWithZone# and Chars#respond_to? pass along the ↵ | Jeremy Kemper | 2008-05-31 | 1 | -5/+7 |
| | | | | include_private argument | ||||
* | Merge docrails. | Pratik Naik | 2008-05-25 | 1 | -1/+1 |
| | | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com> | ||||
* | Multibyte: String#chars returns self for Ruby 1.9 | Jeremy Kemper | 2007-12-21 | 1 | -8/+2 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8460 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Multibyte: String#chars uses passthrough handler for Ruby 1.9 | Jeremy Kemper | 2007-12-21 | 1 | -1/+1 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8459 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Ruby 1.9 compat: shadowed vars, kcode | Jeremy Kemper | 2007-12-15 | 1 | -2/+8 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8402 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Multibyte strings respond_to the String methods they proxy so they can be ↵ | Jeremy Kemper | 2007-05-28 | 1 | -0/+6 |
| | | | | | | duck-typed. Closes #6549. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6882 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Improved performance by relying less on exception raising #8159 [Blaine] | David Heinemeier Hansson | 2007-04-24 | 1 | -6/+6 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6571 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Nodoc the irrelevant (from 1.2) | David Heinemeier Hansson | 2007-01-26 | 1 | -1/+1 |
| | | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6044 5ecf4fe2-1ee6-0310-87b1-e25e094e27de | ||||
* | Add ActiveSupport::Multibyte. Provides String#chars which lets you deal ↵ | Michael Koziarski | 2006-10-03 | 1 | -0/+129 |
with strings as a sequence of chars, not of bytes. Closes #6242 [Julian Tarkhanov, Manfred Stienstra & Jan Behrens] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5223 5ecf4fe2-1ee6-0310-87b1-e25e094e27de |