Description of StringHandlingLib and StringHandlingLibLocal Libraries
The following libraries, StringHandlingLib
and StringHandlingLibLocal
, use string annotations to define string constants:
StringHandlingLib
- The main library is used by both applets and contains the following:String constants for a default location, a hello greeting, and an error message
Examples of
substring
,startsWith
, andendsWith
methods implemented by using theoffsetByCodePoints
method fromStringUtil
Test methods for the
substring
,startsWith
,endsWith
, andoffsetByCodePoints
methods
StringHandlingLibLocal
- The local library is an example of a library that contains location specific string constants.As used in
StringUtilApp
, the local library provides an example of how a library:Controls the formatting of input and output strings including delimiters for arguments and command string terminators
Provides the location used in the welcome message and a default error message