📄 changelog
字号:
* QNameUtils.java (resolveQName): Catch errors. * Reduce.java (sum): Use XQuery-specific ArithOp, rather than Scheme-appropriate gnu.kawa.functions.AddOp instance. * StringUtils.java (appendCodepoint): Check codepoints for validity.2006-09-28 Per Bothner <per@bothner.com> * NodeUtils.java (name, getLang, lang, documentUri): New static methods to implement new fn:xxx functions. (localName): Change return type. Inline QNameUtils.localNameFromQName. * Compare.java (VALUE_COMPARISON): New mask bit. (apply2): Check for VALUE_COMPARISON. (valEq, valNe, Vallt, valNe, valGt, valGe): New static fields. * XQException.java: New class, extends RuntimeException. * Makefile.am: Update accordingly/ * ValuesFilter.java (matches): Simplify and fix to match specification. * CastAs.java (apply2): Handle OccurrenceType. (compile): Suppress inherited/incorrect inlining. * NumberValue.java (abd): Fix so abd(-0) is 0. * StringUtils.java (encodeForUri): Fixes to match updated specification of fn-encode-for-uri. * BooleanValue.java (not): New static method. * SequenceUtils.java (remove$X): New static method.2006-09-26 Per Bothner <per@bothner.com> * TimeUtils.java (dateTime): Handle empty sequence arguments. * NumberValue.java (abs): Use numberCast, rather than numberValue. The latter always returns a double, which is not always right. * StringUtils.java (codepointEqual): New static method. * TimeUtils.java (dateTime): New static method. * SequenceUtils.java (seepEqual): Fix thinko.2006-09-19 Per Bothner <per@bothner.com> * HandleExtension.java: New class. * Makefile.am: Update accordingly. * BooleanValue.java (booleanValue): Throw WrongType exception when appropriate. Handle URI similar to String/UntypedAtomic.2006-09-17 Per Bothner <per@bothner.com> * Debug.java: Parameterize output file and options using static. (tracePrefix, tracePort, traaceFilename, traceShouldFlush, traceShouldAppend): New static fields. (trace): Make synchronized.2006-09-14 Per Bothner <per@bothner.com> * SequenceUtils.java (deepEqualChaildren, deepEqual): New methods. (deepEqual): Fix handling of nodes to use new methods. (textOrElement): New constant.2006-09-13 Per Bothner <per@bothner.com> * XMLFormat.java (writeObject): Update for XMLPrinter changes. (format): Likewise.2006-08-27 Per Bothner <per@bothner.com> * OrderedTuples.java (cmp): Update NumberCompare.compare call. * Compare.java (apply): Move atomic value handle to ... (atomicCompare): ... new static method. Use new NumberCompare.applyWithPromotion method. * SequenceUtils.java (deepEqual): New static method.2006-08-18 Per Bothner <per@bothner.com> * TimeUtils.java (now): New static method.2006-08-17 Per Bothner <per@bothner.com> * TimeUtils.java (coerceToDateTime, coerceToDate, coerceToTime): Convert node and xs:untypedAtomic as needed. Also throw more informative WrongType constructor.2006-06-28 Per Bothner <per@bothner.com> * QNameUtils.java: Update SName -> Symbol. * Compare.java: Likewise.2006-06-10 Per Bothner <per@bothner.com> * TimeUtils.java: Fix typo in package statement.2006-06-04 Per Bothner <per@bothner.com> * CastableAs.java (inline): Fix thinko.2006-03-26 Per Bothner <per@bothner.com> * NodeUtils.java (localName, namespaceURI): Fix to match specification. * NodeUtils.java (data$X): New static method. * NumberValue.java (round): New static method. * NumberValue.java (numberValue): Optimization. * Compare.java (apply): Fix indentation so PreProcess will work. * StringUtils.java (asDouble, asDoubleRounded): New static helpers. (substring): Use asDoubleRounded. * StringUtils.java (stringJoin): Remove redundant casts. * StringUtils.java (encodeForUri, iriToUri, escapeHtmlUri, encodeForUri, normalizeSpace): New static methods. * StringUtils.java (makePattern, matches, repalce): New static methods. * SequenceUtils.java (indexOf$X): New static method, implements fn:index-of function. * IndexOf.java: Remove no-longer-used class. * LastIndexOf.java: Likewise. * Makefile.am: Update accordingly.2006-03-25 Per Bothner <per@bothner.com> * OrderedTuples.java (cmp): Various fixes to match 'order by' specification: empty sequence and NaN handling; UntypeAtomic support. * QNameUtils.java (makeQName): Add expected intern call.2006-03-20 Per Bothner <per@bothner.com> * BooleanValue.java (booleanValue): Handle Number that are not Numeric so we DTRT for xs:double and xs:float.2006-03-17 Per Bothner <per@bothner.com> * QNameUtils.java (resolvePrefix): New method. (resolveQName): Make use of resolvePrefix. * Compare.java (apply): Fix comparison of QNames (SName).2006-03-15 Per Bothner <per@bothner.com> * CastAs.java: New class, extends gnu.kawa.functions.Convert. * CastableAs.java: New class, extends gnu.kawa.reflect.InstanceOf. * Makefile.am: Update accordingly. * TimeUtils.java: New class with static methods implementing date/time/duration-related functions. * Makefile.am: Update accordingly. * StringValue.java: Remove file. Contents partly moved to new file StringUtils.java and partly moved to gnu/kawa/xml/StringValue.java. (stringToCodepoints$X, appendCodepoint, codepointsToString): New. * Makefile.am: Update accordingly. * NodeUtils.java (atomicValue): Moved to gnu.kawa.xml.KNode. (prefixesFromNodetype, inScopePrefixes$X): New methods. * BooleanValue (booleanValue): Fix thinko. Add correct handling for String and UntypedAtomic. * RelativeStep.java (inline): Don't optimize unless mustCompile. Also rename Compilation local from 'parser' to 'comp'. * Compare.java (apply): Fixes to handle dates/times/durations, and UntypedAtomic. Other fixes to follow specification more closely. * OrderedTuples.java (cmp): Try numeric compare first. * MinMax.java (cmobine): Use new NumverValue.numberCast method. * IntegerRange.java (apply): DTRT when range end is empty sequence. * Average.java: Use XQuery-specific ArithOp.add rather than AddOp.$pl. Fix handling of empty and singleton sequences. Use ArithOp.div for division. (combine): Inline into caller. * NumberValue.java (abs, floor, ceiling, roundHalfToEven): New methods. (numberCast): New static helper method. (numberValue): Use new classes/methods to better follow specification. (apply1): Return NaN on failure, as per specification.2006-03-15 Per Bothner <per@bothner.com> * ArithOp.java: New class, extends Procedure1or2. * Makefile.am: Update accordingly.2006-03-14 Per Bothner <per@bothner.com> * SequenceUtils.java (zeroOrOne, oneOrMore, exactlyOne): New static methods that implement the corresponding standard functions.2005-11-29 Per Bothner <per@bothner.com> * ValuesFilter.java (matches): Handle a String value.2005-11-22 Per Bothner <per@bothner.com> * OrderedMap.java (compile): Update compile->compileInvoke rename.2005-09-26 Per Bothner <per@bothner.com> * Average.java (combine): Coerce operands with NumberValue. * OrderedTuples.java (listsort): Fix thinko.2005-09-25 Per Bothner <per@bothner.com> * OrderedMap.java: New class, extends MethodProc. * OrderedTuples.java: New class, extends FilterConsumer. * Makefile.am: Update accordingly. * SequenceUtils.java (reverse$X): New methods, implements fn:revrese.2005-08-16 Per Bothner <per@bothner.com> * NodeUtils.java: New class. (atomicValue, localName, namespaceURI): New static methods. * DistinctValues.java: New class. * Makefile.am: Update accordingly. * Compare.java (apply): Add NamedCollator parameter. Use it. Get atomiValue of nodes. (apply2): Update for modified apply. * MinMax.java (combine): Extract numberValue from nodes. * StringValue.java (compare): New method. * NamedCollator.java (UNICODE_CODEPOINT_COLLATION): Update uri. (find): New alias (for now) for make. * QNameUtils.java (prefixFromQName): New static method. * Reduce.java (apply1): Fix bogus iteration.2005-06-09 Per Bothner <per@bothner.com> * StringValue.java (stringValue): null or #!void append nothing. (lowerCase, upperCase, substring, stringLength, substringBefore, substringAfter, translate, stringPad, contains, startsWith, endWith, stringJoin): Don't return empty on empty input string; instead return the empty string, usually taken care of by stringValue. (substring, stringLength, substringBefore, substringAfter, translate, startsWith, stringJoin): Convert to String using stringvalue, not toString. (contains, startsWith, endsWith, substringAfter): Remove redundant comparisons. (substringBefore): Fix off-by-one error. (translate): Re-do StringBuffer construction to append each character, rather than modify/delete characters. (stringPad): Throw exception on error instead of printing. Also, improve StringBuffer allocation.2005-06-04 Per Bothner <per@bothner.com> * XMLFormat.java: Update for AbstractFormat move to gnu.lists.2005-03-03 Per Bothner <per@bothner.com> * Children.java: Moved to gnu.kawa.xml, because it is also used for Scheme. * Makefile.am: Update accordingly.2005-01-02 Per Bothner <per@bothner.com> * NamedCollator.java: Change "select" (preprocessor) syntax.2004-12-22 Per Bothner <per@bothner.com> * MakeAttribute.java: Moved to gnu.kawa.xml. * MakeElement.java: Likewise. * Makefile.am: Update accordingly, * QNameUtils.java (resolveQName): New helper method, used for xs:QName. (makeQName): New implementation, for fn:QName. (localNameFromQName, namespaceURIFromQName): Handle SName.2004-12-10 Per Bothner <bothner@Per-Bothners-Computer.local> * SequenceUtils.java: New class has sequence functions implementations. * IsEmptySequence.java: Removed class - use SequenceUtils instead. * NamedCollator.java: New class extends Collator. * Makefile.am: Update accordingly.2004-11-06 Per Bothner <per@bothner.com> * QNameUtils.java: New class. * Makefile.am: Update accordingly.2004-08-10 Per Bothner <per@bothner.com> * ValuesFilter.java (inline): Add missing letEnter call.2004-08-08 Per Bothner <per@bothner.com> * RelativeStep.java (apply): Update to use check3. * ValuesEvery.java (apply): Update to use check1.2004-08-03 Per Bothner <per@bothner.com> * Children.java: Extend MethodProc instead of CpsProcedure * RelativeStep.java: Likewise. * SubList.java: Likewise. * ValuesEvery.java: Likewise. * ValuesFilter.java: Likewise. * IntegerRange.java: Likewise. Also explicitly call setName2004-07-20 Per Bothner <per@bothner.com> * IntegerRange.java: Remove unused import statements. * MinMax.java: Likewise. * RelativeStep.java: Likewise. * XMLFormat.java: Likewise.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -