Util.h (pymol-open-source-2.2.0) | : | Util.h (pymol-open-source-2.3.0) | ||
---|---|---|---|---|
skipping to change at line 24 | skipping to change at line 24 | |||
-* | -* | |||
Z* ------------------------------------------------------------------- | Z* ------------------------------------------------------------------- | |||
*/ | */ | |||
#ifndef _H_Util | #ifndef _H_Util | |||
#define _H_Util | #define _H_Util | |||
#include "os_predef.h" | #include "os_predef.h" | |||
#include "PyMOLGlobals.h" | #include "PyMOLGlobals.h" | |||
#include "Base.h" | #include "Base.h" | |||
#include <string> | ||||
void UtilZeroMem(void *ptr, ov_size howMuch); | void UtilZeroMem(void *ptr, ov_size howMuch); | |||
void UtilCopyMem(void *dst, const void *src, ov_size howMuch); | void UtilCopyMem(void *dst, const void *src, ov_size howMuch); | |||
void *UtilArrayCalloc(unsigned int *dim, ov_size ndim, ov_size atom_size); | void *UtilArrayCalloc(unsigned int *dim, ov_size ndim, ov_size atom_size); | |||
char *UtilConcat(char *where,const char *what); | char *UtilConcat(char *where,const char *what); | |||
void UtilNConcat(char *dst, const char *str, ov_size n); | void UtilNConcat(char *dst, const char *str, ov_size n); | |||
void UtilConcatVLA(char **vla, ov_size * cc, const char *str); | void UtilConcatVLA(char **vla, ov_size * cc, const char *str); | |||
void UtilNPadVLA(char **vla, ov_size * cc, const char *str, ov_size len); | void UtilNPadVLA(char **vla, ov_size * cc, const char *str, ov_size len); | |||
void UtilFillVLA(char **vla, ov_size * cc, char what, ov_size len); | void UtilFillVLA(char **vla, ov_size * cc, char what, ov_size len); | |||
void UtilNCopy(char *dst, const char *src, ov_size n); /* up to N-1 chars */ | void UtilNCopy(char *dst, const char *src, ov_size n); /* up to N-1 chars */ | |||
void UtilNCopyToLower(char *dst, const char *src, ov_size n); /* up to N-1 chars */ | void UtilNCopyToLower(char *dst, const char *src, ov_size n); /* up to N-1 chars */ | |||
void UtilCleanStr(char *s); | void UtilCleanStr(char *s); | |||
void UtilStripANSIEscapes(char *s); | void UtilStripANSIEscapes(char *s); | |||
void UtilStripANSIEscapes(std::string& str); | ||||
int UtilCountStringVLA(char *vla); | int UtilCountStringVLA(char *vla); | |||
double UtilGetSeconds(PyMOLGlobals * G); | double UtilGetSeconds(PyMOLGlobals * G); | |||
int UtilInit(PyMOLGlobals * G); | int UtilInit(PyMOLGlobals * G); | |||
void UtilFree(PyMOLGlobals * G); | void UtilFree(PyMOLGlobals * G); | |||
typedef int UtilOrderFn(void *array, int l, int r); | typedef int UtilOrderFn(void *array, int l, int r); | |||
void UtilSortIndex(int n, void *array, int *x, UtilOrderFn * fOrdered); | void UtilSortIndex(int n, void *array, int *x, UtilOrderFn * fOrdered); | |||
int UtilSemiSortFloatIndex(int n, float *array, int *x, int forward); | int UtilSemiSortFloatIndex(int n, float *array, int *x, int forward); | |||
End of changes. 2 change blocks. | ||||
0 lines changed or deleted | 2 lines changed or added |