incubator-vxquery-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vinayak Borkar (JIRA)" <>
Subject [jira] [Commented] (VXQUERY-34) Basic String Functions
Date Wed, 20 Jun 2012 21:59:42 GMT


Vinayak Borkar commented on VXQUERY-34:


One more comment: The evaluate call in FnUpper/FnLower can be moved to the abstract super
class -- its the same code in both classes. Move it up, and make it final. So the only method
in FnUpper and FnLower will deal with transcoding a character.

Once you do that, you can inline the getTranscoded... method into the evaluate method and
make the byte[] stringResult field stack local.

> Basic String Functions 
> -----------------------
>                 Key: VXQUERY-34
>                 URL:
>             Project: VXQuery
>          Issue Type: Sub-task
>            Reporter: Preston Carman
>              Labels: patch
>         Attachments: BasicStringFunctions2.patch, BasicStringFunctions3.patch
> The basic string functions to build help with basic queries.
> fn:concat - Concatenates two or more xs:anyAtomicType arguments cast to xs:string.
> fn:string-join - Returns the xs:string produced by concatenating a sequence of xs:strings
using an optional separator.
> fn:substring - Returns the xs:string located at a specified place within an argument
> fn:string-length - Returns the length of the argument.
> fn:upper-case - Returns the upper-cased value of the argument.
> fn:lower-case - Returns the lower-cased value of the argument.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message