Changeset 67642 in vbox
- Timestamp:
- Jun 27, 2017 3:38:21 PM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 116416
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/com/string.h
r67640 r67642 768 768 * 769 769 * @returns offset of the @a a_rPairSeparator following the returned value. 770 * @retval npos is returned if there are no more key/value pairs, or if the 771 * final key/value pair isn't followed by a @a a_rPairSeparator. 770 * @retval npos is returned if there are no more key/value pairs. 772 771 * 773 772 * @param a_rKey Reference to variable that should receive -
trunk/src/VBox/Main/glue/string.cpp
r67640 r67642 209 209 if (offKeyValueSep < offEnd) 210 210 { 211 a_rKey = substr(a_offStart, offKeyValueSep - a_offStart); 211 a_rKey = substr(a_offStart, offKeyValueSep - a_offStart); 212 if (offEnd == npos) 213 offEnd = m_cch; /* No confusing npos when returning strings. */ 212 214 a_rValue = substr(offKeyValueSep + 1, offEnd - offKeyValueSep - 1); 213 215 } -
trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp
r67639 r67642 1247 1247 size_t uPos = 0; 1248 1248 com::Utf8Str strDebugOptions = strParavirtDebug; 1249 do 1250 { 1251 com::Utf8Str strKey; 1252 com::Utf8Str strVal; 1253 uPos = strDebugOptions.parseKeyValue(strKey, strVal, uPos); 1249 com::Utf8Str strKey; 1250 com::Utf8Str strVal; 1251 while ((uPos = strDebugOptions.parseKeyValue(strKey, strVal, uPos)) != com::Utf8Str::npos) 1252 { 1254 1253 if (strKey == "enabled") 1255 1254 { … … 1276 1275 else if (strKey == "hypercallinterface") 1277 1276 fGimHvHypercallIf = RT_BOOL(strVal.toUInt32()); 1278 else if (strKey.isNotEmpty() || strVal.isNotEmpty())1277 else 1279 1278 { 1280 1279 AssertMsgFailed(("Unrecognized Hyper-V debug option '%s'\n", strKey.c_str())); … … 1283 1282 strDebugOptions.c_str()); 1284 1283 } 1285 } while (uPos != com::Utf8Str::npos);1284 } 1286 1285 1287 1286 /* Update HyperV CFGM node with active debug options. */ -
trunk/src/VBox/Main/src-client/VideoRec.cpp
r67641 r67642 771 771 #endif 772 772 773 /** @todo r=bird: This code will ignore the final value/pair iff the option774 * string doesn't end with a comma. */775 773 com::Utf8Str key, value; 776 774 while ((pos = options.parseKeyValue(key, value, pos)) != com::Utf8Str::npos) -
trunk/src/VBox/Main/src-server/VirtualBoxImpl.cpp
r66938 r67642 1333 1333 LogFlowThisFunc(("aName=\"%s\",aBaseFolder=\"%s\"\n", strName.c_str(), strBase.c_str())); 1334 1334 1335 Guid id;1335 com::Guid id; 1336 1336 bool fDirectoryIncludesUUID = false; 1337 1337 if (!aCreateFlags.isEmpty()) 1338 1338 { 1339 1339 size_t uPos = 0; 1340 do { 1341 1342 com::Utf8Str strKey, strValue; 1343 uPos = aCreateFlags.parseKeyValue(strKey, strValue, uPos); 1344 1340 com::Utf8Str strKey; 1341 com::Utf8Str strValue; 1342 while ((uPos = aCreateFlags.parseKeyValue(strKey, strValue, uPos)) != com::Utf8Str::npos) 1343 { 1345 1344 if (strKey == "UUID") 1346 1345 id = strValue.c_str(); 1347 1346 else if (strKey == "directoryIncludesUUID") 1348 1347 fDirectoryIncludesUUID = (strValue == "1"); 1349 1350 } while (uPos != com::Utf8Str::npos); 1348 } 1351 1349 } 1352 1350
Note:
See TracChangeset
for help on using the changeset viewer.