Lines Matching defs:pszValue

99  * @param   pszValue        The value to convert.
102 static int rtgetoptConvertIPv4Addr(const char *pszValue, PRTNETADDRIPV4 pAddr)
104 if (RT_FAILURE(RTNetStrToIPv4Addr(pszValue, pAddr)))
116 * @param pszValue The value to convert.
119 static int rtgetoptConvertMacAddr(const char *pszValue, PRTMAC pAddr)
122 int rc = RTNetStrToMacAddr(pszValue, pAddr);
244 * @param pszValue The value string.
247 static int rtGetOptProcessValue(uint32_t fFlags, const char *pszValue, PRTGETOPTUNION pValueUnion)
261 pValueUnion->psz = pszValue;
265 if ( !RTStrICmp(pszValue, "true")
266 || !RTStrICmp(pszValue, "t")
267 || !RTStrICmp(pszValue, "yes")
268 || !RTStrICmp(pszValue, "y")
269 || !RTStrICmp(pszValue, "enabled")
270 || !RTStrICmp(pszValue, "enable")
271 || !RTStrICmp(pszValue, "en")
272 || !RTStrICmp(pszValue, "e")
273 || !RTStrICmp(pszValue, "on")
274 || !RTStrCmp(pszValue, "1")
277 else if ( !RTStrICmp(pszValue, "false")
278 || !RTStrICmp(pszValue, "f")
279 || !RTStrICmp(pszValue, "no")
280 || !RTStrICmp(pszValue, "n")
281 || !RTStrICmp(pszValue, "disabled")
282 || !RTStrICmp(pszValue, "disable")
283 || !RTStrICmp(pszValue, "dis")
284 || !RTStrICmp(pszValue, "d")
285 || !RTStrICmp(pszValue, "off")
286 || !RTStrCmp(pszValue, "0")
291 pValueUnion->psz = pszValue;
297 if (!RTStrICmp(pszValue, "on"))
299 else if (!RTStrICmp(pszValue, "off"))
303 pValueUnion->psz = pszValue;
312 if ( convfn(pszValue, 10, &Value) != VINF_SUCCESS \
313 && ( pszValue[0] != '0' \
314 || (pszValue[1] != 'x' && pszValue[1] != 'X') \
315 || !RT_C_IS_XDIGIT(pszValue[2]) \
316 || convfn(pszValue, 16, &Value) != VINF_SUCCESS ) ) \
325 if (convfn(pszValue, base, &Value) != VINF_SUCCESS) \
373 if (rtgetoptConvertIPv4Addr(pszValue, &Addr) != VINF_SUCCESS)
383 if (RT_FAILURE(RTCidrStrToIPv4(pszValue, &network, &netmask)))
393 if (rtgetoptConvertMacAddr(pszValue, &Addr) != VINF_SUCCESS)
402 if (RTUuidFromStr(&Uuid, pszValue) != VINF_SUCCESS)
569 const char *pszValue;
576 pszValue = pState->argv[iThis + pState->cNonOptions + 1];
581 pszValue = &pszArgThis[2 + (pszArgThis[2] == ':' || pszArgThis[2] == '=')];
606 pszValue = pszRet + 1;
613 pszValue = pState->argv[iThis + pState->cNonOptions + 1];
626 pszValue = pState->argv[iThis + pState->cNonOptions + 1];
631 pszValue = &pszArgThis[cchLong + 1];
638 int rc = rtGetOptProcessValue(pOpt->fFlags, pszValue, pValueUnion);
718 const char *pszValue = pState->argv[iThis + (pState->cNonOptions != INT32_MAX ? pState->cNonOptions : 0)];
724 return rtGetOptProcessValue(fFlags, pszValue, pValueUnion);