http://digital-flame.ru/

# Class TCreateUniqueNameServer

Description | Hierarchy | Fields | Methods | Properties

## Unit

uCreateUniqueNameServer

## Declaration

`type TCreateUniqueNameServer = class(TDataModule)`

## Description

## Hierarchy

- TDataModule
- TCreateUniqueNameServer

## Overview

### Methods

| `class function CreateUniqueNameAddingGUID( FileName:string; MaxOriginNameLength:Integer ):string;`
| `class function AddNumberOnTheEnd(ANameWithNumberOnTheEnd:String):String;`
| `class function CreateUniqueNameAddingNumber(ANamesToCompare:TStringList; ANameThatShouldBeUnique:String):String;`
| `class function IsFileNameUnique(ANameThatShouldBeUnique:String; AAllNamesToCompareSL:TStringList):boolean;`
| `class function AddParamAndValueToName(FileName, Param, Value: string): string; static;`
| `class function GetParamValueFromFileName(FileName: string; const ParamName: string):string; static;`
| `class function GetNumberInBracketsFromTheEnd(AFileName: string): string; static;`
| `class function FindAllOffsetsOfSubstrings(ASomeString: string; ASomeSubString:String): TStringList; static;`
| `class function GetSubStringWithoutLastBracketsInTheEnd(ASomeString, AValueInBrackets: String): String; static;`
| `class function IsValueInBracketsAtEndOfString(ASomeString, AValueInBrackets: String): Boolean; static;`
| `class function GetStringWithoutExtension(AFileName: string; var Extension:String): string; static;`

## Description

### Methods

| `class function CreateUniqueNameAddingGUID( FileName:string; MaxOriginNameLength:Integer ):string;`
CreateUniqueNameAddingGUID - all clear from the name. This is class function

| `class function AddNumberOnTheEnd(ANameWithNumberOnTheEnd:String):String;`

| `class function CreateUniqueNameAddingNumber(ANamesToCompare:TStringList; ANameThatShouldBeUnique:String):String;`
this method will Create Unique Name like SomeName(1),SomeName(2), Etc.

| `class function IsFileNameUnique(ANameThatShouldBeUnique:String; AAllNamesToCompareSL:TStringList):boolean;`
this method will Create Unique Name like SomeName(1),SomeName(2), Etc.

| `class function AddParamAndValueToName(FileName, Param, Value: string): string; static;`
this will add Param=Value to someName

| `class function GetParamValueFromFileName(FileName: string; const ParamName: string):string; static;`
this will get ParamValue from Name like Param=Value

| `class function GetNumberInBracketsFromTheEnd(AFileName: string): string; static;`

| `class function FindAllOffsetsOfSubstrings(ASomeString: string; ASomeSubString:String): TStringList; static;`

| `class function GetSubStringWithoutLastBracketsInTheEnd(ASomeString, AValueInBrackets: String): String; static;`

| `class function IsValueInBracketsAtEndOfString(ASomeString, AValueInBrackets: String): Boolean; static;`

| `class function GetStringWithoutExtension(AFileName: string; var Extension:String): string; static;`

Generated by PasDoc 0.14.0.