exe-dependencies.p
[cvsps/4msysgit.git] / cbtcommon / text_util.h
blobb22477bb8cb9e4386d809f8cc641779bd543053f
1 /*
2 * Copyright 2001, 2002, 2003 David Mansfield and Cobite, Inc.
3 * See COPYING file for license information
4 */
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 $
12 #ifndef _TEXT_UTIL_H
13 #define _TEXT_UTIL_H
15 #ifdef __cplusplus
16 extern "C"
18 #endif
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 );
29 const char* cents2money( long cents );
30 long money2cents( const char* money );
32 // these two allocate returned memory, so be sure to free it...
33 char* frobstr( char* src );
34 char* unfrobstr( char* src );
36 void str2hex( char* dest, const char* src, int slen );
37 void hex2str( char* dest, const char* src, int slen );
39 #ifdef __cplusplus
41 #endif
43 #endif /* _TEXT_UTIL_H */