Lines Matching refs:str
270 func sdkSpecFrom(str string) sdkSpec {
271 switch str {
274 return sdkSpec{sdkPrivate, sdkVersionNone, str}
276 return sdkSpec{sdkNone, sdkVersionNone, str}
278 return sdkSpec{sdkCorePlatform, sdkVersionNone, str}
281 sep := strings.LastIndex(str, "_")
285 return sdkSpec{sdkInvalid, sdkVersionNone, str}
289 kindString = str[0:sep]
291 versionString := str[sep+1 : len(str)]
308 return sdkSpec{sdkInvalid, sdkVersionNone, str}
317 return sdkSpec{sdkInvalid, sdkVersionNone, str}
320 return sdkSpec{kind, version, str}