16 const char* sPtr = strstr(deviceName,
"ff");
18 if (0 != sPtr) len = sPtr - deviceName;
19 else len = strlen(deviceName);
22 return std::string(deviceName, len);
29 const char* sPtr = strchr(deviceName,
'-');
31 if (0 != sPtr) len = sPtr - deviceName;
32 else len = strlen(deviceName);
35 return std::string(deviceName, len);