Lines Matching refs:argument
158 // Assume first non-option argument is the device filename....
520 int GPTDataCL::BuildMBR(char* argument, int isHybrid) {
526 if (argument != NULL) {
527 numParts = CountColons(argument) + 1;
529 eeLast = GetString(argument, numParts) == "EE";
538 origPartNum = GetInt(argument, i + 1) - 1;
573 // Returns the number of colons in argument string, ignoring the
576 int CountColons(char* argument) {
579 while ((argument[0] != '\0') && (argument = strchr(&argument[1], ':')))
585 // Extract integer data from argument string, which should be colon-delimited
586 uint64_t GetInt(const string & argument, int itemNum) {
589 istringstream inString(GetString(argument, itemNum));
594 // Extract string data from argument string, which should be colon-delimited
597 string GetString(string argument, int itemNum) {
603 if (argument[0] == ':')
604 argument.erase(0, 1);
606 endPos = argument.find(':', startPos);
610 endPos = argument.length();
616 retVal = argument.substr(startPos, endPos - startPos);