Changeset 385 for trunk/Include/Classes/ActiveBasic/Strings/SPrintF.ab
- Timestamp:
- Nov 20, 2007, 12:04:07 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Include/Classes/ActiveBasic/Strings/SPrintF.ab
r384 r385 90 90 Zero = &h4 91 91 '! 左揃え、-。フィールド内で左揃えにする。 92 Left = &h892 LeftSide = &h8 93 93 /*! 代替表記、#。 94 94 <ul> … … 867 867 If .Length < field Then 868 868 Dim embeddedSize = field - .Length 869 If flags And Left Then869 If flags And LeftSide Then 870 870 .Append(&h20, embeddedSize) 871 871 Else … … 898 898 Dim sb = New System.Text.StringBuilder( 899 899 x, 0, System.Math.Min(x.Length As DWord, d) As Long, field) 900 AdjustFieldWidth(sb, field, flags And Left )900 AdjustFieldWidth(sb, field, flags And LeftSide) 901 901 FormatString = sb.ToString() 902 902 End Function … … 915 915 Dim sb = New System.Text.StringBuilder(field + 1) 916 916 sb.Append(x) 917 AdjustFieldWidth(sb, field, flags And Left )917 AdjustFieldWidth(sb, field, flags And LeftSide) 918 918 FormatCharacter = sb.ToString() 919 919 End Function … … 1094 1094 flags Or= Sign 1095 1095 Case &h2d '- 1096 flags Or = Left 1096 flags Or = LeftSide 1097 1097 Case &h26 '& 1098 1098 flags Or= BPrefix … … 1122 1122 If ReadInt(fmt, params, paramsCount, t) Then 1123 1123 If t < 0 Then 1124 flags Or= Left 1124 flags Or= LeftSide 1125 1125 fieldWidth = -t As DWord 1126 1126 Else
Note:
See TracChangeset
for help on using the changeset viewer.