Rosetta 3.5
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
protocols
sparta
util.hh
Go to the documentation of this file.
1
// -*- mode:c++;tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*-
2
/* */
3
/* ---- SPARTA ---- */
4
/* Shifts Prediction from Analogue of Residue type and Torsion Angle */
5
/* Yang Shen and Ad Bax */
6
/* J. Biomol. NMR, 38, 289-302 (2007) */
7
/* NIH, NIDDK, Laboratory of Chemical Physics */
8
/* version, 1.01 (build 2009.0928.17) */
9
/* */
10
/* for any problem, please contact */
11
/* shenyang@niddk.nih.gov */
12
/* */
13
/******************************************************************************/
14
15
#ifndef protocols_sparta_util_hh
16
#define protocols_sparta_util_hh
17
18
#include <utility/vector0.hh>
19
20
#include <vector>
21
#include <string>
22
23
namespace
protocols {
24
namespace
sparta {
25
typedef
utility::vector0< std::string>
StringList
;
26
//strings functions
27
int
contains
(
const
std::string
&
str
,
const
std::string
&
c
);
28
int
contains
(
const
std::string
&
str
,
const
char
&
c
);
29
//
30
31
bool
isDigit
(
const
char
&
c
);
32
bool
isSpace
(
const
char
&
c
);
33
34
StringList
split
(
const
char
sep,
const
std::string
&
str
);
35
StringList
split
(
const
std::string
&sep,
const
std::string
&
str
);
36
//splits the std::string str into std::strings wherever a separator 'sep' occurs, and returns the list of those std::strings.
37
StringList
split_WhiteSpace
(
const
std::string
&
str
);
38
39
char
*
section
(
const
std::string
&
str
,
const
char
&seq,
char
*buff,
int
start
,
int
end
= 0xffffffff );
40
//returns a section of the std::string, each section is defined by char 'sep', numbers of start and end are the index number (begin with 0)
41
42
std::string
simplifyWhiteSpace
(
const
std::string
&
str
);
43
//Returns a std::string that has whitespace removed from the start and the end,
44
//and which has each sequence of internal whitespace replaced with a single space.
45
46
}
47
}
48
49
#endif
Generated on Sat Jun 1 2013 11:32:20 for Rosetta 3.5 by
1.8.4