(firstCh, index, target, count)
| 61 | } |
| 62 | |
| 63 | function decodeTargetIndex(firstCh, index, target, count) { |
| 64 | if (firstCh === '-' || firstCh === '+') { |
| 65 | target = index + target; |
| 66 | } |
| 67 | |
| 68 | if (target === index || target < 0 || target >= count) { |
| 69 | return false; |
| 70 | } |
| 71 | |
| 72 | return target; |
| 73 | } |
| 74 | |
| 75 | /** |
| 76 | * @param {FillTarget | ComplexFillTarget} fill |