UTIL ReplaceKeyBindings: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
Note:Input buffer sizes are in bytes rather than unicode character count.
		
	
 (Created page.)  | 
				No edit summary  | 
				||
| Line 1: | Line 1: | ||
{{lang|UTIL ReplaceKeyBindings|title=<code>UTIL_ReplaceKeyBindings</code>}}  | |||
{{ent|UTIL_ReplaceKeyBindings}} is a [[UTIL]] function that looks up key bindings (marked with <code>%<command>%</code>) for commands and replaces them with the key bound to them, in string.  | |||
{{note|Input buffer sizes are in bytes rather than unicode character count.}}  | {{note|Input buffer sizes are in bytes rather than unicode character count.}}  | ||
==Declaration==  | |||
==  | |||
<source lang=cpp>  | <source lang=cpp>  | ||
void UTIL_ReplaceKeyBindings( const wchar_t *inbuf, int inbufsizebytes, OUT_Z_BYTECAP(outbufsizebytes) wchar_t *outbuf, int outbufsizebytes )  | void UTIL_ReplaceKeyBindings( const wchar_t *inbuf, int inbufsizebytes, OUT_Z_BYTECAP(outbufsizebytes) wchar_t *outbuf, int outbufsizebytes );  | ||
</source>  | </source>  | ||
==Examples==  | ==Examples==  | ||
{{todo|Add examples.}}  | {{todo|Add examples.}}  | ||
[[Category:Programming]]  | |||
[[Category:UTIL]]  | [[Category:UTIL]]  | ||
Latest revision as of 21:34, 2 November 2021
UTIL_ReplaceKeyBindings is a UTIL function that looks up key bindings (marked with %<command>%) for commands and replaces them with the key bound to them, in string.
Declaration
void UTIL_ReplaceKeyBindings( const wchar_t *inbuf, int inbufsizebytes, OUT_Z_BYTECAP(outbufsizebytes) wchar_t *outbuf, int outbufsizebytes );
Examples
Todo: Add examples.