nongnu.org/gsequencer


gsequencer 7.0.5
Advanced Gtk+ Sequencer
ags_vst_fstrdefs.h
Go to the documentation of this file.
1/* GSequencer - Advanced GTK Sequencer
2 * Copyright (C) 2005-2021 Joël Krähemann
3 *
4 * This file is part of GSequencer.
5 *
6 * GSequencer is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * GSequencer is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with GSequencer. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20#ifndef __AGS_VST_STRDEFS_H__
21#define __AGS_VST_STRDEFS_H__
22
23#include <glib.h>
24
26
27#ifdef __cplusplus
28extern "C" {
29#endif
30
31 static const ags_vst_tchar ags_vst_kempty_string[] = { 0 };
32 static const gchar ags_vst_kempty_string8[] = { 0 };
33 static const gunichar2 ags_vst_kempty_string16[] = { 0 };
34
35#ifdef UNICODE
36 static const ags_vst_tchar ags_vst_kinfinite_symbol[] = { 0x221E, 0 };
37#else
38// static const ags_vst_tchar* const ags_vst_kinfinite_symbol = "oo";
39#endif
40
41 gint32 ags_vst_tstrlen(ags_vst_tchar *str);
42 gint32 ags_vst_strlen8(gchar *str);
43 gint32 ags_vst_strlen16(gunichar2 *str);
44
46 gint32 ags_vst_strcmp8(gchar *src, gchar *dst);
47 gint32 ags_vst_strcmp16(gunichar2 *src, gunichar2 *dst);
48
49 gint32 ags_vst_tstrncmp(ags_vst_tchar *first, ags_vst_tchar *last, guint32 count);
50 gint32 ags_vst_strncmp8(gchar *first, gchar *last, guint32 count);
51 gint32 ags_vst_strncmp16(gunichar2 *first, gunichar2 *last, guint32 count);
52
54 gchar* ags_vst_strcpy8(gchar *dst, gchar *src);
55 gunichar2* ags_vst_strcpy16(gunichar2 *dst, gunichar2 *src);
56
57 ags_vst_tchar* ags_vst_tstrncpy(ags_vst_tchar* dest, ags_vst_tchar* source, guint32 count);
58 gchar* ags_vst_strncpy8(gchar* dest, gchar* source, guint32 count);
59 gunichar2* ags_vst_strncpy16(gunichar2* dest, gunichar2* source, guint32 count);
60
62 gchar* ags_vst_strcat8(gchar *dst, gchar *src);
63 gunichar2* ags_vst_strcat16(gunichar2 *dst, gunichar2 *src);
64
65 void ags_vst_str8_to_str16(gunichar2 *dst, gchar *src, gint32 n);
66
68
69 static const guint32 ags_vst_kprintf_buffer_size = 4096;
70
71#ifdef __cplusplus
72}
73#endif
74
75#endif /*__AGS_VST_STRDEFS_H__*/
gchar * ags_vst_strcat8(gchar *dst, gchar *src)
Definition ags_vst_fstrdefs.cpp:264
gchar * ags_vst_strncpy8(gchar *dest, gchar *source, guint32 count)
Definition ags_vst_fstrdefs.cpp:221
ags_vst_tchar * ags_vst_tstrcat(ags_vst_tchar *dst, ags_vst_tchar *src)
Definition ags_vst_fstrdefs.cpp:250
gint32 ags_vst_strlen8(gchar *str)
Definition ags_vst_fstrdefs.cpp:49
gint32 ags_vst_strncmp16(gunichar2 *first, gunichar2 *last, guint32 count)
Definition ags_vst_fstrdefs.cpp:149
gint32 ags_vst_strcmp8(gchar *src, gchar *dst)
Definition ags_vst_fstrdefs.cpp:90
gchar * ags_vst_strcpy8(gchar *dst, gchar *src)
Definition ags_vst_fstrdefs.cpp:177
gint32 ags_vst_tstrlen(ags_vst_tchar *str)
Definition ags_vst_fstrdefs.cpp:36
gint32 ags_vst_tstrncmp(ags_vst_tchar *first, ags_vst_tchar *last, guint32 count)
Definition ags_vst_fstrdefs.cpp:119
gboolean ags_vst_fid_strings_equal(AgsVstFIDString id1, AgsVstFIDString id2)
Definition ags_vst_fstrdefs.cpp:306
void ags_vst_str8_to_str16(gunichar2 *dst, gchar *src, gint32 n)
Definition ags_vst_fstrdefs.cpp:292
gint32 ags_vst_strcmp16(gunichar2 *src, gunichar2 *dst)
Definition ags_vst_fstrdefs.cpp:104
ags_vst_tchar * ags_vst_tstrcpy(ags_vst_tchar *dst, ags_vst_tchar *src)
Definition ags_vst_fstrdefs.cpp:163
gint32 ags_vst_tstrcmp(ags_vst_tchar *src, ags_vst_tchar *dst)
Definition ags_vst_fstrdefs.cpp:76
gunichar2 * ags_vst_strcat16(gunichar2 *dst, gunichar2 *src)
Definition ags_vst_fstrdefs.cpp:278
ags_vst_tchar * ags_vst_tstrncpy(ags_vst_tchar *dest, ags_vst_tchar *source, guint32 count)
Definition ags_vst_fstrdefs.cpp:206
gint32 ags_vst_strncmp8(gchar *first, gchar *last, guint32 count)
Definition ags_vst_fstrdefs.cpp:134
gint32 ags_vst_strlen16(gunichar2 *str)
Definition ags_vst_fstrdefs.cpp:62
gunichar2 * ags_vst_strncpy16(gunichar2 *dest, gunichar2 *source, guint32 count)
Definition ags_vst_fstrdefs.cpp:236
gunichar2 * ags_vst_strcpy16(gunichar2 *dst, gunichar2 *src)
Definition ags_vst_fstrdefs.cpp:191
wchar_t ags_vst_tchar
Definition ags_vst_ftypes.h:70
const gchar * AgsVstFIDString
Definition ags_vst_ftypes.h:82