home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dream 52
/
Amiga_Dream_52.iso
/
Linux
/
Divers
/
lyx-0.13.2.tar.gz
/
lyx-0.13.2.tar
/
lyx-0.13.2
/
src
/
lstrings.h
< prev
next >
Wrap
C/C++ Source or Header
|
1998-04-23
|
700b
|
35 lines
// -*- C++ -*-
/** This is a collection of string helper functions that works
together with LString (and later also with STL String. Some of these
would certainly benefit from a rewrite/optimization.
*/
#include <string.h>
#include "LString.h"
inline int compare_no_case(LString const &a, LString const &b)
{
#warning Needs fix!
return strcmp(a.c_str(), b.c_str());
}
inline int compare(LString const &a, LString const &b)
{
return strcmp(a.c_str(), b.c_str());
}
inline int compare(LString const &a, LString const &b, unsigned int len)
{
return strncmp(a.c_str(), b.c_str(), len);
}
bool isStrInt(LString const &str);
int strToInt(LString const &str);
// more to come later...