cleanup, docs
This commit is contained in:
@@ -17,14 +17,8 @@ Pass a `bool` variable for `ok` so callers can distinguish invalid input from a
|
||||
|
||||
Example:
|
||||
|
||||
```uce
|
||||
|
||||
|
||||
:example
|
||||
bool ok = false;
|
||||
String decoded = base64_decode("aGVsbG8=", ok);
|
||||
// ok == true
|
||||
// decoded == "hello"
|
||||
```
|
||||
|
||||
Related:
|
||||
|
||||
- PHP: `base64_decode($value, true)`
|
||||
- JavaScript / Node.js: `Buffer.from(value, "base64")`
|
||||
print(base64_decode("aGVsbG8=", ok), " ", ok ? "ok" : "bad", "\n");
|
||||
|
||||
Reference in New Issue
Block a user