|
129 | 129 | // HTML-CALC: <div>brief</div> |
130 | 130 | // HTML-CALC: <p> A simple calculator class.</p> |
131 | 131 | // HTML-CALC: <p> Provides basic arithmetic operations.</p> |
| 132 | + |
| 133 | +// HTML-CALC: <h2 id="Members">Members</h2> |
| 134 | +// HTML-CALC: <div>brief</div> |
| 135 | +// HTML-CALC: <p> Holds a public value.</p> |
| 136 | +// HTML-CALC: <div>public int public_val</div> |
| 137 | + |
132 | 138 | // HTML-CALC: <h2 id="Functions">Functions</h2> |
133 | 139 | // HTML-CALC: <h3 id="{{([0-9A-F]{40})}}">add</h3> |
134 | 140 | // HTML-CALC: <p>public int add(int a, int b)</p> |
|
185 | 191 | // HTML-CALC: <div>throw</div> |
186 | 192 | // HTML-CALC: <p>if b is zero.</p> |
187 | 193 |
|
| 194 | +// HTML-CALC: <p>public int mod(int a, int b)</p> |
| 195 | +// CALC-NO-REPOSITORY: Defined at line 54 of file .{{.}}include{{.}}Calculator.h |
| 196 | +// CALC-REPOSITORY: Defined at line |
| 197 | +// CALC-REPOSITORY-NEXT: <a href="https://repository.com/./include/Calculator.h#54">54</a> |
| 198 | +// CALC-LINE-PREFIX: <a href="https://repository.com/./include/Calculator.h#L54">54</a> |
| 199 | +// CALC-REPOSITORY-NEXT: of file |
| 200 | +// CALC-REPOSITORY-NEXT: <a href="https://repository.com/./include/Calculator.h">Calculator.h</a> |
| 201 | +// HTML-CALC: <div>brief</div> |
| 202 | +// HTML-CALC: <p> Performs the mod operation on integers.</p> |
| 203 | +// HTML-CALC: <div>return</div> |
| 204 | +// HTML-CALC: <p> The result of a % b.</p> |
| 205 | + |
188 | 206 | // HTML-RECTANGLE: <h1>class Rectangle</h1> |
189 | 207 | // RECTANGLE-NO-REPOSITORY: <p>Defined at line 10 of file .{{.}}include{{.}}Rectangle.h</p> |
190 | 208 | // RECTANGLE-REPOSITORY: <p> |
|
306 | 324 | // MD-CALC: *Defined at .{{[\/]}}include{{[\/]}}Calculator.h#8* |
307 | 325 | // MD-CALC: **brief** A simple calculator class. |
308 | 326 | // MD-CALC: Provides basic arithmetic operations. |
| 327 | +// MD-CALC: ## Members |
| 328 | +// MD-CALC: public int public_val |
309 | 329 | // MD-CALC: ## Functions |
310 | 330 | // MD-CALC: ### add |
311 | 331 | // MD-CALC: *public int add(int a, int b)* |
|
336 | 356 | // MD-CALC: **b** Second integer. |
337 | 357 | // MD-CALC: **return** double The result of a / b. |
338 | 358 | // MD-CALC: **throw**if b is zero. |
| 359 | +// MD-CALC: ### mod |
| 360 | +// MD-CALC: *public int mod(int a, int b)* |
| 361 | +// MD-CALC: *Defined at ./include{{[\/]}}Calculator.h#54* |
| 362 | +// MD-CALC: **brief** Performs the mod operation on integers. |
| 363 | +// MD-CALC: **a** First integer. |
| 364 | +// MD-CALC: **b** Second integer. |
| 365 | +// MD-CALC: **return** The result of a % b. |
339 | 366 |
|
340 | 367 | // MD-CIRCLE: # class Circle |
341 | 368 | // MD-CIRCLE: *Defined at .{{[\/]}}include{{[\/]}}Circle.h#10* |
|
0 commit comments