From e745eb0256c1fa957fb410373191d658ccdcfbd7 Mon Sep 17 00:00:00 2001 From: Kolan Sh Date: Fri, 25 May 2012 14:06:48 +0400 Subject: [PATCH] test_glib_bcb added --- c/GLib_bcb/test_glib_bcb/main.cpp | 40 +++++ c/GLib_bcb/test_glib_bcb/test_glib_bcb.cbproj | 143 ++++++++++++++++++ .../test_glib_bcb/test_glib_bcb.cbproj.local | 8 + 3 files changed, 191 insertions(+) create mode 100644 c/GLib_bcb/test_glib_bcb/main.cpp create mode 100644 c/GLib_bcb/test_glib_bcb/test_glib_bcb.cbproj create mode 100644 c/GLib_bcb/test_glib_bcb/test_glib_bcb.cbproj.local diff --git a/c/GLib_bcb/test_glib_bcb/main.cpp b/c/GLib_bcb/test_glib_bcb/main.cpp new file mode 100644 index 0000000..d3c760a --- /dev/null +++ b/c/GLib_bcb/test_glib_bcb/main.cpp @@ -0,0 +1,40 @@ +//--------------------------------------------------------------------------- + +#include +#pragma hdrstop + +#include +//--------------------------------------------------------------------------- + +#pragma argsused + +#include "glib.h" + +static void +print_uppercase_words (const gchar *string) +{ + /* Print all uppercase-only words. */ + GRegex *regex; + GMatchInfo *match_info; + + regex = g_regex_new ("[A-Z]+", 0, 0, NULL); + g_regex_match (regex, string, 0, &match_info); + while (g_match_info_matches (match_info)) + { + gchar *word = g_match_info_fetch (match_info, 0); + g_print ("Found: %s\n", word); + g_free (word); + g_match_info_next (match_info, NULL); + } + g_match_info_free (match_info); + g_regex_unref (regex); +} + +int _tmain(int argc, _TCHAR* argv[]) +{ + print_uppercase_words ("kldj sfj LKJDSF SmeshAnn"); + + system ("pause"); + return 0; +} +//--------------------------------------------------------------------------- diff --git a/c/GLib_bcb/test_glib_bcb/test_glib_bcb.cbproj b/c/GLib_bcb/test_glib_bcb/test_glib_bcb.cbproj new file mode 100644 index 0000000..1e90871 --- /dev/null +++ b/c/GLib_bcb/test_glib_bcb/test_glib_bcb.cbproj @@ -0,0 +1,143 @@ + + + {09C7631A-DAED-4C9E-8BA3-507E6359981E} + 12.0 + Debug + + + true + + + true + Base + true + + + true + Base + true + + + rtl.bpi;vcl.bpi + true + CppConsoleApplication + vcl.bpi;rtl.bpi;bcbie.bpi;vclx.bpi;vclactnband.bpi;xmlrtl.bpi;bcbsmp.bpi;dbrtl.bpi;vcldb.bpi;vcldbx.bpi;bdertl.bpi;dsnap.bpi;dsnapcon.bpi;TeeUI.bpi;TeeDB.bpi;Tee.bpi;adortl.bpi;IndyCore.bpi;IndySystem.bpi;IndyProtocols.bpi;dbexpress.bpi;DbxCommonDriver.bpi;DataSnapIndy10ServerTransport.bpi;DataSnapProviderClient.bpi;DataSnapServer.bpi;DbxClientDriver.bpi;DBXInterBaseDriver.bpi;DBXMySQLDriver.bpi;dbxcds.bpi;DBXSybaseASEDriver.bpi;DBXSybaseASADriver.bpi;DBXOracleDriver.bpi;DBXMSSQLDriver.bpi;DBXInformixDriver.bpi;DBXDb2Driver.bpi;frx12.bpi;frxADO12.bpi;frxBDE12.bpi;frxcs12.bpi;frxDB12.bpi;frxDBX12.bpi;frxe12.bpi;frxTee12.bpi;fs12.bpi;fsADO12.bpi;fsBDE12.bpi;fsDB12.bpi;fsTee12.bpi + exe + rtl.lib;vcl.lib + JPHNE + NO_STRICT;$(Defines) + true + true + ..\test_glib_bcb;$(CG_BOOST_ROOT)\boost\tr1\tr1;$(BDS)\include;$(BDS)\include\dinkumware;$(BDS)\include\vcl;$(CG_BOOST_ROOT);C:\GTK\include;C:\GTK\include\glib-2.0;C:\GTK\lib\glib-2.0\include;$(IncludePath) + C:\GTK\bin;C:\GTK\lib;K:\dev\c\GLib_bcb\test_glib_bcb;$(BDS)\lib;$(BDS)\lib\obj;$(BDS)\lib\psdk;$(ILINK_LibraryPath) + false + true + + + false + true + false + true + _DEBUG;$(Defines) + false + Debug + true + None + DEBUG + true + true + true + $(BDS)\lib\debug;$(ILINK_LibraryPath) + true + Full + true + + + NDEBUG;$(Defines) + Release + $(BDS)\lib\release;$(ILINK_LibraryPath) + None + + + + 0 + + + true + 1 + + + Base + + + Cfg_2 + Base + + + Cfg_1 + Base + + + + + CPlusPlusBuilder.Personality.12 + CppConsoleApplication + + + + False + False + 1 + 0 + 0 + 0 + False + False + False + False + False + 1049 + 1251 + + + + + 1.0.0.0 + + + + + + 1.0.0.0 + + + + + + + + + True + + + + + + + False + + False + + True + False + + + False + True + True + + + + 12 + + diff --git a/c/GLib_bcb/test_glib_bcb/test_glib_bcb.cbproj.local b/c/GLib_bcb/test_glib_bcb/test_glib_bcb.cbproj.local new file mode 100644 index 0000000..095761a --- /dev/null +++ b/c/GLib_bcb/test_glib_bcb/test_glib_bcb.cbproj.local @@ -0,0 +1,8 @@ + + + + 2012.05.25 12:30:50.117.cpp,C:\Documents and Settings\Admin\Мои документы\RAD Studio\Projects\File1.cpp=K:\dev\c\GLib_bcb\test_glib_bcb\main.cpp + 2012.05.25 12:30:58.757.cbproj,C:\Documents and Settings\Admin\Мои документы\RAD Studio\Projects\Project1.cbproj=K:\dev\c\GLib_bcb\test_glib_bcb\test_glib_bcb.cbproj + 2012.05.25 13:00:50.308.lib,C:\GTK\lib\glib-2.0.lib= + +