Changeset 385 for trunk/Include/Classes/ActiveBasic
- Timestamp:
- Nov 20, 2007, 12:04:07 AM (17 years ago)
- Location:
- trunk/Include/Classes/ActiveBasic
- Files:
-
- 1 added
- 2 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 -
trunk/Include/Classes/ActiveBasic/Strings/Strings.ab
r383 r385 95 95 ChrCmp = ChrCmp(s1, s2, System.Math.Min(size1, size2)) 96 96 If ChrCmp = 0 Then 97 ChrCmp = ( size1 - size2) As Long97 ChrCmp = (( size1 - size2 ) As LONG_PTR) As Long 98 98 End If 99 99 End Function … … 102 102 ChrCmp = ChrCmp(s1, s2, System.Math.Min(size1, size2)) 103 103 If ChrCmp = 0 Then 104 ChrCmp = ( size1 - size2) As Long104 ChrCmp = (( size1 - size2 ) As LONG_PTR) As Long 105 105 End If 106 106 End Function
Note:
See TracChangeset
for help on using the changeset viewer.