# Class TXQCollation

Description
Hierarchy
Fields
Methods
Properties

## Unit

xquery.internals.collations

## Declaration

`type TXQCollation = class(TObject)`

## Description

Class to perform string comparisons, so they different comparison rules can be used in different languages

## Hierarchy

- TObject
- TXQCollation

## Overview

### Fields

| `id: string;`

### Methods

| `constructor Create(const aid: string);`
| `function compare(const a, b: string): TXQCompareResult;`
| `function equal(const a, b: string): boolean; virtual;`
| `function find(const strToBeExaminated, searched: string; out matchStart, matchLength: SizeInt): boolean; virtual;`
| `function indexOf(const strToBeExaminated, searched: string): SizeInt; virtual;`
| `function contains(const strToBeExaminated, searched: string): boolean; virtual;`
| `function startsWith(const strToBeExaminated, expectedStart: string): boolean; virtual;`
| `function endsWith(const strToBeExaminated, expectedEnd: string): boolean; virtual;`
| `function key(s: string): string; virtual;`

## Description

### Fields

| `id: string;`

### Methods

| `constructor Create(const aid: string);`

| `function compare(const a, b: string): TXQCompareResult;`

| `function equal(const a, b: string): boolean; virtual;`

| `function find(const strToBeExaminated, searched: string; out matchStart, matchLength: SizeInt): boolean; virtual;`

| `function indexOf(const strToBeExaminated, searched: string): SizeInt; virtual;`

| `function contains(const strToBeExaminated, searched: string): boolean; virtual;`

| `function startsWith(const strToBeExaminated, expectedStart: string): boolean; virtual;`

| `function endsWith(const strToBeExaminated, expectedEnd: string): boolean; virtual;`

| `function key(s: string): string; virtual;`

Generated by PasDoc 0.16.0.