⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.116
Server IP:
78.40.11.138
Server:
Linux tango.o2switch.net 4.18.0-553.30.1.lve.el8.x86_64 #1 SMP Tue Dec 3 01:21:19 UTC 2024 x86_64
Server Software:
Apache
PHP Version:
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
opt
/
alt
/
ruby19
/
share
/
ri
/
1.9.1
/
system
/
String
/
Edit File: %5b%5d-i.ri
U:RDoc::AnyMethod[iI"[]:ETI"String#[];FF:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [ I"JElement Reference---If passed a single <code>Fixnum</code>, returns a;TI"Ssubstring of one character at that position. If passed two <code>Fixnum</code>;TI"Pobjects, returns a substring starting at the offset given by the first, and;TI"Pwith a length given by the second. If passed a range, its beginning and end;TI"Oare interpreted as offsets delimiting the substring to be returned. In all;TI"Uthree cases, if an offset is negative, it is counted from the end of <i>str</i>.;TI"OReturns <code>nil</code> if the initial offset falls outside the string or;TI"the length is negative.;To:RDoc::Markup::BlankLine o; ; [I"PIf a <code>Regexp</code> is supplied, the matching portion of <i>str</i> is;TI"Rreturned. If a numeric or name parameter follows the regular expression, that;TI"Fcomponent of the <code>MatchData</code> is returned instead. If a;TI"J<code>String</code> is given, that string is returned if it occurs in;TI"K<i>str</i>. In both cases, <code>nil</code> is returned if there is no;TI"match.;T@o:RDoc::Markup::Verbatim; [I"a = "hello there" ;FI"$a[1] #=> "e" ;FI"&a[2, 3] #=> "llo" ;FI"%a[2..3] #=> "ll" ;FI"%a[-3, 2] #=> "er" ;FI"&a[7..-2] #=> "her" ;FI"&a[-4..-2] #=> "her" ;FI"#a[-2..-4] #=> "" ;FI"$a[12..-1] #=> nil ;FI"&a[/[aeiou](.)\1/] #=> "ell" ;FI"&a[/[aeiou](.)\1/, 0] #=> "ell" ;FI"$a[/[aeiou](.)\1/, 1] #=> "l" ;FI"$a[/[aeiou](.)\1/, 2] #=> nil ;FI"%a["lo"] #=> "lo" ;FI"#a["bye"] #=> nil;F: @file0I"Wstr[fixnum] -> new_str or nil str[fixnum, fixnum] -> new_str or nil str[range] -> new_str or nil str[regexp] -> new_str or nil str[regexp, fixnum] -> new_str or nil str[other_str] -> new_str or nil str.slice(fixnum) -> new_str or nil str.slice(fixnum, fixnum) -> new_str or nil str.slice(range) -> new_str or nil str.slice(regexp) -> new_str or nil str.slice(regexp, fixnum) -> new_str or nil str.slice(regexp, capname) -> new_str or nil str.slice(other_str) -> new_str or nil ;T0[ I"(*args);FI" string.c;T
Simpan