(s unistring.String)
| 3142 | } |
| 3143 | |
| 3144 | func strToInt(s unistring.String) (int, bool) { |
| 3145 | if bits.UintSize == 32 { |
| 3146 | n, ok := strToInt32(s) |
| 3147 | return int(n), ok |
| 3148 | } |
| 3149 | n, ok := strToInt64(s) |
| 3150 | return int(n), ok |
| 3151 | } |
| 3152 | |
| 3153 | // Attempts to convert a string into a canonical integer. |
| 3154 | // On success returns (number, true). |
no test coverage detected
searching dependent graphs…