Subversion Repositories HomeAutomation

Rev

Blame | Last modification | View Log | SVN | RSS feed

  1. /*
  2.  * string.h
  3.  *
  4.  *  Created on: Aug 04, 2009
  5.  *      Author: Mattias Runge
  6.  */
  7.  
  8. #ifndef STRING_H_
  9. #define STRING_H_
  10.  
  11. #include <string>
  12.  
  13. namespace atom {
  14. namespace string_ {
  15.  
  16. using namespace std;
  17.  
  18. void escape(string & in);
  19. void pad_right(string & in, unsigned int length, char c);
  20. void pad_left(string & in, unsigned int length, char c);
  21.  
  22. string escape_copy(string in);
  23. string pad_right_copy(string in, unsigned int length, char c);
  24. string pad_left_copy(string in, unsigned int length, char c);
  25.  
  26.  
  27. }
  28. }
  29.  
  30. #endif // STRING_H_
  31.