Difference between revisions of "Quake c string"
Jump to navigation
Jump to search
(Created page with "Quake C strings are zero terminated sequences of characters. Vanilla quake c offers no straightforward ways to modify a string once it is created and no way to combine existing strings into a new string. Searching through the existing entities in the world of quake can be done by strings Strings can be printed/output to screen with a number of different methods ====== see also: ====== ftos creates a string from a floating point numb...") |
|||
Line 1: | Line 1: | ||
Quake C strings are zero terminated sequences of characters. Vanilla quake c offers no straightforward ways to modify a string once it is created and no way to combine existing strings into a new string. | Quake C strings are one of the primitive types of Quake C. They are zero-terminated sequences of characters. Vanilla quake c offers no straightforward ways to modify a string once it is created and no way to combine existing strings into a new string. | ||
Much like the C programming language, strings in QuakeC have escape characters: | |||
{| class="wikitable" | |||
|+ | |||
!character | |||
!result | |||
|- | |||
|\n | |||
|new line | |||
|- | |||
|\" | |||
|" | |||
|- | |||
| | |||
| | |||
|} | |||
The 2021 release uses curly-braces as a delimiter/replacement shorthand | |||
Searching through the existing entities in the world of quake can be done by strings | Searching through the existing entities in the world of quake can be done by strings | ||
Strings can be [[Quake-c printing function|printed/output to screen]] with a number of different methods | Strings can be [[Quake-c printing function|printed/output to screen]] with a number of different methods | ||
file paths are strings | |||
====== see also: ====== | ====== see also: ====== |
Revision as of 08:37, 16 February 2022
Quake C strings are one of the primitive types of Quake C. They are zero-terminated sequences of characters. Vanilla quake c offers no straightforward ways to modify a string once it is created and no way to combine existing strings into a new string.
Much like the C programming language, strings in QuakeC have escape characters:
character | result |
---|---|
\n | new line |
\" | " |
The 2021 release uses curly-braces as a delimiter/replacement shorthand
Searching through the existing entities in the world of quake can be done by strings
Strings can be printed/output to screen with a number of different methods
file paths are strings
see also:
ftos creates a string from a floating point number
vtos creates a string representation of a vector