X7ROOT File Manager
Current Path:
/opt/alt/ruby18/share/ri/1.8/system/String
opt
/
alt
/
ruby18
/
share
/
ri
/
1.8
/
system
/
String
/
📄
%25-i.yaml
(751 B)
📄
%2a-i.yaml
(413 B)
📄
%2b-i.yaml
(448 B)
📄
%3c%3c-i.yaml
(665 B)
📄
%3c%3d%3e-i.yaml
(1.39 KB)
📄
%3d%3d-i.yaml
(398 B)
📄
%3d%7e-i.yaml
(690 B)
📄
%5b%5d%3d-i.yaml
(1.21 KB)
📄
%5b%5d-i.yaml
(2.37 KB)
ðŸ“
..
📄
_expand_ch-i.yaml
(178 B)
📄
_regex_quote-i.yaml
(182 B)
📄
block_scanf-i.yaml
(208 B)
📄
bytes-i.yaml
(506 B)
📄
bytesize-i.yaml
(268 B)
📄
capitalize%21-i.yaml
(581 B)
📄
capitalize-i.yaml
(577 B)
📄
casecmp-i.yaml
(594 B)
📄
cdesc-String.yaml
(8.3 KB)
📄
center-i.yaml
(726 B)
📄
chars-i.yaml
(540 B)
📄
chomp%21-i.yaml
(387 B)
📄
chomp-i.yaml
(1.05 KB)
📄
chop%21-i.yaml
(164 B)
📄
chop-i.yaml
(162 B)
📄
concat-i.yaml
(671 B)
📄
count-i.yaml
(796 B)
📄
crypt-i.yaml
(467 B)
📄
delete%21-i.yaml
(171 B)
📄
delete-i.yaml
(793 B)
📄
downcase%21-i.yaml
(328 B)
📄
downcase-i.yaml
(519 B)
📄
dump-i.yaml
(360 B)
📄
each-i.yaml
(1.2 KB)
📄
each_byte-i.yaml
(520 B)
📄
each_char-i.yaml
(513 B)
📄
each_line-i.yaml
(1.21 KB)
📄
empty%3f-i.yaml
(423 B)
📄
end_regexp-i.yaml
(174 B)
📄
end_with%3f-i.yaml
(311 B)
📄
eql%3f-i.yaml
(298 B)
📄
expand_ch_hash-i.yaml
(191 B)
📄
gsub%21-i.yaml
(447 B)
📄
gsub-i.yaml
(1.79 KB)
📄
hash-i.yaml
(277 B)
📄
hex-i.yaml
(613 B)
📄
include%3f-i.yaml
(585 B)
📄
index-i.yaml
(955 B)
📄
initialize_copy-i.yaml
(521 B)
📄
insert-i.yaml
(888 B)
📄
inspect-i.yaml
(444 B)
📄
intern-i.yaml
(880 B)
📄
is_binary_data%3f-i.yaml
(184 B)
📄
is_complex_yaml%3f-i.yaml
(186 B)
📄
iseuc-i.yaml
(383 B)
📄
issjis-i.yaml
(389 B)
📄
isutf8-i.yaml
(385 B)
📄
jcount-i.yaml
(169 B)
📄
jlength-i.yaml
(209 B)
📄
jsize-i.yaml
(221 B)
📄
kconv-i.yaml
(543 B)
📄
length-i.yaml
(264 B)
📄
lines-i.yaml
(642 B)
📄
ljust-i.yaml
(739 B)
📄
lstrip%21-i.yaml
(538 B)
📄
lstrip-i.yaml
(515 B)
📄
match-i.yaml
(638 B)
📄
mbchar%3f-i.yaml
(168 B)
📄
new-c.yaml
(293 B)
📄
next%21-i.yaml
(314 B)
📄
next-i.yaml
(1.27 KB)
📄
oct-i.yaml
(590 B)
📄
original_succ%21-i.yaml
(238 B)
📄
original_succ-i.yaml
(235 B)
📄
partition-i.yaml
(766 B)
📄
replace-i.yaml
(505 B)
📄
reverse%21-i.yaml
(262 B)
📄
reverse-i.yaml
(413 B)
📄
rindex-i.yaml
(1010 B)
📄
rjust-i.yaml
(740 B)
📄
rpartition-i.yaml
(739 B)
📄
rstrip%21-i.yaml
(539 B)
📄
rstrip-i.yaml
(516 B)
📄
scan-i.yaml
(1.53 KB)
📄
scanf-i.yaml
(171 B)
📄
shellescape-i.yaml
(366 B)
📄
shellsplit-i.yaml
(366 B)
📄
size-i.yaml
(260 B)
📄
slice%21-i.yaml
(1.09 KB)
📄
slice-i.yaml
(2.37 KB)
📄
split-i.yaml
(2.83 KB)
📄
squeeze%21-i.yaml
(177 B)
📄
squeeze-i.yaml
(898 B)
📄
start_with%3f-i.yaml
(319 B)
📄
strip%21-i.yaml
(344 B)
📄
strip-i.yaml
(475 B)
📄
sub%21-i.yaml
(446 B)
📄
sub-i.yaml
(1.69 KB)
📄
succ%21-i.yaml
(364 B)
📄
succ-i.yaml
(162 B)
📄
sum-i.yaml
(527 B)
📄
swapcase%21-i.yaml
(381 B)
📄
swapcase-i.yaml
(553 B)
📄
to_f-i.yaml
(701 B)
📄
to_i-i.yaml
(1.02 KB)
📄
to_s-i.yaml
(264 B)
📄
to_str-i.yaml
(268 B)
📄
to_sym-i.yaml
(880 B)
📄
to_yaml-i.yaml
(179 B)
📄
toeuc-i.yaml
(449 B)
📄
tojis-i.yaml
(454 B)
📄
tosjis-i.yaml
(455 B)
📄
toutf16-i.yaml
(457 B)
📄
toutf8-i.yaml
(451 B)
📄
tr%21-i.yaml
(381 B)
📄
tr-i.yaml
(948 B)
📄
tr_s%21-i.yaml
(378 B)
📄
tr_s-i.yaml
(170 B)
📄
unpack-i.yaml
(7.83 KB)
📄
upcase%21-i.yaml
(320 B)
📄
upcase-i.yaml
(511 B)
📄
upto-i.yaml
(936 B)
📄
yaml_new-c.yaml
(187 B)
Editing: unpack-i.yaml
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Decodes <em>str</em> (which may contain binary data) according to the format string, returning an array of each value extracted. The format string consists of a sequence of single-character directives, summarized in the table at the end of this entry. Each directive may be followed by a number, indicating the number of times to repeat with this directive. An asterisk (``<tt>*</tt>'') will use up all remaining elements. The directives <tt>sSiIlL</tt> may each be followed by an underscore (``<tt>_</tt>'') to use the underlying platform's native size for the specified type; otherwise, it uses a platform-independent consistent size. Spaces are ignored in the format string. See also <tt>Array#pack</tt>. - !ruby/struct:SM::Flow::VERB body: " "abc \\0\\0abc \\0\\0".unpack('A6Z6') #=> ["abc", "abc "]\n "abc \\0\\0".unpack('a3a3') #=> ["abc", " \\000\\000"]\n "abc \\0abc \\0".unpack('Z*Z*') #=> ["abc ", "abc "]\n "aa".unpack('b8B8') #=> ["10000110", "01100001"]\n "aaa".unpack('h2H2c') #=> ["16", "61", 97]\n "\\xfe\\xff\\xfe\\xff".unpack('sS') #=> [-2, 65534]\n "now=20is".unpack('M*') #=> ["now is"]\n "whole".unpack('xax2aX2aX1aX2a') #=> ["h", "e", "l", "l", "o"]\n" - !ruby/struct:SM::Flow::P body: This table summarizes the various formats and the Ruby classes returned by each. - !ruby/struct:SM::Flow::VERB body: " Format | Returns | Function\n -------+---------+-----------------------------------------\n A | String | with trailing nulls and spaces removed\n -------+---------+-----------------------------------------\n a | String | string\n -------+---------+-----------------------------------------\n B | String | extract bits from each character (msb first)\n -------+---------+-----------------------------------------\n b | String | extract bits from each character (lsb first)\n -------+---------+-----------------------------------------\n C | Fixnum | extract a character as an unsigned integer\n -------+---------+-----------------------------------------\n c | Fixnum | extract a character as an integer\n -------+---------+-----------------------------------------\n d,D | Float | treat sizeof(double) characters as\n | | a native double\n -------+---------+-----------------------------------------\n E | Float | treat sizeof(double) characters as\n | | a double in little-endian byte order\n -------+---------+-----------------------------------------\n e | Float | treat sizeof(float) characters as\n | | a float in little-endian byte order\n -------+---------+-----------------------------------------\n f,F | Float | treat sizeof(float) characters as\n | | a native float\n -------+---------+-----------------------------------------\n G | Float | treat sizeof(double) characters as\n | | a double in network byte order\n -------+---------+-----------------------------------------\n g | Float | treat sizeof(float) characters as a\n | | float in network byte order\n -------+---------+-----------------------------------------\n H | String | extract hex nibbles from each character\n | | (most significant first)\n -------+---------+-----------------------------------------\n h | String | extract hex nibbles from each character\n | | (least significant first)\n -------+---------+-----------------------------------------\n I | Integer | treat sizeof(int) (modified by _)\n | | successive characters as an unsigned\n | | native integer\n -------+---------+-----------------------------------------\n i | Integer | treat sizeof(int) (modified by _)\n | | successive characters as a signed\n | | native integer\n -------+---------+-----------------------------------------\n L | Integer | treat four (modified by _) successive\n | | characters as an unsigned native\n | | long integer\n -------+---------+-----------------------------------------\n l | Integer | treat four (modified by _) successive\n | | characters as a signed native\n | | long integer\n -------+---------+-----------------------------------------\n M | String | quoted-printable\n -------+---------+-----------------------------------------\n m | String | base64-encoded\n -------+---------+-----------------------------------------\n N | Integer | treat four characters as an unsigned\n | | long in network byte order\n -------+---------+-----------------------------------------\n n | Fixnum | treat two characters as an unsigned\n | | short in network byte order\n -------+---------+-----------------------------------------\n P | String | treat sizeof(char *) characters as a\n | | pointer, and return \\emph{len} characters\n | | from the referenced location\n -------+---------+-----------------------------------------\n p | String | treat sizeof(char *) characters as a\n | | pointer to a null-terminated string\n -------+---------+-----------------------------------------\n Q | Integer | treat 8 characters as an unsigned\n | | quad word (64 bits)\n -------+---------+-----------------------------------------\n q | Integer | treat 8 characters as a signed\n | | quad word (64 bits)\n -------+---------+-----------------------------------------\n S | Fixnum | treat two (different if _ used)\n | | successive characters as an unsigned\n | | short in native byte order\n -------+---------+-----------------------------------------\n s | Fixnum | Treat two (different if _ used)\n | | successive characters as a signed short\n | | in native byte order\n -------+---------+-----------------------------------------\n U | Integer | UTF-8 characters as unsigned integers\n -------+---------+-----------------------------------------\n u | String | UU-encoded\n -------+---------+-----------------------------------------\n V | Fixnum | treat four characters as an unsigned\n | | long in little-endian byte order\n -------+---------+-----------------------------------------\n v | Fixnum | treat two characters as an unsigned\n | | short in little-endian byte order\n -------+---------+-----------------------------------------\n w | Integer | BER-compressed integer (see Array.pack)\n -------+---------+-----------------------------------------\n X | --- | skip backward one character\n -------+---------+-----------------------------------------\n x | --- | skip forward one character\n -------+---------+-----------------------------------------\n Z | String | with trailing nulls removed\n | | upto first null with *\n -------+---------+-----------------------------------------\n @ | --- | skip to the offset given by the\n | | length argument\n -------+---------+-----------------------------------------\n" full_name: String#unpack is_singleton: false name: unpack params: | str.unpack(format) => anArray visibility: public
Upload File
Create Folder