aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/multibyte
Commit message (Collapse)AuthorAgeFilesLines
* Merge with docrails. Also add a rake task to generate guides in your rails ↵Pratik Naik2008-10-211-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 Stienstra2008-09-211-1/+1
| | | | UTF-8 strings.
* Non-string results from forwarded methods should be returned vertabim.Manfred Stienstra2008-09-211-2/+3
|
* Improve documentation.Manfred Stienstra2008-09-212-52/+62
|
* All methods which normally return a string now return a proxy instance.Manfred Stienstra2008-09-211-2/+1
|
* Change all calls to String#chars to String#mb_chars.Manfred Stienstra2008-09-211-10/+10
|
* Simplify ActiveSupport::Multibyte and make it run on Ruby 1.9.Manfred Stienstra2008-09-217-892/+733
| | | | | | * 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 Stienstra2008-09-111-0/+5
| | | | | | | | | | values. - Adds String#acts_like_string? - Adds Chars#acts_like_string? Signed-off-by: Michael Koziarski <michael@koziarski.com> [#1029 state:committed]
* Fix file permissionsTarmo Tänav2008-07-311-0/+0
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Ruby 1.8.7 compat: TimeWithZone# and Chars#respond_to? pass along the ↵Jeremy Kemper2008-05-311-5/+7
| | | | include_private argument
* Merge docrails.Pratik Naik2008-05-252-11/+9
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Improve documentation coverage and markupXavier Noria2008-05-021-1/+3
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Multibyte: String#chars returns self for Ruby 1.9Jeremy Kemper2007-12-211-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.9Jeremy Kemper2007-12-211-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8459 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat: shadowed vars, kcodeJeremy Kemper2007-12-151-2/+8
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8402 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Standardize on using hyphens rather than colons to separate option names ↵Marcel Molina2007-11-061-2/+2
| | | | | | from their explanation in documentation. Replace + with tt tags. Closes #8732. [ryanb] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8106 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Multibyte: String#slice supports regexp argument. Closes #9646.Jeremy Kemper2007-10-151-0/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7910 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make the utf-handler return the correct value for non-matching regular ↵Michael Koziarski2007-08-051-1/+1
| | | | | | expressions. Closes #9049 [manfred] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7273 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add ljust, rjust and center to utf8-handler. Closes #9165 [manfred]Michael Koziarski2007-08-051-0/+66
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7272 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add support for []= on ActiveSupport::Multibyte::Chars. Closes #9142. [ewan, ↵Marcel Molina2007-07-311-0/+38
| | | | | | manfred] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7257 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Multibyte strings respond_to the String methods they proxy so they can be ↵Jeremy Kemper2007-05-281-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 Hansson2007-04-241-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 Hansson2007-01-264-6/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6044 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* ActiveSupport::Multibyte::Handlers::UTF8Handler should raise when a range ↵Rick Olson2007-01-231-2/+6
| | | | | | and an integer are passed in (just like the native implementation). Closes #7176 [Rich Collins] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6021 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Lazily load the Unicode Database in the UTF-8 Handler [Rick Olson]Rick Olson2006-11-091-22/+33
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5476 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ensure Chars#tidy_bytes only tidies broken bytes. Closes #6397 [Manfred ↵Michael Koziarski2006-10-171-6/+11
| | | | | | Stienstra] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5316 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make String#chars slicing behaviour consistent with String. Closes #6387 ↵Michael Koziarski2006-10-121-3/+3
| | | | | | [Manfred Stienstra] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5286 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Pull in latest multibyte patch. Closes #6346 [Manfred Stienstra]Michael Koziarski2006-10-042-21/+19
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5224 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add ActiveSupport::Multibyte. Provides String#chars which lets you deal ↵Michael Koziarski2006-10-035-0/+770
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