gsl-shell.git - gsl-shell

index : gsl-shell.git
gsl-shell
summary refs log tree commit diff
diff options
context:
space:
mode:
authorFrancesco Abbate <francesco.bbt@gmail.com>2012年06月17日 23:25:50 +0200
committerFrancesco Abbate <francesco.bbt@gmail.com>2012年06月20日 09:23:22 +0200
commit29309ebb162dabd6b533f3c48fac88e13bf3e570 (patch)
tree85b17221d94ce6093814f0de15ee544551e1bf2d
parentf1cc3c79cb0a13eeae34cfdf6bdcf1e7dc5eafc1 (diff)
downloadgsl-shell-29309ebb162dabd6b533f3c48fac88e13bf3e570.tar.gz
Add length method in C++ str class
Diffstat
-rw-r--r--agg-plot/strpp.h 1
1 files changed, 1 insertions, 0 deletions
diff --git a/agg-plot/strpp.h b/agg-plot/strpp.h
index f1fdfe80..c241fea7 100644
--- a/agg-plot/strpp.h
+++ b/agg-plot/strpp.h
@@ -17,6 +17,7 @@ public:
}
const char* cstr() const { return CSTR(this); }
+ unsigned len() const { return this->length; }
void append(const str& s, int sep = 0) { str_append(this, &s, sep); }
void append(const char* s, int sep = 0) { str_append_c(this, s, sep); }
generated by cgit v1.2.3 (git 2.25.1) at 2025年10月04日 18:30:50 +0000

AltStyle によって変換されたページ (->オリジナル) /