You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -188,6 +188,28 @@ public CharSequence toString(Object obj, Object... args)
188
188
returnnull;
189
189
}
190
190
191
+
/**
192
+
* @param parentRegistry | Registry provided by caller, but remember that {@link Registry} is also a {@link DataParser} and therefore this registry will be used instead of this argument.
193
+
* @param str | Source string to parse using suitable parser from registry.
194
+
* @param args | Additional arguments that will be obtained in {@link DataParser#parse(String, Object...)}!
195
+
*
196
+
* @return Object that was parsed from obtained string using suitable parser. This method will iterate registry and try to parse string using each registered parser until suitable return is obtained by parse method of parser, first suitable result will be returned!
197
+
* If no suitable parser/result was found, {@link DataParser#CONTINUE} will be returned, as it means that this {@link Registry} was not suitable as parser!<br>
198
+
* Note: If this registry contains it self as parser (which should not happen) it will attempt to skip it self in order to not cause possible infinite recursion!
for (intch, baseCof = 10; i >= 1; i--, baseCof *= 10)
110
+
{
98
111
if ((ch = s.charAt(i)) < '0' || ch > '9')
99
-
returnfalse;
112
+
return -1;
113
+
groupId += (ch - '0') * baseCof;
114
+
}
100
115
101
-
for (inti = 0; i < lc; i++)
102
-
if (s.charAt(len-i-1) != cls.charAt(lc-i-1))
103
-
returnfalse;
104
-
returntrue;
116
+
returngroupId;
105
117
}
106
118
107
119
/**
108
120
* @param str | CharSequence to search!
109
121
* @param from | Beginning index of search!
110
122
* @param openings | Openings to find!
111
123
*
112
-
* @return Return index of first opening char found if is not in object or -1 if there is no opening found similar to {@link Serializer#indexOfNotInObj(CharSequence, char...)}!
124
+
* @return Return index of first opening char found if is not in object or -1 if there is no opening found similar to {@link org.ugp.serialx.Utils#indexOfNotInObj(CharSequence, char...)}!
* @return Return index of first closing char found if is not in object or -1 if no closing is found similar to {@link Serializer#indexOfNotInObj(CharSequence, char...)}!
160
+
* @return Return index of first closing char found if is not in object or -1 if no closing is found similar to {@link org.ugp.serialx.Utils#indexOfNotInObj(CharSequence, char...)}!
0 commit comments