From 94e238ca164301485d7935e8b84aaabe8aa8653a Mon Sep 17 00:00:00 2001 From: TimePath Date: Sun, 8 Apr 2018 13:55:39 +1000 Subject: [PATCH] Add string logic table --- qcsrc/lib/string.qh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/qcsrc/lib/string.qh b/qcsrc/lib/string.qh index d79552187..7142f334c 100644 --- a/qcsrc/lib/string.qh +++ b/qcsrc/lib/string.qh @@ -4,6 +4,25 @@ #include "sort.qh" #include "oo.qh" +// string logic +// +// true: is truthy +// == "": is equal to "" +// is "": has the same string index as the string constant "" +// strunzone: can be strunzoned +// +// | | true | == "" | is "" | strunzone | +// | :----------: | :--: | :---: | :---: | :-------: | +// | nil | | yes | | | +// | strcat(nil) | yes | yes | | | +// | strzone(nil) | yes | yes | | yes | +// | "" | yes | yes | yes | | +// | strcat("") | yes | yes | | | +// | strzone("") | yes | yes | | yes | +// | "s" | yes | | | | +// | strcat("s") | yes | | | | +// | strzone("s") | yes | | | yes | + #ifdef CSQC float stringwidth_colors(string s, vector theSize) { -- 2.39.2