Changeset 84207 in vbox for trunk/src/VBox/Runtime/common/string
- Timestamp:
- May 8, 2020 11:54:10 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/string/strformatrt.cpp
r84063 r84207 988 988 /* 989 989 * Hex string. 990 * The default separator is ' ', RTSTR_F_THOUSAND_SEP changes it to ':', 991 * and RTSTR_F_SPECIAL removes it. 990 992 */ 991 993 case 's': … … 998 1000 cch = RTStrFormat(pfnOutput, pvArgOutput, NULL, 0, "%0*llx: %02x", 999 1001 cchMemAddrWidth, uMemAddr, *pu8++); 1000 for (; cchPrecision > 0; cchPrecision--, pu8++) 1001 cch += RTStrFormat(pfnOutput, pvArgOutput, NULL, 0, " %02x", *pu8); 1002 if (!(fFlags & (RTSTR_F_SPECIAL | RTSTR_F_THOUSAND_SEP))) 1003 for (; cchPrecision > 0; cchPrecision--, pu8++) 1004 cch += RTStrFormat(pfnOutput, pvArgOutput, NULL, 0, " %02x", *pu8); 1005 else if (fFlags & RTSTR_F_SPECIAL) 1006 for (; cchPrecision > 0; cchPrecision--, pu8++) 1007 cch += RTStrFormat(pfnOutput, pvArgOutput, NULL, 0, "%02x", *pu8); 1008 else 1009 for (; cchPrecision > 0; cchPrecision--, pu8++) 1010 cch += RTStrFormat(pfnOutput, pvArgOutput, NULL, 0, ":%02x", *pu8); 1002 1011 return cch; 1003 1012 }
Note:
See TracChangeset
for help on using the changeset viewer.