Source code
CERNY.util
Some general purpose utility functions.
Uses
Used by
Functions
indent
Create an indentation string, a line feed followed by n spaces, where n = indentation.
indentation
:
the number of spaces to append to the line feed
return
:
a string
fillNumber
Return (at least) two digit number as a String. If number smaller than 10 return "0" + number.
number
:
the number to fill
return
:
the filled number
cutNumber
Return the last n digits from the decimal String representation of number.
number
:
the number to get the digits from
n
:
how many digits to get
return
:
the last n digits
parseUri
Parses an URI into its components.
Right now it cannot handle: "mailto:mduerst@ifi.unizh.ch" "news:comp.infosystems.www.servers.unix"
uri
:
the uri to parse
return
:
an object containing the parts of the uri
getNameFromFqName
Return the short name from a fully qualified name.
fqName
:
the fully qualified name
return
:
the short name
History
2007-02-19
:
Added getNameFromFqName.
2007-02-09
:
Added parseUri.
2006-11-12
:
Created.
