U:RDoc::AnyMethod[iI"ord:EFI"String#ord;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph;	[I"LReturns the codepoint of the first character of the string, assuming a ;TI"$single-byte character encoding:;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim;	[I""a".ord # => 97
;TI"&"à".ord # => 224, in ISO-8859-1
;T:@format0o;
;	[I"NThis method is defined in Ruby 1.8 for Ruby 1.9 forward compatibility on ;TI"these character encodings.;T@o;
;	[I"M<tt>ActiveSupport::Multibyte::Chars#ord</tt> is forward compatible with ;TI"Ruby 1.9 on UTF8 strings:;T@o;;	[I""a".mb_chars.ord # => 97
;TI")"à".mb_chars.ord # => 224, in UTF8
;T;0o;
;	[I"LNote that the 224 is different in both examples. In ISO-8859-1 "à" is ;TI"Krepresented as a single byte, 224. In UTF8 it is represented with two ;TI"Hbytes, namely 195 and 160, but its Unicode codepoint is 224. If we ;TI"Ncall +ord+ on the UTF8 string "à" the return value will be 195. That is ;TI"Inot an error, because UTF8 is unsupported, the call itself would be ;TI"bogus.;T:
@fileI"6lib/active_support/core_ext/string/conversions.rb;T:0@omit_headings_from_table_of_contents_below000[ I"();T@(FI"String;TcRDoc::NormalClass0