[nexuiz-commits] r8453 - trunk/data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Fri Dec 25 03:43:50 EST 2009
Author: div0
Date: 2009-12-25 03:43:47 -0500 (Fri, 25 Dec 2009)
New Revision: 8453
Modified:
trunk/data/qcsrc/server/extensions.qh
Log:
add %#s and %#c conversions to sprintf (i.e. use byte count, not char count)
Modified: trunk/data/qcsrc/server/extensions.qh
===================================================================
--- trunk/data/qcsrc/server/extensions.qh 2009-12-24 08:10:25 UTC (rev 8452)
+++ trunk/data/qcsrc/server/extensions.qh 2009-12-25 08:43:47 UTC (rev 8453)
@@ -947,6 +947,10 @@
// ouxXc take a float if no length is specified or h is, and an int/entity if l is specified as length, and cast it to an unsigned int
// eEfFgG take a float if no length is specified or h is, and an int/entity if l is specified as length, and cast it to a double
// s takes a string
+// For conversions s and c, the flag # makes precision and width interpreted
+// as byte count, by default it is interpreted as character count in UTF-8
+// enabled engines. No other conversions can create wide characters, and #
+// has another meaning in these.
//DP_QC_STRFTIME
//idea: LordHavoc
More information about the nexuiz-commits
mailing list