mirror of
https://github.com/sfall-team/sfall.git
synced 2026-07-27 16:52:34 -07:00
Updated docs for improved string_format
Edited error messages for a few functions. ConsoleWindow: disallowed negative window position.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user