11.07.2015 Views

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

$ZCONVERTThe values you can use for mode are as follows:Mode CodeU or uL or lT or tI or iO or oMeaningUppercase translation: Convert all characters in string to uppercase.Lowercase translation: Convert all characters in string to lowercase.Titlecase translation: Convert all characters in string to titlecase.Titlecase is only meaningful for those alphabets (principally EasternEuropean) that have three forms for a letter: uppercase, lowercase,and titlecase. For all other letters, titlecase translation is the same asuppercase translation.Perform input encoding translation on a specified string. For thetwo-argument form, the translation is performed using the currentprocess I/O translation handle. If a current process I/O translationhandle has not been defined, <strong>Caché</strong> performs translation based onthe default process I/O translation table name.Perform output encoding translation on a specified string. For thetwo-argument form, the translation is performed using the currentprocess I/O translation handle. If a current process I/O translationhandle has not been defined, <strong>Caché</strong> performs translation based onthe default process I/O translation table name.If mode is a null string or any value other than the valid characters, you receive a error.When you specify case translation, the two-argument form of $ZCONVERT(string ,"L") isthe functional equivalent of the following form of the $TRANSLATE function:$TRANSLATE(string,"ABC...XYZ","abc...xyz")Titlecase TranslationTitlecase (“T”) mode converts every letter in the string to its titlecase form. Titlecase doesnot selectively uppercase letters based on their position in a word or string. Titlecase is thecase that a letter is represented in when it is the first character of a word in a title. For standardLatin letters, the titlecase form is the same as the uppercase form.Some languages (for example, Croatian) represent particular letters by two letter glyphs. Forexample, “lj” is a single letter in the Croatian alphabet. This letter has three forms: lowercase“lj”, uppercase “LJ”, and titlecase “Lj”. $ZCONVERT titlecase translation is used for thistype of letter conversion.<strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong> 523

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!