Skip to content

Commit cdae424

Browse files
committed
feat: added decoding function
1 parent 4073cc5 commit cdae424

File tree

2 files changed

+89
-4
lines changed
  • definitions/standard

2 files changed

+89
-4
lines changed

definitions/standard/data_type/type.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,7 @@
1616
{
1717
"item_of_collection": {
1818
"items": [
19-
"ASCII",
20-
"UTF-8",
21-
"UTF-16",
22-
"UTF-32"
19+
"BASE64",
2320
]
2421
}
2522
}

definitions/standard/runtime_definition/primitive/text.md

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2332,6 +2332,94 @@ Encodes the text using a specified encoding.
23322332

23332333
"hello", "base64" --> "aGVsbG8="
23342334

2335+
## decode
2336+
Decodes the text using a specified encoding.
2337+
2338+
```json
2339+
{
2340+
"runtime_name": "std::text::decode",
2341+
"runtime_parameter_definitions": [
2342+
{
2343+
"data_type_identifier": {
2344+
"data_type_identifier": "TEXT"
2345+
},
2346+
"runtime_name": "value",
2347+
"name": [
2348+
{
2349+
"code": "en-US",
2350+
"content": "Text"
2351+
}
2352+
],
2353+
"description": [
2354+
{
2355+
"code": "en-US",
2356+
"content": "The text string to decode."
2357+
}
2358+
],
2359+
"documentation": [
2360+
{
2361+
"code": "en-US",
2362+
"content": "The text string to decode."
2363+
}
2364+
]
2365+
},
2366+
{
2367+
"data_type_identifier": {
2368+
"data_type_identifier": "TEXT_ENCODING"
2369+
},
2370+
"runtime_name": "encoding",
2371+
"name": [
2372+
{
2373+
"code": "en-US",
2374+
"content": "Encoding Type"
2375+
}
2376+
],
2377+
"description": [
2378+
{
2379+
"code": "en-US",
2380+
"content": "The decoding scheme to apply (e.g. Base64)."
2381+
}
2382+
],
2383+
"documentation": [
2384+
{
2385+
"code": "en-US",
2386+
"content": "The decoding scheme to apply (e.g. Base64)."
2387+
}
2388+
]
2389+
}
2390+
],
2391+
"return_type_identifier": {
2392+
"data_type_identifier": "TEXT"
2393+
},
2394+
"name": [
2395+
{
2396+
"code": "en-US",
2397+
"content": "Decode Text"
2398+
}
2399+
],
2400+
"description": [
2401+
{
2402+
"code": "en-US",
2403+
"content": "Decodes the input text from the specified encoding format."
2404+
}
2405+
],
2406+
"documentation": [
2407+
{
2408+
"code": "en-US",
2409+
"content": "Decodes the input text from the specified encoding format."
2410+
}
2411+
],
2412+
"generic_keys": [],
2413+
"generic_mappers": [],
2414+
"error_type_identifiers": [],
2415+
"deprecation_message": []
2416+
}
2417+
```
2418+
2419+
**Example**:
2420+
2421+
"aGVsbG8=", "base64" --> "hello"
2422+
23352423
## isEqual
23362424

23372425
```json

0 commit comments

Comments
 (0)