D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
String
/
Filename :
count-i.ri
back
Copy
U:RDoc::AnyMethod[iI" count:ETI"String#count;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"6Returns the total number of characters in +self+ ;TI"1that are specified by the given +selectors+ ;TI"j(see {Multiple Character Selectors}[rdoc-ref:character_selectors.rdoc@Multiple+Character+Selectors]):;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"a = "hello world" ;TI"*a.count "lo" #=> 5 ;TI"*a.count "lo", "o" #=> 2 ;TI"*a.count "hello", "^l" #=> 4 ;TI"*a.count "ej-m" #=> 4 ;TI" ;TI"*"hello^world".count "\\^aeiou" #=> 4 ;TI"*"hello-world".count "a\\-eo" #=> 4 ;TI" ;TI"c = "hello world\\r\\n" ;TI"*c.count "\\" #=> 2 ;TI"*c.count "\\A" #=> 0 ;TI")c.count "X-\\w" #=> 3;T:@format0: @fileI" string.c;T:0@omit_headings_from_table_of_contents_below0I""count(*selectors) -> integer ;T0[ I"(*args);T@ FI"String;TcRDoc::NormalClass00