strLib.lowerCaseChar() システム関数は、文字型の値のコピーを返し、そのコピー内のすべての大文字を小文字に設定します。数値は影響を受けません。
この関数は、入力値の末尾ブランクを保持します。String 以外の型の入力値から末尾ブランクを除去する場合は、代わりに strLib.lowerCase() 関数を使用します。
小文字値を大文字に変換するには、strLib.upperCaseChar() 関数または strLib.upperCase() 関数を使用します。
strLib.lowerCaseChar(
text CHAR? in)
returns (result CHAR?)
function main()
// each of the literals has 8 characters
myChar CHAR(5) = "ABC ";
myUnicode UNICODE(5) = "ABC ";
myString String = "ABC ";
sysLib.writeStdout(StrLib.lowerCase(myChar) +
"is, for lowerCase type Char");
sysLib.writeStdout(StrLib.lowerCaseChar(myChar) +
"is, for lowerCaseChar type Char");
sysLib.writeStdout(StrLib.lowerCase(myUnicode) +
"is, for lowerCase type Unicode");
sysLib.writeStdout(StrLib.lowerCaseChar(myUnicode) +
"is, for lowerCaseChar type Unicode");
sysLib.writeStdout(StrLib.lowerCase(myString) +
"is, for lowerCase type String");
sysLib.writeStdout(StrLib.lowerCaseChar(myString) +
"is, for lowerCaseChar type String");
end
abcis, for lowerCase type Char
abc is, for lowerCaseChar type Char
abcis, for lowerCase type Unicode
abc is, for lowerCaseChar type Unicode
abc is, for lowerCase type String
abc is, for lowerCaseChar type String
| プラットフォーム | 問題 |
|---|---|
| COBOL 生成 | strLib.lowerCaseChar() 関数は、2 バイト文字に対しては無効です。 |