PSR
CHIVE
Ask a Question
Search
PSR
CHIVE:
powered by
FreeFind
Home
Install
Use
Develop
Support
News
Credits
hosted by
Util
units
stringtok.h
1
//-*-C++-*-
2
/***************************************************************************
3
*
4
* Copyright (C) 2004 by Willem van Straten
5
* Licensed under the Academic Free License version 2.1
6
*
7
***************************************************************************/
8
// psrchive/Util/units/stringtok.h
9
10
#ifndef __STRINGTOK_H
11
#define __STRINGTOK_H
12
13
#include "whitespace.h"
14
#include <string>
15
16
// ///////////////////////////////////////////////////////////
17
// returns the first sub-string of 'instr' delimited by
18
// characters in 'delimiters'. the substring and any leading
19
// delimiter characters are removed from 'instr'
20
// ///////////////////////////////////////////////////////////
21
std::string stringtok (std::string& instr,
const
std::string & delimiters,
22
bool
skip_leading_delimiters =
true
,
23
bool
strip_leading_delimiters_from_remainder =
true
);
24
25
#endif
26
Generated using
doxygen
1.14.0