Skip to content

Commit b590747

Browse files
committed
chore: small reorg
1 parent 76afdeb commit b590747

File tree

2 files changed

+14
-102
lines changed

2 files changed

+14
-102
lines changed

cmd/ipsw/cmd/dyld_sel.go

-102
This file was deleted.

internal/utils/utils.go

+14
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import (
1414
"strconv"
1515
"strings"
1616
"time"
17+
"unicode"
1718

1819
"github.com/apex/log"
1920
"github.com/apex/log/handlers/cli"
@@ -220,3 +221,16 @@ func GrepStrings(data []byte, searchStr string) []string {
220221

221222
return matchStrings
222223
}
224+
225+
// IsASCII checks if given string is ascii
226+
func IsASCII(s string) bool {
227+
if len(s) < 1 {
228+
return false
229+
}
230+
for i := 0; i < len(s); i++ {
231+
if s[i] > unicode.MaxASCII {
232+
return false
233+
}
234+
}
235+
return true
236+
}

0 commit comments

Comments
 (0)