static CFX_WideString _GetLabelNumPortion(int num, const CFX_ByteString& bsStyle) { CFX_WideString wsNumPortion; if (bsStyle.IsEmpty()) { return wsNumPortion; } if (bsStyle == "D") { wsNumPortion.Format(L"%d", num); } else if (bsStyle == "R") { wsNumPortion = _MakeRoman(num); wsNumPortion.MakeUpper(); } else if (bsStyle == "r") { wsNumPortion = _MakeRoman(num); } else if (bsStyle == "A") { wsNumPortion = _MakeLetters(num); wsNumPortion.MakeUpper(); } else if (bsStyle == "a") { wsNumPortion = _MakeLetters(num); } return wsNumPortion; }