#base64->decode() → string
テキストの内容 (UTF-8 として読み込まれます)。
例
<let name="x" type="base64" value="'aGVsbG8gd29ybGQ='" />
<echo>{ $x->decode() }</echo>$x: base64 = 'aGVsbG8gd29ybGQ='
echo $x->decode()フィールドは、値についての単純な事実で、ドットを使い角括弧なしで読み取ります: $value.name。メソッドは引数を取るか処理を行い、-> で呼び出します: $value->name(arguments)。または、値をパイプで渡して呼び出します: $value |> name(arguments)。
| フィールド | 型 | 説明 |
|---|---|---|
.bytes | number | 含まれるバイト数です。 |
base64->decode() → string<let name="x" type="base64" value="'aGVsbG8gd29ybGQ='" />
<echo>{ $x->decode() }</echo>$x: base64 = 'aGVsbG8gd29ybGQ='
echo $x->decode()->convert(from?: 'json'|yaml|'csv'|'markdown'|'latex', to?: 'json'|yaml|'csv'|html|'markdown'|'latex', header?: bool, as?: type, headers?: list, indented?: bool)->from(type: 'json'|yaml|'csv'|'markdown'|'latex', header?: bool, as?: type)->is_a(type: word)->is_null()->or(fallback)->to(type: 'json'|yaml|'csv'|html|'markdown'|'latex', headers?: list, indented?: bool)->to_string()->type()->contains(text, ignore_case?: bool)->count()->ends_with(text, ignore_case?: bool)->escape()->index_of(text, ignore_case?: bool, last?: bool)->markdown_escape()->matches(pattern: regex)->pad(width: number, char?, start?: bool)->slice(start: number, end?: number)->starts_with(text, ignore_case?: bool)->truncate(length: number, suffix?)->url_encode()