Class String
In: lib/sup/util.rb
Parent: Object

Methods

Classes and Modules

Class String::CheckError

Public Instance methods

nasty multibyte hack for ruby 1.8. if it‘s utf-8, split into chars using the utf8 regex and count those. otherwise, use the byte length.

a very complicated regex found on teh internets to split on commas, unless they occurr within double quotes.

ok, here we do it the hard way. got to have a remainder for purposes of tab-completing full email addresses

takes a list of words, and returns an array of symbols. typically used in Sup for translating Ferret‘s representation of a list of labels (a string) to an array of label symbols.

split_on will be passed to String#split, so you can leave this nil for space.

[Validate]