| 1 | |
| 2 | /** |
| 3 | * |
| 4 | * @file util.h |
| 5 | * |
| 6 | * Part of the OpenJazz project |
| 7 | * |
| 8 | * @par History: |
| 9 | * - 23rd August 2005: Created OpenJazz.h |
| 10 | * - 30th April 2010: Created util.h from parts of OpenJazz.h |
| 11 | * |
| 12 | * @par Licence: |
| 13 | * Copyright (c) 2005-2010 AJ Thomson |
| 14 | * |
| 15 | * OpenJazz is distributed under the terms of |
| 16 | * the GNU General Public License, version 2.0 |
| 17 | * |
| 18 | */ |
| 19 | |
| 20 | |
| 21 | #ifndef _UTIL_H |
| 22 | #define _UTIL_Hcxx . . $ `src/util.h:22:9`! |
| 23 | |
| 24 | #include "OpenJazz.h"cxx . . $ `<file>/src/OpenJazz.h`/ |
| 25 | #include "io/file.h"cxx . . $ `<file>/src/io/file.h`/ |
| 26 | |
| 27 | // Variable |
| 28 | |
| 29 | /// Trigonometric function look-up table |
| 30 | EXTERNcxx . . $ `src/OpenJazz.h:38:10`! fixedcxx . . $ fixed# sinLutcxx . . $ sinLut.[1024]; |
| 31 | |
| 32 | |
| 33 | // Functions |
| 34 | |
| 35 | bool fileExistscxx . . $ fileExists(2551bed5d6fc04f6). (const char *fileName, int pathType = PATH_TYPE_ANYcxx . . $ PATH_TYPE_ANY.); |
| 36 | unsigned short int createShortcxx . . $ createShort(469dcb4e54b221a8). (const unsigned char* data); |
| 37 | int createIntcxx . . $ createInt(b84ccf4e0bb14b06). (const unsigned char* data); |
| 38 | char* createStringcxx . . $ createString(a8b8e32347182212). (const char *string); |
| 39 | char* createStringcxx . . $ createString(a713fe7b9a57cf96). (const char *first, const char *second); |
| 40 | char* createFileNamecxx . . $ createFileName(2050848944e00d54). (const char *type, int extension); |
| 41 | char* createFileNamecxx . . $ createFileName(a713fe7b9a57cf96). (const char *type, const char *extension); |
| 42 | char* createFileNamecxx . . $ createFileName(dc9afb5388f048cb). (const char *type, int level, int extension); |
| 43 | char* createEditableStringcxx . . $ createEditableString(a8b8e32347182212). (const char *string); |
| 44 | void lowercaseStringcxx . . $ lowercaseString(fda57c8427c60377). (char *string); |
| 45 | void uppercaseStringcxx . . $ uppercaseString(fda57c8427c60377). (char *string); |
| 46 | void camelcaseStringcxx . . $ camelcaseString(fda57c8427c60377). (char *string); |
| 47 | fixedcxx . . $ fixed# fSincxx . . $ fSin(7864480464b09eea). (fixedcxx . . $ fixed# angle); |
| 48 | fixedcxx . . $ fixed# fCoscxx . . $ fCos(7864480464b09eea). (fixedcxx . . $ fixed# angle); |
| 49 | unsigned char* unpackRLEcxx . . $ unpackRLE(75cab8e1ec3de26e). (unsigned char* data, unsigned int size, unsigned int outSize); |
| 50 | void hexDumpcxx . . $ hexDump(fee22643fd1d7c04). (const char * desc, const void * addr, const int len, int perLine = 16); |
| 51 | |
| 52 | #endif |