@param [String] str The string to format

 @return [String] The string, formatted to be used as a title in a section
   in the help
170888
def format_as_title(str, io)
      if Cri::Platform.color?(io)
        bold(red(str.upcase))
      else
        str.upcase
      end
    end
1066362
def format(m, formatter)
      m[:overrides].each do |o|
        label = o[:owner] + "." + o[:name]
        o[:link] = formatter.link(o[:owner], o[:name], label, m[:tagname], m[:static])
      end
    end
79287
def title(value, failure_string='N/A'):
    
    try:
        value = value.lower()
        t = re.sub("([a-z])'([A-Z])", lambda m: m.group(0).lower(), value.title())
        result = re.sub("\d([A-Z])", lambda m: m.group(0).lower(), t)
        if not result:
            return failure_string
        return result
    except:
        return failure_string
873382
function capitalize (str) {
  if (R.isNil(str)) {
    throw new Error('The "capitalize" helper requires one argument.')
  }

  if (!R.is(String, str)) {
    str = str.toString();
  }

  return Capitalize(str);
}
709284
function highlightString(str, indexes){

    // If there's nothing to do, return immediately
    if(!indexes || !indexes.length) return str;

    var out = '';

    // Loop through string one character at a time, highlighting as necessary
    for(var i = 0; i < str.length; i += 1){
      out += indexes.indexOf(i) !== -1 ? str.charAt(i).bold() : str.charAt(i);
    }
    return out;
  }
1371151
def without_indent(str)
      indent = str.split($/).each {|line| !line.strip.empty? }.map {|line| line.index(/[^\s]/) }.compact.min
      str.gsub(/^[[:blank:]]{#{indent}}/, '')
    end
550642
private String wrapLine(String str) {
	int wtl = wraptext;

	if (str.length() <= wtl) return str;

	String sub = str.substring(0, wtl);
	String rest = str.substring(wtl);
	char firstR = rest.charAt(0);
	String ls = System.getProperty("line.separator");

	if (firstR == ' ' || firstR == '\t') return sub + ls + wrapLine(rest.length() > 1 ? rest.substring(1) : "");

	int indexSpace = sub.lastIndexOf(' ');
	int indexTab = sub.lastIndexOf('\t');
	int index = indexSpace <= indexTab ? indexTab : indexSpace;

	if (index == -1) return sub + ls + wrapLine(rest);
	return sub.substring(0, index) + ls + wrapLine(sub.substring(index + 1) + rest);

    }
592930
def block str
      return str unless self.class.const_defined?(:BLOCK_TAGS)
      result = str.dup
      self.class::BLOCK_TAGS.each { |tag, value|
        result.gsub!(/(#{tag})(.*?)(?:#{tag}|\Z)/m) { |m|
          %Q{

#{$1} #{Base64.encode64($2).carriage(false).bowl}

}
        }
      }
      result
    end
810139
public Cell createTitleCell(String str, double width) {

        int cellCnt = this.getCellCnt();

        Cell cell = this.getLastRow().createCell(cellCnt);
        cell.setCellValue(str);
        cell.setCellType(CellType.STRING);
        cell.setCellStyle(this.style.getStringCs());

        sheet.setColumnWidth(cellCnt, (int) (sheet.getColumnWidth(cellCnt) * width));

        return cell;
    }
1051443
def camelize(str)
      call_or_yield str do
        str.to_s.sub(/^[a-z\d]*/) { $&.capitalize }.gsub(/(?:_|(\/))([a-z\d]*)/) { "#{$1}#{$2.capitalize}" }.gsub('/', '::')
      end
    end
269192
public function wrap($str, $wrap)
    {
        return (is_string($str) && $str !== '') ? $wrap.$str.$wrap : $str;
    }
1127745
def to_xml_string(str = "")
      str << ('<c:' << @tag_name.to_s << '>')
      str << ('<c:ptCount val="' << @pt.size.to_s << '"/>')
      @pt.each_with_index do |value, index|
        value.to_xml_string index, str
      end
      str << ('</c:' << @tag_name.to_s << '>')
    end
869345
def constantize( str )
      str.to_s.split(/[-_]/).map { |v| v.capitalize }.to_s
    end
383827
public static function highLight(String $str, Array $settings = []) : String
    {
        return Helper::highLight($str, $settings);
    }
700765
def title(self):
        
        value = self._schema.get("title", None)
        if value is None:
            return
        if not isinstance(value, basestring):
            raise SchemaError(
                "title value {0!r} is not a string".format(value))
        return value
919641
def custom str
      return str unless self.class.const_defined?(:CUSTOM_TAGS)
      result = str.dup
      self.class::CUSTOM_TAGS.each { |tag, value|
        result.gsub!(/#{tag}/m, value)
      }
      result
    end
563827
def info(*ruby_strings)
      ruby_string = normalize_ruby_string(ruby_strings)
      res = rvm(:info, ruby_string)
      res.successful? ? YAML.load(res.stdout) : {}
    end