Nemiver  0.3
nmv-parsing-utils.h
Go to the documentation of this file.
1 /* -*- Mode: C++; indent-tabs-mode:nil; c-basic-offset: 4; -*- */
2 
3 /*
4  *This file is part of the Nemiver Project.
5  *
6  *Nemiver is free software; you can redistribute
7  *it and/or modify it under the terms of
8  *the GNU General Public License as published by the
9  *Free Software Foundation; either version 2,
10  *or (at your option) any later version.
11  *
12  *Nemiver is distributed in the hope that it will
13  *be useful, but WITHOUT ANY WARRANTY;
14  *without even the implied warranty of
15  *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16  *See the GNU General Public License for more details.
17  *
18  *You should have received a copy of the
19  *GNU General Public License along with Nemiver;
20  *see the file COPYING.
21  *If not, write to the Free Software Foundation,
22  *Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23  *
24  *See COPYRIGHT file copyright information.
25  */
26 #ifndef __NMV_PARSING_UTILS_H__
27 #define __NMV_PARSING_UTILS_H__
28 
29 #include <glibmm.h>
30 #include "nmv-ustring.h"
31 
32 namespace nemiver {
33 namespace common {
34 
35 class UString;
36 namespace parsing_utils
37 {
38 
39 NEMIVER_API bool is_digit (gunichar a_char);
40 NEMIVER_API bool is_alphabet_char (gunichar a_char);
41 NEMIVER_API bool is_alnum (gunichar a_char);
42 NEMIVER_API bool is_host_name_char (gunichar a_char);
43 
45  UString &a_res);
46 
48  UString &a_res);
49 
50 NEMIVER_API bool is_white_string (const UString &a_str);
51 
52 NEMIVER_API UString date_to_string (const Glib::Date &a_date);
53 
54 NEMIVER_API int month_to_int (Glib::Date::Month a_month);
55 
56 NEMIVER_API Glib::Date::Month month_from_int (int a_in);
57 
58 NEMIVER_API bool string_to_date (const UString &a_str, Glib::Date &a_date);
59 
60 }//end namespace parsing_utils
61 }//end namespace common
62 }//end namespace nemiver
63 
64 #endif //__NMV_PARSING_UTILS_H__
65 
nemiver::common::parsing_utils::is_alnum
bool is_alnum(gunichar a_char)
nemiver::common::parsing_utils::string_to_date
bool string_to_date(const UString &a_str, Glib::Date &a_date)
nemiver::common::parsing_utils::month_from_int
Glib::Date::Month month_from_int(int a_in)
nemiver
Definition: nmv-address.h:31
nmv-ustring.h
NEMIVER_API
#define NEMIVER_API
Definition: nmv-api-macros.h:53
nemiver::common::UString
Definition: nmv-ustring.h:45
nemiver::common::parsing_utils::month_to_int
int month_to_int(Glib::Date::Month a_month)
nemiver::common::parsing_utils::is_alphabet_char
bool is_alphabet_char(gunichar a_char)
nemiver::common::parsing_utils::remove_white_spaces_at_begining
bool remove_white_spaces_at_begining(const UString &a_str, UString &a_res)
nemiver::common::parsing_utils::is_digit
bool is_digit(gunichar a_char)
nemiver::common::parsing_utils::remove_white_spaces_at_end
bool remove_white_spaces_at_end(const UString &a_str, UString &a_res)
nemiver::common::parsing_utils::is_host_name_char
bool is_host_name_char(gunichar a_char)
nemiver::common::parsing_utils::date_to_string
UString date_to_string(const Glib::Date &a_date)
nemiver::common::parsing_utils::is_white_string
bool is_white_string(const UString &a_str)
common
Definition: nmv-proc-list-dialog.h:32