~ubuntu-branches/ubuntu/saucy/sflphone/saucy

« back to all changes in this revision

Viewing changes to sflphone-common/src/numbercleaner.h

  • Committer: Bazaar Package Importer
  • Author(s): Francois Marier
  • Date: 2010-12-24 16:33:55 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20101224163355-tkvvikqxbrbav6up
Tags: 0.9.11-1
* New upstream release
* Add new build dependencies on libwebkit-dev and libyaml-dev

* Bump Standards-Version up to 3.9.1
* Bump debhelper compatibility to 8
* Patch another typo in the upstream code (lintian notice)

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
#include "logger.h"
36
36
#include <string>
37
37
 
38
 
class NumberCleaner {
 
38
class NumberCleaner
 
39
{
39
40
 
40
41
    public:
41
42
        NumberCleaner (void);
43
44
 
44
45
        std::string clean (std::string to_clean);
45
46
 
46
 
        inline void set_phone_number_prefix (std::string prefix) {  
47
 
          _debug("Number: Set phone number prefix %s", _prefix.c_str()); _prefix = prefix; }
 
47
        inline void set_phone_number_prefix (std::string prefix) {
 
48
            _debug ("Number: Set phone number prefix %s", _prefix.c_str());
 
49
            _prefix = prefix;
 
50
        }
48
51
 
49
 
        inline std::string get_phone_number_prefix (void) { return _prefix; }
 
52
        inline std::string get_phone_number_prefix (void) {
 
53
            return _prefix;
 
54
        }
50
55
 
51
56
    private:
52
57
 
53
58
        std::string _prefix;
54
59
 
55
 
        void strip_char(std::string to_strip, std::string *num);
 
60
        void strip_char (std::string to_strip, std::string *num);
56
61
 
57
62
};
58
63