Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
steve02081504 committed Oct 6, 2023
1 parent 0ef0004 commit cb9068c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,9 @@ inline constexpr struct endline_t{
if(ch==char_T{'\n'})
break;
if(ch==char_T{'\r'}){
if(!stream.waitting_for_data() && stream>>ch) {
if(ch!=char_T{'\n'})
if(!stream.waitting_for_data() && stream>>ch)
if(ch!=char_T{'\n'})//可能的\r\n结尾
stream.unread(&ch,1);
break;
}
break;
}
}
Expand Down
1 change: 1 addition & 0 deletions parts/header_file/files/elc/_files/string/_export.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export string_t;
export string;
export string_view_t;
export string_view;
export operator""_string;
export operator""_elc_string;
export operator""_constexpr_str;
#undef export
Expand Down

0 comments on commit cb9068c

Please sign in to comment.