License:
BSD style: see license.txt

Version:
Dec 2006: Initial release

author:
Kris

Placeholder for a selection of ASCII utilities. These generally will not work with utf8, and cannot be easily extended to utf16 or utf32

  • char[] toLower (char[] src, char[] dst = null);
  • Convert to lowercase. Returns the converted content in dst, performing an in-place conversion if dst is null

  • char[] toUpper (char[] src, char[] dst = null);
  • Convert to uppercase. Returns the converted content in dst, performing an in-place conversion if dst is null

  • int icompare (char[] s1, char[] s2);
  • Compare two char[] ignoring case. Returns 0 if equal

  • int compare (char[] s1, char[] s2);
  • Compare two char[] with case. Returns 0 if equal

  • static int isearch (char[] src, char[] pattern);
  • Return the index position of a text pattern within src, or src.length upon failure.

    This is a case-insensitive search (with thanks to Nietsnie)

    Copyright (c) 2006 Kris Bell. All rights reserved :: page rendered by CandyDoc