class String

this file is part of manqod manqod is distributed under the CDDL licence the author of manqod is Dobai-Pataky Balint(dpblnt@gmail.com)

Public Instance Methods

indexU(k,offset=0) click to toggle source
# File lib/Common/String.rb, line 6
def indexU(k,offset=0)
        i=self.upcase.index(k.upcase,offset)
        s=i ? i==0 ? 0 : self[0 .. i-1].lengthU : nil
        s && s >= offset ? s : nil
end
lengthU() click to toggle source
# File lib/Common/String.rb, line 11
def lengthU
        self.scan(/./mu).size
end