
The returned int value is zero because there is no difference between the ASCII values of characters at any index of both When the two String objects being compared contain a same value,.The difference between the ASCII values of characters of both String objects, at each index: This int value returned by the compareTo() method is calculated after finding How is the returned int value of compareTo() method calculated? A negative value, if the invoked String has a smaller value than the value in String str.

A positive value, if the invoked String has a greater value than the value in String str.A zero, if the invoked String and String str have the same value.The XSP library contains classes that access the browser context.This method compares the value in the invoked String with the value in the String str and returns an int value, which could be: Removes white space from both ends of a string. Gets the string representation of a String object.Ĭonverts all characters of a string to upper case. Gets the string representation of a String object taking into account the host locale.Ĭonverts all characters of a string to upper case taking into account the host locale.Ĭonverts all characters of a string to lower case. Splits a string between string separators.Ĭhecks whether a string starts with a substring.Ĭhecks whether a string starts with a substring ignoring case.Ĭonverts all characters of a string to lower case taking into account the host locale. Gets a substring starting and optionally ending at specified positions.

Gets the index of the first occurrence of a substring. Removes white space from the right end of a string. Gets a substring starting at a specified position.Įxtends the object with additional properties and methods. Gets substrings that match a regular expression. Removes white space from the left end of a string. Gets the index of the last occurrence of a substring ignoring case.Ĭompares two strings taking into account the host locale. Gets the index of the last occurrence of a substring. Gets the index of a substring ignoring case.Ĭhecks whether a string is empty except for spaces. Gets the character at a specified index as an integer code.Ĭhecks whether a string ends with a substring.Ĭhecks whether a string ends with a substring ignoring case.Ĭhecks whether a string equals another object or string.Ĭhecks whether a string equals another string ignoring case.Ĭhecks whether a string has a specified property. Represents common mathematical values and functions. The Standard library contains classes for manipulating data of different types and performing common operations. The Runtime library contains classes that provide useful methods for globalization. This library provides access to the IBM® Domino® back-end. Represents a document in XML Document Object Model format. Entering the name of a global object instantiates it. Global objects provide entry points to server-side scripts. Global objects and functions (JavaScript™).Client-side scripts are interpreted by the browser.Ī simple action performs a pre-programmed activity that can be modified by arguments. The JavaScript described here applies to the server-side interpreter. The JavaScript™ language elements are based on the ECMAScript Language Specification Standard ECMA-262 (see ). JavaScript™ language elements (JavaScript).
#Compareto method map java plus
This reference describes the JavaScript™ language elements, Application Programming Interfaces (APIs), and other artifacts that you need to create scripts, plus the XPages simple actions.
