/simpletypesystem/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/simpletypesystem/trunk

« back to all changes in this revision

Viewing changes to src/utils.h

  • Committer: Gustav Hartvigsson
  • Date: 2015-08-30 14:13:09 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20150830141309-kx9s3xdy4x2iegl9
* Readded s_wstring_to_string function*
  * added @depricated mark to the documentation.
  * added a warning to the function that it should not be used.

* Added FreeFunc to SMatrixRowInformation.
* Added function pointers to [from,to]_json functions to SMatrixRowInformation. 
* Added SMatrixRowInformation to SMatrix so we can do to/from JSON operations in the future, and better frees.

* Added UCHAR and USTIRNG to the S_TYPE enum and STypeName array.

* Created documentation group for Utils.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
#include "config.h"
29
29
#include <stdio.h>
30
30
#include <uchar.h>
31
 
#if 0
32
31
#include <wchar.h>
33
 
#endif
 
32
 
34
33
 
35
34
BEGIN_DECLS
36
35
 
37
36
/** @file
 
37
 * @defgroup Utils Utils
 
38
 * @addtogroup Utils
 
39
 * @{
38
40
 * A collect of utility functions.
 
41
 * 
39
42
 */
40
43
 
41
44
/**
68
71
/**
69
72
 * Convert a wide (32 bit per char) string to a byte string.
70
73
 * TODO : Implement.
 
74
 *
 
75
 * @note The name is a little misleading, this (should) work with
 
76
 *       Unicode strings, but we do not real checking of unicode validity,
 
77
 *       and we have no formal support for Unicode above the basics.
71
78
 */
72
79
char *
73
80
s_ustring_to_string (const uchar * us);
74
81
 
75
 
#if 0
76
 
/*
77
 
 * No longer used. Use uchar (char32_t) instead of wchar_t, for your own sanity.
 
82
 
 
83
/**
 
84
 * @deprecated Usage of this function is discouraged. Consider using uchar
 
85
 *             (char32_t) strings instead, and s_ustring_to_string(), for
 
86
 *             your own sanity.
78
87
 */
79
88
char *
80
89
s_wstring_to_string (const wchar_t * ws);
81
 
#endif
82
90
 
83
91
 
84
92
/**
198
206
  }
199
207
#endif
200
208
 
 
209
 
 
210
/**
 
211
 * @}
 
212
 */
201
213
BEGIN_DECLS
202
214
 
203
215
#endif