Skip to content

Commit

Permalink
Rename basicArithm.hpp -> calc.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
ZCG-coder committed Aug 12, 2024
1 parent f016a69 commit 686aa03
Show file tree
Hide file tree
Showing 43 changed files with 48 additions and 48 deletions.
8 changes: 4 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ To add a new feature:
```
Steppable/
├── include/fn/
│ └── basicArithm.hpp [ Feature declaration ]
│ └── calc.hpp [ Feature declaration ]
├── src/abc/
│ ├── abcReport.hpp [ Output declaration ]
│ ├── abc.cpp [ Feature definition ]
Expand All @@ -48,7 +48,7 @@ To add a new feature:

```diff
// abc.cpp
+ #include "fn/basicArithm.hpp"
+ #include "fn/calc.hpp"
+ #include "abcReport.cpp"
+ #include <...> // Other include files
Expand Down Expand Up @@ -77,10 +77,10 @@ To add a new feature:
+ std::string reportAbc();
```

7. Add the following in the `basicArithm.hpp` file:
7. Add the following in the `calc.hpp` file:

```diff
// basicArithm.hpp
// calc.hpp
std::string division(...);
+ std::string abc(const std::string_view& in);
```
Expand Down
2 changes: 1 addition & 1 deletion include/fn/basicArithm.hpp → include/fn/calc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
**************************************************************************************************/

/**
* @file basicArithm.hpp
* @file calc.hpp
* @brief This file contains functions for basic arithmetic operations on strings.
*
* The functions in this file perform various arithmetic operations on strings, such as absolute value,
Expand Down
2 changes: 1 addition & 1 deletion lib/bindings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* SOFTWARE. *
**************************************************************************************************/

#include "fn/basicArithm.hpp"
#include "fn/calc.hpp"
#include "fraction.hpp"
#include "number.hpp"

Expand Down
2 changes: 1 addition & 1 deletion src/base/baseConvert/baseConvert.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

#include "argParse.hpp"
#include "baseConvertReport.hpp"
#include "fn/basicArithm.hpp"
#include "fn/calc.hpp"
#include "getString.hpp"
#include "output.hpp"
#include "symbols.hpp"
Expand Down
2 changes: 1 addition & 1 deletion src/base/decimalConvert/decimalConvert.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
*/
#include "argParse.hpp"
#include "decimalConvertReport.hpp"
#include "fn/basicArithm.hpp"
#include "fn/calc.hpp"
#include "getString.hpp"
#include "util.hpp"

Expand Down
2 changes: 1 addition & 1 deletion src/calc/abs/abs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#include "getString.hpp"
#include "util.hpp"

#include <fn/basicArithm.hpp>
#include <fn/calc.hpp>
#include <iostream>
#include <string>

Expand Down
2 changes: 1 addition & 1 deletion src/calc/add/add.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

#include "addReport.hpp"
#include "argParse.hpp"
#include "fn/basicArithm.hpp"
#include "fn/calc.hpp"
#include "getString.hpp"
#include "util.hpp"

Expand Down
2 changes: 1 addition & 1 deletion src/calc/atan2/atan2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

#include "atan2Report.hpp"
#include "constants.hpp"
#include "fn/basicArithm.hpp"
#include "fn/calc.hpp"
#include "output.hpp"
#include "rounding.hpp"
#include "util.hpp"
Expand Down
2 changes: 1 addition & 1 deletion src/calc/comparison/comparison.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
*/
#include "argParse.hpp"
#include "comparisonReport.hpp"
#include "fn/basicArithm.hpp"
#include "fn/calc.hpp"
#include "getString.hpp"
#include "util.hpp"

Expand Down
2 changes: 1 addition & 1 deletion src/calc/division/division.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

#include "argParse.hpp"
#include "divisionReport.hpp"
#include "fn/basicArithm.hpp"
#include "fn/calc.hpp"
#include "getString.hpp"
#include "output.hpp"
#include "rounding.hpp"
Expand Down
2 changes: 1 addition & 1 deletion src/calc/division/divisionReport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

#include "divisionReport.hpp"

#include "fn/basicArithm.hpp"
#include "fn/calc.hpp"
#include "util.hpp"

#include <sstream>
Expand Down
2 changes: 1 addition & 1 deletion src/calc/factorial/factorial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

#include "argParse.hpp"
#include "factorialReport.hpp"
#include "fn/basicArithm.hpp"
#include "fn/calc.hpp"
#include "getString.hpp"
#include "output.hpp"
#include "util.hpp"
Expand Down
2 changes: 1 addition & 1 deletion src/calc/factorial/factorialReport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

#include "factorialReport.hpp"

#include "fn/basicArithm.hpp"
#include "fn/calc.hpp"
#include "symbols.hpp"

#include <sstream>
Expand Down
2 changes: 1 addition & 1 deletion src/calc/hyp/hyp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

#include "argParse.hpp"
#include "constants.hpp"
#include "fn/basicArithm.hpp"
#include "fn/calc.hpp"
#include "getString.hpp"
#include "hypReport.hpp"
#include "output.hpp"
Expand Down
2 changes: 1 addition & 1 deletion src/calc/log/log.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
*/

#include "argParse.hpp"
#include "fn/basicArithm.hpp"
#include "fn/calc.hpp"
#include "getString.hpp"
#include "output.hpp"
#include "rounding.hpp"
Expand Down
2 changes: 1 addition & 1 deletion src/calc/multiply/multiply.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
*/

#include "argParse.hpp"
#include "fn/basicArithm.hpp"
#include "fn/calc.hpp"
#include "getString.hpp"
#include "multiplyReport.hpp"
#include "rounding.hpp"
Expand Down
2 changes: 1 addition & 1 deletion src/calc/power/power.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
*/
#include "argParse.hpp"
#include "constants.hpp"
#include "fn/basicArithm.hpp"
#include "fn/calc.hpp"
#include "fraction.hpp"
#include "getString.hpp"
#include "powerReport.hpp"
Expand Down
2 changes: 1 addition & 1 deletion src/calc/power/powerReport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@

#include "powerReport.hpp"

#include "fn/basicArithm.hpp"
#include "fn/calc.hpp"
#include "fraction.hpp"
#include "getString.hpp"
#include "symbols.hpp"
Expand Down
2 changes: 1 addition & 1 deletion src/calc/root/root.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@

#include "argParse.hpp"
#include "factors.hpp"
#include "fn/basicArithm.hpp"
#include "fn/calc.hpp"
#include "fraction.hpp"
#include "getString.hpp"
#include "rootReport.hpp"
Expand Down
2 changes: 1 addition & 1 deletion src/calc/subtract/subtract.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
*/

#include "argParse.hpp"
#include "fn/basicArithm.hpp"
#include "fn/calc.hpp"
#include "getString.hpp"
#include "subtractReport.hpp"
#include "symbols.hpp"
Expand Down
2 changes: 1 addition & 1 deletion src/calc/trig/trig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

#include "argParse.hpp"
#include "constants.hpp"
#include "fn/basicArithm.hpp"
#include "fn/calc.hpp"
#include "fn/calculus.hpp"
#include "getString.hpp"
#include "rounding.hpp"
Expand Down
2 changes: 1 addition & 1 deletion src/calculus/nInt/nInt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* SOFTWARE. *
**************************************************************************************************/

#include "fn/basicArithm.hpp"
#include "fn/calc.hpp"
#include "fn/calculus.hpp"
#include "output.hpp"
#include "rounding.hpp"
Expand Down
2 changes: 1 addition & 1 deletion src/factors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

#include "factors.hpp"

#include "fn/basicArithm.hpp"
#include "fn/calc.hpp"
#include "types/result.hpp"

#include <algorithm>
Expand Down
2 changes: 1 addition & 1 deletion src/fraction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#include "fraction.hpp"

#include "exceptions.hpp"
#include "fn/basicArithm.hpp"
#include "fn/calc.hpp"
#include "number.hpp"
#include "symbols.hpp"
#include "util.hpp"
Expand Down
2 changes: 1 addition & 1 deletion src/number.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

#include "number.hpp"

#include "fn/basicArithm.hpp"
#include "fn/calc.hpp"
#include "output.hpp"

#ifdef WINDOWS
Expand Down
2 changes: 1 addition & 1 deletion src/rounding.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

#include "rounding.hpp"

#include "fn/basicArithm.hpp"
#include "fn/calc.hpp"
#include "util.hpp"

#include <string>
Expand Down
2 changes: 1 addition & 1 deletion tests/testAbs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
**************************************************************************************************/

#include "colors.hpp"
#include "fn/basicArithm.hpp"
#include "fn/calc.hpp"
#include "output.hpp"
#include "testing.hpp"
#include "util.hpp"
Expand Down
2 changes: 1 addition & 1 deletion tests/testAdd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
**************************************************************************************************/

#include "colors.hpp"
#include "fn/basicArithm.hpp"
#include "fn/calc.hpp"
#include "output.hpp"
#include "testing.hpp"
#include "util.hpp"
Expand Down
2 changes: 1 addition & 1 deletion tests/testComparison.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
**************************************************************************************************/

#include "colors.hpp"
#include "fn/basicArithm.hpp"
#include "fn/calc.hpp"
#include "output.hpp"
#include "testing.hpp"
#include "util.hpp"
Expand Down
2 changes: 1 addition & 1 deletion tests/testDecimalConvert.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
**************************************************************************************************/

#include "colors.hpp"
#include "fn/basicArithm.hpp"
#include "fn/calc.hpp"
#include "output.hpp"
#include "testing.hpp"
#include "util.hpp"
Expand Down
2 changes: 1 addition & 1 deletion tests/testDivision.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
**************************************************************************************************/

#include "colors.hpp"
#include "fn/basicArithm.hpp"
#include "fn/calc.hpp"
#include "output.hpp"
#include "testing.hpp"
#include "util.hpp"
Expand Down
2 changes: 1 addition & 1 deletion tests/testFactorial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
**************************************************************************************************/

#include "colors.hpp"
#include "fn/basicArithm.hpp"
#include "fn/calc.hpp"
#include "output.hpp"
#include "testing.hpp"
#include "util.hpp"
Expand Down
2 changes: 1 addition & 1 deletion tests/testHyp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
**************************************************************************************************/

#include "colors.hpp"
#include "fn/basicArithm.hpp"
#include "fn/calc.hpp"
#include "output.hpp"
#include "testing.hpp"
#include "util.hpp"
Expand Down
2 changes: 1 addition & 1 deletion tests/testLog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
**************************************************************************************************/

#include "colors.hpp"
#include "fn/basicArithm.hpp"
#include "fn/calc.hpp"
#include "output.hpp"
#include "testing.hpp"
#include "util.hpp"
Expand Down
2 changes: 1 addition & 1 deletion tests/testMultiply.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
**************************************************************************************************/

#include "colors.hpp"
#include "fn/basicArithm.hpp"
#include "fn/calc.hpp"
#include "output.hpp"
#include "testing.hpp"
#include "util.hpp"
Expand Down
2 changes: 1 addition & 1 deletion tests/testNInt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
**************************************************************************************************/

#include "colors.hpp"
#include "fn/basicArithm.hpp"
#include "fn/calc.hpp"
#include "fn/calculus.hpp"
#include "output.hpp"
#include "testing.hpp"
Expand Down
2 changes: 1 addition & 1 deletion tests/testPower.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
**************************************************************************************************/

#include "colors.hpp"
#include "fn/basicArithm.hpp"
#include "fn/calc.hpp"
#include "output.hpp"
#include "rounding.hpp"
#include "testing.hpp"
Expand Down
2 changes: 1 addition & 1 deletion tests/testRoot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
**************************************************************************************************/

#include "colors.hpp"
#include "fn/basicArithm.hpp"
#include "fn/calc.hpp"
#include "output.hpp"
#include "testing.hpp"
#include "util.hpp"
Expand Down
2 changes: 1 addition & 1 deletion tests/testSubtract.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
**************************************************************************************************/

#include "colors.hpp"
#include "fn/basicArithm.hpp"
#include "fn/calc.hpp"
#include "output.hpp"
#include "testing.hpp"
#include "util.hpp"
Expand Down
2 changes: 1 addition & 1 deletion tests/testTrig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
**************************************************************************************************/

#include "colors.hpp"
#include "fn/basicArithm.hpp"
#include "fn/calc.hpp"
#include "output.hpp"
#include "testing.hpp"
#include "util.hpp"
Expand Down
2 changes: 1 addition & 1 deletion tests/testUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

// ReSharper disable All
#include "colors.hpp"
#include "fn/basicArithm.hpp"
#include "fn/calc.hpp"
#include "output.hpp"
#include "testing.hpp"
#include "util.hpp"
Expand Down
Loading

0 comments on commit 686aa03

Please sign in to comment.