Skip to content

Commit

Permalink
doc: Add examples for utf16, utf16_encode
Browse files Browse the repository at this point in the history
  • Loading branch information
hillu committed Aug 22, 2023
1 parent aed26d8 commit 10628e4
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions docs/references/vql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6304,7 +6304,13 @@
type: Plugin
category: windows
- name: utf16
description: Parse input from utf16.
description: |
Parse input from utf16.
### Example
```vql
utf16(string='A\x00B\x00C\x00D\x00') -> "ABCD"
```
type: Function
args:
- name: string
Expand All @@ -6313,7 +6319,13 @@
required: true
category: basic
- name: utf16_encode
description: Encode a string to utf16 bytes.
description: |
Encode a string to utf16 bytes.
### Example
```vql
utf16_encode(string="ABCD") -> "A\u0000B\u0000C\u0000D\u0000"
```
type: Function
args:
- name: string
Expand Down

0 comments on commit 10628e4

Please sign in to comment.