Skip to content

Commit

Permalink
Merge pull request #81 from justanotheranonymoususer/patch-1
Browse files Browse the repository at this point in the history
Document new system for expression functions
  • Loading branch information
mrexodia authored Oct 5, 2021
2 parents 86669f3 + 80543fa commit e7b79c1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion introduction/Expression-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ You may use functions in an expression. The following functions are defined by t
* `ternary(condition, val1, val2)` : If condition is nonzero, return `val1`, otherwise return `val2`.
* `GetTickCount()` : Tick count of x64dbg.

## Strings

* `utf8(str)` : A UTF-8 string.
* `utf16(str)` : A UTF-16 string.
* `strstr(str1, str2)` : Find a substring. For example, `strstr(utf8(addr), "abc")`.
* `streq(str1, str2)` : Compare two strings. For example, `strcmp(utf8(addr), "abc")`.

## Memory

* `mem.valid(addr)` : True if `addr` is a valid memory address.
Expand Down Expand Up @@ -110,4 +117,4 @@ This is a set of functions to get information about the last exception. They can

## Plugins

Plugins can register their own expression functions. See the plugin documentation for more details.
Plugins can register their own expression functions. See the plugin documentation for more details.

0 comments on commit e7b79c1

Please sign in to comment.