| 93 | } |
| 94 | |
| 95 | UArray *UArray_fileName(UArray *self) { |
| 96 | // it looks like there is a memory stomping bug in this method... |
| 97 | long extPos = UArray_findLastPathComponent(self); |
| 98 | long dotPos = UArray_findPathExtension(self); |
| 99 | |
| 100 | if (dotPos == -1 || dotPos < extPos) { |
| 101 | dotPos = self->size - 1; |
| 102 | } |
| 103 | |
| 104 | return UArray_range(self, extPos, dotPos - extPos); |
| 105 | } |
| 106 | |
| 107 | // to/from os path - always returns a copy |
| 108 |
no test coverage detected