You've already forked linux-packaging-mono
Imported Upstream version 5.2.0.175
Former-commit-id: bb0468d0f257ff100aa895eb5fe583fb5dfbf900
This commit is contained in:
parent
4bdbaf4a88
commit
966bba02bb
@ -1813,54 +1813,42 @@ namespace System
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (index == 2) {
|
||||
if (zero) {
|
||||
offset = lens [0] + lens [1] + 2;
|
||||
length = format.Length - offset;
|
||||
if (zero) {
|
||||
if (index == 2) {
|
||||
if (format.Length - lastPos == 0) {
|
||||
offset = 0;
|
||||
length = lens [0];
|
||||
} else {
|
||||
offset = lens [0] + lens [1] + 2;
|
||||
length = format.Length - offset;
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (positive) {
|
||||
|
||||
if (lens [2] == 0) {
|
||||
offset = 0;
|
||||
length = lens [0];
|
||||
return;
|
||||
}
|
||||
if (lens [1] > 0) {
|
||||
positive = true;
|
||||
offset = lens [0] + 1;
|
||||
length = lens [1];
|
||||
return;
|
||||
}
|
||||
else {
|
||||
offset = 0;
|
||||
length = lens [0];
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (index == 3) {
|
||||
if (zero) {
|
||||
} else {
|
||||
offset = lens [0] + lens [1] + 2;
|
||||
length = lens [2];
|
||||
return;
|
||||
}
|
||||
if (positive) {
|
||||
offset = 0;
|
||||
length = lens [0];
|
||||
return;
|
||||
}
|
||||
if (lens [1] > 0) {
|
||||
positive = true;
|
||||
offset = lens [0] + 1;
|
||||
length = lens [1];
|
||||
return;
|
||||
}
|
||||
else {
|
||||
offset = 0;
|
||||
length = lens [0];
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
throw new ArgumentException ();
|
||||
return;
|
||||
|
||||
}
|
||||
if (positive) {
|
||||
offset = 0;
|
||||
length = lens [0];
|
||||
return;
|
||||
}
|
||||
if (lens [1] > 0) {
|
||||
positive = true;
|
||||
offset = lens [0] + 1;
|
||||
length = lens [1];
|
||||
return;
|
||||
}
|
||||
offset = 0;
|
||||
length = lens [0];
|
||||
}
|
||||
|
||||
public static CustomInfo Parse (string format, int offset, int length, NumberFormatInfo nfi)
|
||||
|
Reference in New Issue
Block a user