1 /*
2  * Copyright 2001, 2002, 2003 David Mansfield and Cobite, Inc.
3  * See COPYING file for license information
4  */
5 
6 /**
7  * Copyright (c) 1998 Cobite, Inc. All Rights Reserved.
8  * @author Karl LaRocca
9  * @created Fri Nov  6 14:48:04 1998
10  * @version $Revision: 1.4 $$Date: 2001/10/25 18:36:11 $
11  */
12 #ifndef _TEXT_UTIL_H
13 #define _TEXT_UTIL_H
14 
15 #ifdef __cplusplus
16 extern "C"
17 {
18 #endif
19 
20 char*       chop( char* src );
21 char*       digits( char* src );
22 char*       lower_case( char* src );
23 char*       reverse( char* src );
24 char*       trim( char* src );
25 void        trim_zeros_after_decimal( char* src );
26 char*       upper_case( char* src );
27 int         strrcmp( const char* haystack, const char* needle );
28 
29 const char* cents2money( long cents );
30 long        money2cents( const char* money );
31 
32 // these two allocate returned memory, so be sure to free it...
33 char*       frobstr( char* src );
34 char*       unfrobstr( char* src );
35 
36 void        str2hex( char* dest, const char* src, int slen );
37 void        hex2str( char* dest, const char* src, int slen );
38 
39 #ifdef __cplusplus
40 }
41 #endif
42 
43 #endif /* _TEXT_UTIL_H */
44