Updated docs for improved string_format

Edited error messages for a few functions.
ConsoleWindow: disallowed negative window position.
This commit is contained in:
NovaRain
2023-06-25 16:16:23 +08:00
parent 5f38744a2e
commit ece95a95e9
7 changed files with 25 additions and 24 deletions
+5 -3
View File
@@ -1072,7 +1072,9 @@
items:
- name: sprintf
detail: string sprintf(string format, any value)
doc: Formats given value using standart syntax of C printf function (google "printf" for format details). However it is limited to formatting only 1 value. Can be used to get character by ASCII code ("%c").
doc: |
Formats given value using standart syntax of C `printf` function (google "printf" for format details). However, it is limited to formatting only 1 value.
- Can be used to get character by ASCII code ("%c").
opcode: 0x8250
- name: typeof
detail: int typeof(any value)
@@ -1117,8 +1119,8 @@
- name: string_format
detail: string string_format(string format, any val1, any val2, ...)
doc: |
Formats given value using standard syntax of C printf function (google "printf" for format details). However it is limited to formatting up to 4 values.
- formatting is only supported for %s and %d, and the format string is limited to 1024 characters
Formats given values using standard syntax of C `printf` function (google "printf" for format details). However, it is limited to formatting up to 7 values.
- The format string is limited to 1024 characters
macro: sfall.h
- name: string_to_case
detail: string sfall_func2("string_to_case", string text, int toCase)