23#ifndef KJK_ARGV_PARSER_H_
24#define KJK_ARGV_PARSER_H_
33 template<
class Traits>
36 return Traits::eq_int_type(
c,
' ') || Traits::eq_int_type(
c,
'\t');
40 template<
class Elem,
class Traits,
class InIter,
class OutIter>
43 typename Traits::int_type
c;
48 c = Traits::to_int_type(*
cur);
50 if(!details::is_separator<Traits>(
c))
58 typedef typename std::iterator_traits<InIter>::difference_type difference_type;
59 difference_type backslashes(0);
63 c = Traits::to_int_type(*
cur);
66 if(Traits::eq_int_type(
c,
'\\'))
73 if(Traits::eq_int_type(
c,
'"'))
77 if((backslashes % 2) == 0)
80 if(quoting &&
cur !=
end && Traits::eq_int_type(Traits::to_int_type(*
cur),
'"'))
99 for(difference_type
i = 0;
i < backslashes; ++
i)
100 *
arg ++ = Traits::to_char_type(
'\\');
103 if(
c != Traits::eof())
105 if(details::is_separator<Traits>(
c) && !quoting)
108 *
arg ++ = Traits::to_char_type(
c);
114 c = Traits::to_int_type(*
cur);
116 if(!details::is_separator<Traits>(
c))
125 template<
class InIter,
class OutIter>
130 typename std::iterator_traits<InIter>::value_type,
131 typename std::char_traits<typename std::iterator_traits<InIter>::value_type>,
138 template<
class Elem,
class Traits,
class InIter>
144 template<
class InIter>
149 typename std::iterator_traits<InIter>::value_type,
150 typename std::char_traits<typename std::iterator_traits<InIter>::value_type>,
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
bool is_separator(typename Traits::int_type c)
InIter copy_argument(InIter cur, InIter end, OutIter arg)
InIter skip_argument(InIter cur, InIter end)