Commit 2641deb0 authored by Armin Sobhani's avatar Armin Sobhani
Browse files

change character literals to ascii hex codes in fasta.hpp

parent a0908583
......@@ -38,7 +38,7 @@ private:
virtual void do_scan(std::basic_istream<CharT,Traits>& in, SeqT& s)
{
if (in.peek() != '>')
if (in.peek() != 0x3E) // 0x3E == '>'
{
in.setstate(std::ios::failbit);
return;
......@@ -53,7 +53,7 @@ private:
scan_name(line, s, has_name_component<SeqT>());
scan_description(line, s, has_description_component<SeqT>());
while (in.peek() != '>' && std::getline(in, line))
while (in.peek() != 0x3E && std::getline(in, line)) // 0x3E == '>'
{
boost::trim_right(line);
s.insert(s.end(), line.begin(), line.end());
......@@ -67,8 +67,8 @@ private:
std::basic_string<CharT,Traits>& line
, SeqT& s
, std::true_type) const
{
s.name(boost::trim_right_copy(line.substr(1, line.find(' '))));
{ // 0x20 == ' '
s.name(boost::trim_right_copy(line.substr(1, line.find(0x20))));
}
void scan_name(
std::basic_string<CharT,Traits>& line
......@@ -81,7 +81,7 @@ private:
, SeqT& s
, std::true_type) const
{
auto pos = line.find(' ');
auto pos = line.find(0x20); // 0x20 == ' '
if (pos != line.npos)
s.description(boost::trim_copy(line.substr(pos)));
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment