File: split.h

package info (click to toggle)
urg 0.8.11-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 3,212 kB
  • ctags: 1,605
  • sloc: sh: 10,014; cpp: 6,459; ansic: 2,419; makefile: 203
file content (34 lines) | stat: -rw-r--r-- 711 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#ifndef QRK_SPLIT_H
#define QRK_SPLIT_H

/*!
  \file
  \brief string p split ֐

  \author Satofumi KAMIMURA

  $Id: split.h 780 2009-05-05 08:16:41Z satofumi $
*/

#include <vector>
#include <string>


namespace qrk
{
  /*!
    \brief w蕶ɂ镪

    \param[out] tokens ̕
    \param[in] original Ώۂ̕
    \param[in] split_pattern s̗
    \param[in] continious_pattern AZp[^P‚̃Zp[^ƂĈ

    \return ̃g[N
  */
  size_t split(std::vector<std::string>& tokens,
               const std::string& original, const char* split_pattern = " \t",
               bool continious_pattern = true);
}

#endif /* !QRK_SPLIT_H */