⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.93
Server IP:
65.108.141.171
Server:
Linux server.heloix.com 5.4.0-214-generic #234-Ubuntu SMP Fri Mar 14 23:50:27 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
ri
/
2.7.0
/
system
/
String
/
Edit File: count-i.ri
U:RDoc::AnyMethod[iI" count:ETI"String#count;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"KEach +other_str+ parameter defines a set of characters to count. The ;TI"Ointersection of these sets defines the characters to count in +str+. Any ;TI"J+other_str+ that starts with a caret <code>^</code> is negated. The ;TI"Nsequence <code>c1-c2</code> means all characters between c1 and c2. The ;TI"Qbackslash character <code>\\</code> can be used to escape <code>^</code> or ;TI"O<code>-</code> and is otherwise ignored unless it appears at the end of a ;TI"*sequence or the end of a +other_str+.;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"*str.count([other_str]+) -> integer ;T0[ I"(*args);T@$FI"String;TcRDoc::NormalClass00
Simpan