aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2004-04-02 11:33:55 +0000
committernyamatongwe <devnull@localhost>2004-04-02 11:33:55 +0000
commitb0d2693fef082c1ddf665363909c5e7ae0c52357 (patch)
tree94c976ec45aeaee9d82a43f8a37fe1a52125e9d2 /src
parent25b0cf489609aaefb4aeef7d0e9ca6c294f9ea74 (diff)
downloadscintilla-mirror-b0d2693fef082c1ddf665363909c5e7ae0c52357.tar.gz
String code from Pavol Bosik used by Anjuta.
Diffstat (limited to 'src')
-rw-r--r--src/PropSet.cxx13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/PropSet.cxx b/src/PropSet.cxx
index 32ec59626..70cd46f88 100644
--- a/src/PropSet.cxx
+++ b/src/PropSet.cxx
@@ -325,9 +325,18 @@ char *SString::StringAllocate(
return sNew;
}
-// End SString functions
-
+/**
+ * Allocate uninitialized memory big enough to fit a string of the given length
+ * @return the pointer to the new string
+ */
+char *SString::StringAllocate(lenpos_t len) {
+ if (len != measure_length)
+ return new char [len + 1];
+ else
+ return 0;
+}
+// End SString functions
PropSet::PropSet() {
superPS = 0;