X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fsupport%2Flstrings.h;h=1c90c07598a7fcab7d55af0299044376cf6be1d9;hb=797d87b4513088a66b17c7ac653b84e36ea80458;hp=eea7fdbf4933776450e8b6d130631b9c968fd22a;hpb=612a097878de07556b76f7445a5564320987ff97;p=features.git diff --git a/src/support/lstrings.h b/src/support/lstrings.h index eea7fdbf49..1c90c07598 100644 --- a/src/support/lstrings.h +++ b/src/support/lstrings.h @@ -1,8 +1,9 @@ // -*- C++ -*- -/** This is a collection of string helper functions that works - together with string (and later also with STL String. Some of these - would certainly benefit from a rewrite/optimization. +/* + This is a collection of string helper functions that works + together with string (and later also with STL String. Some of these + would certainly benefit from a rewrite/optimization. */ #ifndef LSTRINGS_H @@ -30,22 +31,20 @@ int compare_no_case(string const & s, string const & s2); /// int compare_no_case(string const & s, string const & s2, unsigned int len); - +/// inline int compare(char const * a, char const * b) { return strcmp(a, b); } - - +/// inline int compare(char const * a, char const * b, unsigned int len) { return strncmp(a, b, len); } - /// bool isStrInt(string const & str); @@ -70,7 +69,7 @@ string const lowercase(string const &); /// string const uppercase(string const &); -// convert T to string +/// convert T to string template inline string const tostr(T const & t) @@ -94,6 +93,7 @@ string const tostr(T const & t) #endif } +/// inline string const tostr(bool b) {