(ring, current)
| 62 | // Next entry after `current`. An unknown current format (a hand-written one |
| 63 | // that is not in the ring) starts the walk at the top. |
| 64 | function nextClockFormat(ring, current) { |
| 65 | if (!ring || ring.length === 0) return "" |
| 66 | var index = ring.indexOf(String(current === undefined || current === null ? "" : current)) |
| 67 | return ring[(index + 1) % ring.length] |
| 68 | } |
| 69 | |
| 70 | // Two-digit ISO week, substituted into a format's 'ww' token before Qt |
| 71 | // formats it -- Qt has no ISO week specifier of its own. |
nothing calls this directly
no outgoing calls
no test coverage detected