Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
kaitai-bot committed Jul 24, 2023
1 parent 240345c commit e6218d1
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion compiled/cpp_stl_11/expr_ops_parens.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ int32_t expr_ops_parens_t::str_concat_len() {
int32_t expr_ops_parens_t::str_concat_to_i() {
if (f_str_concat_to_i)
return m_str_concat_to_i;
m_str_concat_to_i = std::stoi(str_0_to_4() + str_5_to_9());
m_str_concat_to_i = kaitai::kstream::string_to_int(str_0_to_4() + str_5_to_9());
f_str_concat_to_i = true;
return m_str_concat_to_i;
}
Expand Down
10 changes: 5 additions & 5 deletions compiled/cpp_stl_11/expr_str_ops.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ std::string expr_str_ops_t::one_substr_3_to_3() {
int32_t expr_str_ops_t::to_i_r8() {
if (f_to_i_r8)
return m_to_i_r8;
m_to_i_r8 = std::stoi(std::string("721"), 0, 8);
m_to_i_r8 = kaitai::kstream::string_to_int(std::string("721"), 8);
f_to_i_r8 = true;
return m_to_i_r8;
}

int32_t expr_str_ops_t::to_i_r16() {
if (f_to_i_r16)
return m_to_i_r16;
m_to_i_r16 = std::stoi(std::string("47cf"), 0, 16);
m_to_i_r16 = kaitai::kstream::string_to_int(std::string("47cf"), 16);
f_to_i_r16 = true;
return m_to_i_r16;
}
Expand Down Expand Up @@ -94,7 +94,7 @@ std::string expr_str_ops_t::one_substr_2_to_5() {
int32_t expr_str_ops_t::to_i_r2() {
if (f_to_i_r2)
return m_to_i_r2;
m_to_i_r2 = std::stoi(std::string("1010110"), 0, 2);
m_to_i_r2 = kaitai::kstream::string_to_int(std::string("1010110"), 2);
f_to_i_r2 = true;
return m_to_i_r2;
}
Expand Down Expand Up @@ -126,7 +126,7 @@ std::string expr_str_ops_t::two_substr_4_to_10() {
int32_t expr_str_ops_t::to_i_r10() {
if (f_to_i_r10)
return m_to_i_r10;
m_to_i_r10 = std::stoi(std::string("-072"));
m_to_i_r10 = kaitai::kstream::string_to_int(std::string("-072"));
f_to_i_r10 = true;
return m_to_i_r10;
}
Expand All @@ -142,7 +142,7 @@ std::string expr_str_ops_t::two_substr_0_to_7() {
int32_t expr_str_ops_t::to_i_attr() {
if (f_to_i_attr)
return m_to_i_attr;
m_to_i_attr = std::stoi(std::string("9173"));
m_to_i_attr = kaitai::kstream::string_to_int(std::string("9173"));
f_to_i_attr = true;
return m_to_i_attr;
}
Expand Down
6 changes: 3 additions & 3 deletions compiled/cpp_stl_11/expr_to_i_trailing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,23 @@ void expr_to_i_trailing_t::_clean_up() {
int32_t expr_to_i_trailing_t::to_i_r10() {
if (f_to_i_r10)
return m_to_i_r10;
m_to_i_r10 = std::stoi(std::string("9173abc"));
m_to_i_r10 = kaitai::kstream::string_to_int(std::string("9173abc"));
f_to_i_r10 = true;
return m_to_i_r10;
}

int32_t expr_to_i_trailing_t::to_i_r13() {
if (f_to_i_r13)
return m_to_i_r13;
m_to_i_r13 = std::stoi(std::string("9173abc"), 0, 13);
m_to_i_r13 = kaitai::kstream::string_to_int(std::string("9173abc"), 13);
f_to_i_r13 = true;
return m_to_i_r13;
}

int32_t expr_to_i_trailing_t::to_i_garbage() {
if (f_to_i_garbage)
return m_to_i_garbage;
m_to_i_garbage = std::stoi(std::string("123_.^"));
m_to_i_garbage = kaitai::kstream::string_to_int(std::string("123_.^"));
f_to_i_garbage = true;
return m_to_i_garbage;
}
2 changes: 1 addition & 1 deletion compiled/cpp_stl_98/expr_ops_parens.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ int32_t expr_ops_parens_t::str_concat_len() {
int32_t expr_ops_parens_t::str_concat_to_i() {
if (f_str_concat_to_i)
return m_str_concat_to_i;
m_str_concat_to_i = std::stoi(str_0_to_4() + str_5_to_9());
m_str_concat_to_i = kaitai::kstream::string_to_int(str_0_to_4() + str_5_to_9());
f_str_concat_to_i = true;
return m_str_concat_to_i;
}
Expand Down
10 changes: 5 additions & 5 deletions compiled/cpp_stl_98/expr_str_ops.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@ std::string expr_str_ops_t::one_substr_3_to_3() {
int32_t expr_str_ops_t::to_i_r8() {
if (f_to_i_r8)
return m_to_i_r8;
m_to_i_r8 = std::stoi(std::string("721"), 0, 8);
m_to_i_r8 = kaitai::kstream::string_to_int(std::string("721"), 8);
f_to_i_r8 = true;
return m_to_i_r8;
}

int32_t expr_str_ops_t::to_i_r16() {
if (f_to_i_r16)
return m_to_i_r16;
m_to_i_r16 = std::stoi(std::string("47cf"), 0, 16);
m_to_i_r16 = kaitai::kstream::string_to_int(std::string("47cf"), 16);
f_to_i_r16 = true;
return m_to_i_r16;
}
Expand Down Expand Up @@ -100,7 +100,7 @@ std::string expr_str_ops_t::one_substr_2_to_5() {
int32_t expr_str_ops_t::to_i_r2() {
if (f_to_i_r2)
return m_to_i_r2;
m_to_i_r2 = std::stoi(std::string("1010110"), 0, 2);
m_to_i_r2 = kaitai::kstream::string_to_int(std::string("1010110"), 2);
f_to_i_r2 = true;
return m_to_i_r2;
}
Expand Down Expand Up @@ -132,7 +132,7 @@ std::string expr_str_ops_t::two_substr_4_to_10() {
int32_t expr_str_ops_t::to_i_r10() {
if (f_to_i_r10)
return m_to_i_r10;
m_to_i_r10 = std::stoi(std::string("-072"));
m_to_i_r10 = kaitai::kstream::string_to_int(std::string("-072"));
f_to_i_r10 = true;
return m_to_i_r10;
}
Expand All @@ -148,7 +148,7 @@ std::string expr_str_ops_t::two_substr_0_to_7() {
int32_t expr_str_ops_t::to_i_attr() {
if (f_to_i_attr)
return m_to_i_attr;
m_to_i_attr = std::stoi(std::string("9173"));
m_to_i_attr = kaitai::kstream::string_to_int(std::string("9173"));
f_to_i_attr = true;
return m_to_i_attr;
}
Expand Down
6 changes: 3 additions & 3 deletions compiled/cpp_stl_98/expr_to_i_trailing.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,23 @@ void expr_to_i_trailing_t::_clean_up() {
int32_t expr_to_i_trailing_t::to_i_r10() {
if (f_to_i_r10)
return m_to_i_r10;
m_to_i_r10 = std::stoi(std::string("9173abc"));
m_to_i_r10 = kaitai::kstream::string_to_int(std::string("9173abc"));
f_to_i_r10 = true;
return m_to_i_r10;
}

int32_t expr_to_i_trailing_t::to_i_r13() {
if (f_to_i_r13)
return m_to_i_r13;
m_to_i_r13 = std::stoi(std::string("9173abc"), 0, 13);
m_to_i_r13 = kaitai::kstream::string_to_int(std::string("9173abc"), 13);
f_to_i_r13 = true;
return m_to_i_r13;
}

int32_t expr_to_i_trailing_t::to_i_garbage() {
if (f_to_i_garbage)
return m_to_i_garbage;
m_to_i_garbage = std::stoi(std::string("123_.^"));
m_to_i_garbage = kaitai::kstream::string_to_int(std::string("123_.^"));
f_to_i_garbage = true;
return m_to_i_garbage;
}

0 comments on commit e6218d1

Please sign in to comment.