String class of PicoRuby

Singleton methods

new

String.new(?string str) -> instance

Instance methods

!

instance.!() -> bool

*

instance.*(int n) -> String

+

instance.+(string other_str) -> String

«

instance.<<(string | Integer str_or_codepoint) -> String

<=>

instance.<=>(string other) -> Integer
instance.<=>(untyped other) -> Integer?

==

instance.==(untyped obj) -> bool

===

instance.===(untyped obj) -> bool

[]

instance.[](int index) -> String?
instance.[](int start, int length) -> String?
instance.[](Range[Integer] | Range[Integer?] range) -> String?
instance.[](String match_str) -> String?

[]=

instance.[]=(int pos, String new_str) -> String
instance.[]=(int begin_pos, int end_pos, String new_str) -> String
instance.[]=(Range[Integer] | Range[Integer?] range, String new_str) -> String
instance.[]=(String other_str, String new_str) -> String

__ljust_rjust_argcheck

instance.__ljust_rjust_argcheck(Integer width, String padding) -> void

bytes

instance.bytes() -> Array[Integer]
instance.bytes() { (Integer byte) -> void } -> String

chomp

instance.chomp(?string separator) -> String

chomp!

instance.chomp!(?string separator) -> String?

clear

instance.clear() -> String

downcase

instance.downcase() -> String
instance.downcase(:ascii | :fold | :lithuanian | :turkic) -> String
instance.downcase(:lithuanian, :turkic) -> String
instance.downcase(:turkic, :lithuanian) -> String

downcase!

instance.downcase!() -> String?
instance.downcase!(:ascii | :fold | :lithuanian | :turkic) -> String?
instance.downcase!(:lithuanian, :turkic) -> String?
instance.downcase!(:turkic, :lithuanian) -> String?

each_byte

instance.each_byte() { (Integer byte) -> void } -> self

each_char

instance.each_char() { (String char) -> void } -> self

empty?

instance.empty?() -> bool

end_with?

instance.end_with?(*string suffixes) -> bool

getbyte

instance.getbyte(int index) -> Integer?

include?

instance.include?(string other_str) -> bool

index

instance.index(string substr_or_regexp, ?int offset) -> Integer?

inspect

instance.inspect() -> String

intern

instance.intern() -> Symbol

length

instance.length() -> Integer

ljust

instance.ljust(Integer width, ?string padstr) -> String

lstrip

instance.lstrip() -> String

lstrip!

instance.lstrip!() -> self?

ord

instance.ord() -> Integer

rjust

instance.rjust(Integer width, ?string padstr) -> String

rstrip

instance.rstrip() -> String

rstrip!

instance.rstrip!() -> self?

split

instance.split(?string pattern, ?int limit) -> Array[String]

start_with?

instance.start_with?(*string prefixes) -> bool

strip

instance.strip() -> String

strip!

instance.strip!() -> self?

to_f

instance.to_f() -> Float

to_i

instance.to_i(?int base) -> Integer

to_s

instance.to_s() -> String

to_sym

instance.to_sym() -> Symbol

tr

instance.tr(string from_str, string to_str) -> String

tr!

instance.tr!(string from_str, string to_str) -> String?

upcase

instance.upcase() -> String
instance.upcase(:ascii | :lithuanian | :turkic) -> String
instance.upcase(:lithuanian, :turkic) -> String
instance.upcase(:turkic, :lithuanian) -> String

upcase!

instance.upcase!() -> self?
instance.upcase!(:ascii | :lithuanian | :turkic) -> self?
instance.upcase!(:lithuanian, :turkic) -> self?
instance.upcase!(:turkic, :lithuanian) -> self?
Tags: