Package | Description |
---|---|
net.sf.rubycollect4j |
Modifier and Type | Method and Description |
---|---|
RubyString |
RubyString.b()
Returns a copied string whose encoding is ASCII-8BIT.
|
RubyString |
RubyString.byteslice(int index)
Returns a substring of one byte at given index.
|
RubyString |
RubyString.byteslice(int offset,
int length)
Returns a substring starting at the offset given by the first, and a length
given by the second.
|
RubyString |
RubyString.capitalize()
Returns a copy of
RubyString with the first character converted to
uppercase and the remainder to lowercase. |
RubyString |
RubyString.capitalizeǃ()
Modifies
RubyString by converting the first character to uppercase
and the remainder to lowercase. |
RubyString |
RubyString.center(int width)
Returns a new
RubyString of length width with str centered and
padded with spaces. |
RubyString |
RubyString.center(int width,
java.lang.String padstr)
Returns a new
RubyString of length width with str centered and
padded with padstr. |
RubyString |
RubyString.chomp()
Returns a new
RubyString with the line separator removed from the
end of str. |
RubyString |
RubyString.chomp(java.lang.String separator)
Returns a new
RubyString with the given line separator removed from
the end of str. |
RubyString |
RubyString.chompǃ()
Modifies str in place as described for
chomp() , returning str, or
null if no modifications were made. |
RubyString |
RubyString.chompǃ(java.lang.String separator)
Modifies str in place as described for
chomp() , returning str, or
null if no modifications were made. |
RubyString |
RubyString.chop()
Returns a new
RubyString with the last character removed. |
RubyString |
RubyString.chopǃ()
Processes str as for
chop() , returning str, or null if str is the
empty string. |
RubyString |
RubyString.chr()
Returns a one-character string at the beginning of the string.
|
RubyString |
RubyString.clear()
Makes string empty.
|
RubyString |
RubyString.concat(int codepoint)
Appends the given codepoint as a character to str.
|
RubyString |
RubyString.concat(java.lang.Object o)
Appends the given object to str.
|
RubyString |
RubyString.crypt(java.lang.String salt)
Applies a one-way cryptographic hash to str by invoking the
MessageDigest(MD5) with the given salt string.
|
RubyString |
RubyString.delete(java.lang.String charSet)
Returns a copy of str with all characters in the intersection of its
arguments deleted.
|
RubyString |
RubyString.deleteǃ(java.lang.String charSet)
Performs a delete operation in place, returning str, or null if str was not
modified.
|
RubyString |
RubyString.downcase()
Returns a copy of str with all uppercase letters replaced with their
lowercase.
|
RubyString |
RubyString.downcaseǃ()
Downcases the contents of str, returning null if no changes were made.
|
RubyString |
RubyString.dump()
Produces a version of str with all non-printing or non-ASCII 8bit
characters replaced by \\nnn or \\unnnn notation and all special characters
escaped.
|
RubyString |
RubyString.eachByte(Block<java.lang.Byte> block)
Passes each byte in str to the given block.
|
RubyString |
RubyString.eachChar(Block<java.lang.String> block)
Passes each character in str to the given block.
|
RubyString |
RubyString.eachCodepoint(Block<java.lang.Integer> block)
Passes each codepoint in str to the given block.
|
RubyString |
RubyString.eachLine(Block<java.lang.String> block)
Passes each line in str to the given block.
|
RubyString |
RubyString.eachLine(java.lang.String separator,
Block<java.lang.String> block)
Passes each line by given separator in str to the given block.
|
RubyString |
RubyString.encode(java.lang.String encoding)
Returns a copy of str transcoded to encoding encoding.
|
RubyString |
RubyString.encode(java.lang.String dstEncoding,
java.lang.String srcEncoding)
Returns a copy of str transcoded from srcEncoding to dstEncoding.
|
RubyString |
RubyString.encodeǃ(java.lang.String encoding)
Returns the str transcoded to encoding encoding.
|
RubyString |
RubyString.encodeǃ(java.lang.String dstEncoding,
java.lang.String srcEncoding)
Returns the str transcoded from srcEncoding to dstEncoding.
|
RubyString |
RubyString.forceEncoding(java.lang.String encoding)
Changes the encoding to encoding and returns self.
|
RubyString |
RubyString.gsub(java.lang.String regex,
java.util.Map<java.lang.String,?> map)
Returns a copy of str with the all occurrences of pattern substituted for
the second argument.
|
RubyString |
RubyString.gsub(java.lang.String regex,
java.lang.String replacement)
Returns a copy of str with the all occurrences of pattern substituted for
the second argument.
|
RubyString |
RubyString.gsub(java.lang.String regex,
TransformBlock<java.lang.String,java.lang.String> block)
Returns a copy of str with the all occurrences of pattern substituted for
the second argument.
|
RubyString |
RubyString.gsubǃ(java.lang.String regex,
java.lang.String replacement)
Performs the substitutions of
gsub(String, String) in place,
returning this RubyString , or null if no substitutions were
performed. |
RubyString |
RubyString.gsubǃ(java.lang.String regex,
TransformBlock<java.lang.String,java.lang.String> block)
Performs the substitutions of
gsub(String, TransformBlock) in
place, returning this RubyString , or null if no substitutions were
performed. |
RubyString |
RubyString.insert(int index,
java.lang.String otherStr)
Inserts otherStr before the character at the given index, modifying str.
|
RubyString |
RubyString.inspect()
Returns a printable version of str, surrounded by quote marks, with special
characters escaped.
|
RubyString |
RubyString.ljust(int width)
If integer is greater than the length of str, returns a new
RubyString of length integer with str left justified and padded
with whitesapce; otherwise, returns str. |
RubyString |
RubyString.ljust(int width,
java.lang.String padstr)
If integer is greater than the length of str, returns a new
RubyString of length integer with str left justified and padded
with padstr; otherwise, returns str. |
RubyString |
RubyString.lstrip()
Returns a copy of str with leading whitespace removed.
|
RubyString |
RubyString.lstripǃ()
Removes leading whitespace from str, returning null if no change was made.
|
RubyString |
RubyString.next()
Returns the successor to str.
|
RubyString |
RubyString.nextǃ()
Equivalent to
next() , but modifies the receiver in place. |
RubyString |
RubyString.prepend(java.lang.String otherStr)
Prepends the given string to str.
|
RubyString |
RubyString.replace(java.lang.String otherStr)
Replaces the contents and taintedness of str with the corresponding values
in otherStr.
|
RubyString |
RubyString.reverse()
Returns a new string with the characters from str in reverse order.
|
RubyString |
RubyString.reverseǃ()
Reverses str in place.
|
RubyString |
RubyString.rjust(int width)
If width is greater than the length of str, returns a new String of length
integer with str right justified and padded with whitespace; otherwise,
returns str.
|
RubyString |
RubyString.rjust(int width,
java.lang.String padstr)
If width is greater than the length of str, returns a new String of length
integer with str right justified and padded with padstr; otherwise, returns
str.
|
static RubyString |
RubyCollections.rs()
Creates a
RubyString . |
static RubyString |
RubyCollections.rs(java.lang.Object o)
Creates a
RubyString by given Object. |
RubyString |
RubyString.rstrip()
Returns a copy of str with trailing whitespace removed.
|
RubyString |
RubyString.rstripǃ()
Removes trailing whitespace from str, returning nil if no change was made.
|
RubyString |
RubyString.scan(java.lang.String regex,
Block<java.lang.String> block)
Both forms iterate through str, matching the regexp.
|
RubyString |
RubyString.scanGroups(java.lang.String regex,
Block<RubyArray<java.lang.String>> block)
Both forms iterate through str, matching the regexp.
|
RubyString |
RubyString.scrub()
If the string is invalid byte sequence then replace invalid bytes with �.
|
RubyString |
RubyString.scrub(java.lang.String repl)
If the string is invalid byte sequence then replace invalid bytes with
given replacement character.
|
RubyString |
RubyString.scrub(TransformBlock<RubyArray<java.lang.Byte>,java.lang.String> block)
If the string is invalid byte sequence then replace invalid bytes with
returned value of the block.
|
RubyString |
RubyString.scrubǃ()
If the string is invalid byte sequence then replace invalid bytes with �.
|
RubyString |
RubyString.scrubǃ(java.lang.String repl)
If the string is invalid byte sequence then replace invalid bytes with
given replacement character.
|
RubyString |
RubyString.scrubǃ(TransformBlock<RubyArray<java.lang.Byte>,java.lang.String> block)
If the string is invalid byte sequence then replace invalid bytes with
returned value of the block.
|
RubyString |
RubyString.slice(int index)
Returns a substring of one character at that index.
|
RubyString |
RubyString.slice(int index,
int length)
Returns a substring containing length characters starting at the index.
|
RubyString |
RubyString.slice(java.util.regex.Pattern pattern)
Returns the matching portion of the string.
|
RubyString |
RubyString.slice(java.util.regex.Pattern pattern,
int group)
Returns the target group of matching portion of the string.
|
RubyString |
RubyString.slice(java.lang.String matchStr)
Returns if matchStr occurs in the string.
|
RubyString |
RubyString.sliceǃ(int index)
Deletes the specified portion from str, and returns the portion deleted.
|
RubyString |
RubyString.sliceǃ(int index,
int length)
Deletes the specified portion from str, and returns the portion deleted.
|
RubyString |
RubyString.sliceǃ(java.util.regex.Pattern pattern)
Deletes the specified portion from str, and returns the portion deleted.
|
RubyString |
RubyString.sliceǃ(java.util.regex.Pattern pattern,
int group)
Deletes the specified portion from str, and returns the portion deleted.
|
RubyString |
RubyString.sliceǃ(java.lang.String matchStr)
Deletes the specified portion from str, and returns the portion deleted.
|
RubyString |
RubyString.squeeze()
Builds a set of characters using the procedure described for
RubyEnumerable.count() . |
RubyString |
RubyString.squeeze(java.lang.String charSet)
Builds a set of characters from the charSet using the procedure described
for
RubyEnumerable.count() . |
RubyString |
RubyString.squeezeǃ()
Squeezes str in place, returning either str, or nil if no changes were
made.
|
RubyString |
RubyString.squeezeǃ(java.lang.String charSet)
Squeezes str in place, returning either str, or nil if no changes were
made.
|
RubyString |
RubyString.strip()
Returns a copy of str with leading and trailing whitespace removed.
|
RubyString |
RubyString.stripǃ()
Removes leading and trailing whitespace from str.
|
RubyString |
RubyString.sub(java.lang.String regex,
java.util.Map<java.lang.String,?> map)
Returns a copy of str with the first occurrence of pattern replaced by the
second argument.
|
RubyString |
RubyString.sub(java.lang.String regex,
java.lang.String replacement)
Returns a copy of str with the first occurrence of pattern replaced by the
second argument.
|
RubyString |
RubyString.sub(java.lang.String regex,
TransformBlock<java.lang.String,java.lang.String> block)
Returns a copy of str with the first occurrence of pattern replaced by the
value returned by the block will be substituted for the match on each call.
|
RubyString |
RubyString.subǃ(java.lang.String regex,
java.lang.String replacement)
Performs the same substitution as
sub(String, String) in-place. |
RubyString |
RubyString.subǃ(java.lang.String regex,
TransformBlock<java.lang.String,java.lang.String> block)
Performs the same substitution as
sub(String, TransformBlock)
in-place. |
RubyString |
RubyString.succ()
Returns the successor to str.
|
RubyString |
RubyString.succǃ()
Equivalent to
succ() , but modifies the receiver in place. |
RubyString |
RubyString.swapcase()
Returns a copy of str with uppercase alphabetic characters converted to
lowercase and lowercase characters converted to uppercase.
|
RubyString |
RubyString.swapcaseǃ()
Equivalent to
swapcase() , but modifies the receiver in place,
returning str, or null if no changes were made. |
RubyString |
RubyString.tr(java.lang.String fromStr,
java.lang.String toStr)
Returns a copy of str with the characters in fromStr replaced by the
corresponding characters in toStr.
|
RubyString |
RubyString.trS(java.lang.String fromStr,
java.lang.String toStr)
Processes a copy of str as described under
tr(String, String) ,
then removes duplicate characters in regions that were affected by the
translation. |
RubyString |
RubyString.trSǃ(java.lang.String fromStr,
java.lang.String toStr)
Performs
trS(String, String) processing on str in place, returning
str, or null if no changes were made. |
RubyString |
RubyString.trǃ(java.lang.String fromStr,
java.lang.String toStr)
Translates str in place, using the same rules as
tr(String, String) . |
RubyString |
RubyString.upcase()
Returns a copy of str with all lowercase letters replaced with their
uppercase counterparts.
|
RubyString |
RubyString.upcaseǃ()
Upcases the contents of str, returning nil if no changes were made.
|
RubyString |
RubyString.upto(java.lang.String otherStr,
Block<java.lang.String> block)
Iterates through successive values, starting at str and ending at otherStr
inclusive, passing each value in turn to the block.
|
RubyString |
RubyString.upto(java.lang.String otherStr,
boolean exclusive,
Block<java.lang.String> block)
Iterates through successive values, starting at str and ending at otherStr,
passing each value in turn to the block.
|