Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
edmond-chow authored Nov 3, 2023
1 parent 887bca2 commit 041488b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion C++/Complex Linux.rar/Complex/Complex 2.0/Module.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ std::wstring GetInitTermRegexString(const std::array<std::wstring, N>& Terms)
};
inline std::wstring GetRegexString(const std::wstring& Term, bool With)
{
static constexpr const wchar_t RealRegExp[] = L"(-|\\+|)(\\d+)(\\.\\d+|)([Ee](-|\\+|)(\\d+)|)";
static constexpr const wchar_t RealRegExp[] = L"(-|\\+|^)(\\d+)(\\.\\d+|)([Ee](-|\\+|)(\\d+)|)";
static constexpr const wchar_t NotOthers[] = L"(-|\\+|$)";
return std::wstring().append(RealRegExp).append(With ? Term : L"").append(L"(?=").append(With ? L"" : Term).append(NotOthers).append(L")");
};
Expand Down
2 changes: 1 addition & 1 deletion C++/Complex Linux.rar/Complex/Complex 3.0/Module.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ std::wstring GetInitTermRegexString(const std::array<std::wstring, N>& Terms)
};
inline std::wstring GetRegexString(const std::wstring& Term, bool With)
{
static constexpr const wchar_t RealRegExp[] = L"(-|\\+|)(\\d+)(\\.\\d+|)([Ee](-|\\+|)(\\d+)|)";
static constexpr const wchar_t RealRegExp[] = L"(-|\\+|^)(\\d+)(\\.\\d+|)([Ee](-|\\+|)(\\d+)|)";
static constexpr const wchar_t NotOthers[] = L"(-|\\+|$)";
return std::wstring().append(RealRegExp).append(With ? Term : L"").append(L"(?=").append(With ? L"" : Term).append(NotOthers).append(L")");
};
Expand Down
2 changes: 1 addition & 1 deletion C++/Complex Linux.rar/Complex/Complex/Module.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ std::wstring GetInitTermRegexString(const std::array<std::wstring, N>& Terms)
};
inline std::wstring GetRegexString(const std::wstring& Term, bool With)
{
static constexpr const wchar_t RealRegExp[] = L"(-|\\+|)(\\d+)(\\.\\d+|)([Ee](-|\\+|)(\\d+)|)";
static constexpr const wchar_t RealRegExp[] = L"(-|\\+|^)(\\d+)(\\.\\d+|)([Ee](-|\\+|)(\\d+)|)";
static constexpr const wchar_t NotOthers[] = L"(-|\\+|$)";
return std::wstring().append(RealRegExp).append(With ? Term : L"").append(L"(?=").append(With ? L"" : Term).append(NotOthers).append(L")");
};
Expand Down
2 changes: 1 addition & 1 deletion C++/Complex Linux.rar/Complex/Sedenion/Module.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ inline std::wstring GetInitTermRegexString(std::size_t Size, const std::wstring*
};
inline std::wstring GetRegexString(const std::wstring& Term, bool With)
{
static constexpr const wchar_t RealRegExp[] = L"(-|\\+|)(\\d+)(\\.\\d+|)([Ee](-|\\+|)(\\d+)|)";
static constexpr const wchar_t RealRegExp[] = L"(-|\\+|^)(\\d+)(\\.\\d+|)([Ee](-|\\+|)(\\d+)|)";
static constexpr const wchar_t NotOthers[] = L"(-|\\+|$)";
return std::wstring().append(RealRegExp).append(With ? Term : L"").append(L"(?=").append(With ? L"" : Term).append(NotOthers).append(L")");
};
Expand Down

0 comments on commit 041488b

Please sign in to comment.