Difference between revisions of "LlUnescapeURL/ja"

From Second Life Wiki
Jump to navigation Jump to search
m (カテゴリ変更)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{LSL_Function/ja
{{LSL_Function/ja
|func_id=308|func_sleep=0.0|func_energy=10.0
|func_id=308|func_sleep=0.0|func_energy=10.0
|func=llUnescapeURL|return_type=string|p1_type=string|p1_name=url
|func=llUnescapeURL|p1_type=string|p1_name=url
|func_footnote=
|func_footnote=
* 例えば %20 は半角スペースとして返されます。
|func_desc=逆エスケープ/デコードされたバージョンの '''url''' を string で返します。 %20 を半角スペースに置き換えるなどします。
|func_desc
|return_text=URL エスケープ/エンコードされた文字列 '''url''' を元に戻した文字列
|spec
|spec
|caveats=* UTF-8 エンコードの 16 進数表記は、ASCII7 以外の文字 (Unicode 文字) を扱える、唯一サポートされている手段です。
|caveats=*16 進エンコードで UTF-8 バイトエンコードの表記をしたときだけ、ASCII7 以外の文字 (Unicode 文字) にアクセスできます。
** %u#### といった Unicode 形式のデコードはサポートしません。
|constants
|constants
|examples=
|examples=
<lsl>default {
<source lang="lsl2">default {
     state_entry() {
     state_entry() {
           string str = "Any string, with anything in it, goes here!";
           string str = "Any string, with anything in it, goes here!";
Line 18: Line 15:
               // Unescape と Escape は互いに逆向きの操作だからです。
               // Unescape と Escape は互いに逆向きの操作だからです。
     }
     }
}</lsl>
}</source>
|helpers
|helpers
|also_functions={{LSL DefineRow||{{LSLG/ja|llEscapeURL}}| llUnescapeURL の逆}}
|also_functions={{LSL DefineRow||{{LSLG/ja|llEscapeURL}}| llUnescapeURL の逆}}
Line 26: Line 23:
{{LSL DefineRow||[[UTF-8]]|}}
{{LSL DefineRow||[[UTF-8]]|}}
{{LSL DefineRow||{{LSLGC/ja|Base64}}|}}
{{LSL DefineRow||{{LSLGC/ja|Base64}}|}}
{{LSL_DefineRow||[[Combined_Library#Unicode_Integer_to_UTF8|Combined Library: UnicodeIntegerToUTF8]]|Easily convert unicode character codes to string form.}}
{{LSL_DefineRow||[[Combined_Library#Unicode_Integer_to_UTF8|Combined Library: UnicodeIntegerToUTF8]]|Unicode 文字コードを文字列に簡単に変換できます。}}
|notes
|notes
|permission
|permission
|negative_index
|negative_index
|sort=UnescapeURL
|sort=UnescapeURL
|cat1=Encoding/ja
|cat1=Encoding
|cat2=String/ja
|cat2=String
|cat3
|cat3
|cat4
|cat4
}}
}}

Latest revision as of 04:44, 25 February 2016

要約

関数: llUnescapeURL( string url );

逆エスケープ/デコードされたバージョンの url を string で返します。 %20 を半角スペースに置き換えるなどします。

• string url

警告

  • 16 進エンコードで UTF-8 バイトエンコードの表記をしたときだけ、ASCII7 以外の文字 (Unicode 文字) にアクセスできます。
All Issues ~ Search JIRA for related Bugs

サンプル

default {
     state_entry() {
          string str = "Any string, with anything in it, goes here!";
          llOwnerSay(llUnescapeURL(llEscapeURL(str)));
               // 変数 "str" の内容がそのまま表示されます。
               // Unescape と Escape は互いに逆向きの操作だからです。
     }
}

関連項目

関数

•  llEscapeURL llUnescapeURL の逆

記事

•  UTF-8
•  Base64暗号化
•  Combined Library: UnicodeIntegerToUTF8 Unicode 文字コードを文字列に簡単に変換できます。

特記事項

Search JIRA for related Issues

Signature

function void llUnescapeURL( string url );
この翻訳は 原文 と比べて古いですか?間違いがありますか?読みにくいですか?みんなで 修正 していきましょう! (手順はこちら)
この項目はあなたにとって参考にならない項目ですか?もしかしたらLSL Wikiの関連した項目が参考になるかもしれません。