Difference between revisions of "LlChar/ja"
< LlChar
Jump to navigation
Jump to search
(copy from english(Todo: need translate to japanese)) |
m |
||
Line 1: | Line 1: | ||
{{LSL Function | {{LSL Function/ja | ||
|func_sleep=0.0|func_energy=10.0 | |func_sleep=0.0|func_energy=10.0 | ||
|func=llChar|sort=Char | |func=llChar|sort=Char | ||
Line 43: | Line 43: | ||
|helpers|related | |helpers|related | ||
|also_functions= | |also_functions= | ||
{{LSL DefineRow|[[llOrd]]|Convert a character into an ordinal}} | {{LSL DefineRow|[[llOrd/ja]]|Convert a character into an ordinal}} | ||
{{LSL DefineRow|[[llHash]]|Calculate a 32bit hash for a string}} | {{LSL DefineRow|[[llHash/ja]]|Calculate a 32bit hash for a string}} | ||
|also_articles={{LSL DefineRow||{{wikipedia|UTF-32}}|}} | |also_articles={{LSL DefineRow||{{wikipedia|UTF-32}}|}} | ||
|notes | |notes |
Revision as of 13:13, 2 November 2023
LSL ポータル | 関数 | イベント | 型 | 演算子 | 定数 | 実行制御 | スクリプトライブラリ | カテゴリ別スクリプトライブラリ | チュートリアル |
要約
関数: string llChar( integer val );
Construct a single character string from the supplied Unicode value.
string で返します。
• integer | val | – | Unicode value for character. |
This function returns a single character string generated from the character at the indicated UTF-32 codepoint. Returns "?" (Unicode 0x0F) if val is negative.
サンプル
default
{
touch_start(integer total_number)
{
string test_string = "The quick brown fox jumped over the lazy dog";
list test_list = [];
string test_string2 = "";
integer index;
integer ord;
for (index = 0; index < llStringLength(test_string); ++index)
{
ord = llOrd(test_string, index);
test_list = test_list + [ ord ];
}
string char;
for (index = 0; index < llGetListLength(test_list); ++index)
{
ord = llList2Integer(test_list, index);
char = llChar(ord);
test_string2 = test_string2 + char;
}
llSay(0, "\"" + test_string + "\" -> [" +
llDumpList2String(test_list, ", ") + "] -> \"" + test_string2 + "\"");
}
}
関連項目
特記事項
この項目はあなたにとって参考にならない項目ですか?もしかしたらLSL Wikiの関連した項目が参考になるかもしれません。