| 647 // However, always keep the root at least 2 characters. |
648 // However, always keep the root at least 2 characters. |
| 648 short extra = (~frac + ~ringNum + ~root) - 8; |
649 short extra = (~frac + ~ringNum + ~root) - 8; |
| 649 root -= min<short> (max<short> (extra, 0), 2); |
650 root -= min<short> (max<short> (extra, 0), 2); |
| 650 |
651 |
| 651 // Stick them all together and return the result. |
652 // Stick them all together and return the result. |
| 652 return fmt ("%s%s%s%s", prefix.chars(), frac.chars (), root.chars (), ringNum.chars ()); |
653 return fmt ("%s%s%s%s.dat", prefix.chars(), frac.chars (), root.chars (), ringNum.chars ()); |
| 653 } |
654 } |
| 654 |
655 |
| 655 // ============================================================================= |
656 // ============================================================================= |
| 656 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * |
657 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * |
| 657 // ============================================================================= |
658 // ============================================================================= |