Mercurial > octave
comparison libinterp/corefcn/textscan.h @ 21494:8e9833b8791d
textscan: Prefer using std::string to char *
* textscan.cc, textscan.h: Use std::string instead of char * arguments.
Use std::string::find instead of strchr.
author | Mike Miller <mtmiller@octave.org> |
---|---|
date | Fri, 18 Mar 2016 20:29:15 -0700 |
parents | ab0a19882615 |
children | 82089c8ed7fa |
comparison
equal
deleted
inserted
replaced
21493:a41e48ef2b99 | 21494:8e9833b8791d |
---|---|
142 const textscan_format_elt& fmt) const; | 142 const textscan_format_elt& fmt) const; |
143 | 143 |
144 void scan_complex (delimited_stream& is, const textscan_format_elt& fmt, | 144 void scan_complex (delimited_stream& is, const textscan_format_elt& fmt, |
145 Complex& val) const; | 145 Complex& val) const; |
146 | 146 |
147 int scan_bracket (delimited_stream& is, const char *pattern, | 147 int scan_bracket (delimited_stream& is, const std::string& pattern, |
148 std::string& val) const; | 148 std::string& val) const; |
149 | 149 |
150 int scan_caret (delimited_stream& is, const char *, std::string& val) const; | 150 int scan_caret (delimited_stream& is, const std::string& pattern, |
151 std::string& val) const; | |
151 | 152 |
152 void scan_string (delimited_stream& is, const textscan_format_elt& fmt, | 153 void scan_string (delimited_stream& is, const textscan_format_elt& fmt, |
153 std::string& val) const; | 154 std::string& val) const; |
154 | 155 |
155 void scan_cstring (delimited_stream& is, const textscan_format_elt& fmt, | 156 void scan_cstring (delimited_stream& is, const textscan_format_elt& fmt, |