| ADDSLASHES() | Возвращает строку с символами слеш (\) |
| ALLTRIM() | Удаляет ведущие и замыкающие пробелы в строке символов. |
| BETWEEN() | Проверка значения |
| CSCOUNT() | Возвращает количество заданных символов в строке. |
| DSTRTON() | Преобразует строку c "double"-представлнием в clipper-число. |
| FSTRTON() | Преобразует строку c "float"-представлнием в clipper-число. |
| FT_AT2() | Find position of the nth occurrence of a substring |
| FT_BITCLR() | Clear (reset) selected bit in a byte |
| FT_BITSET() | Set selected bit in a byte |
| FT_BYTEAND() | Perform bit-wise AND on two ASCII characters (bytes) |
| FT_BYTENEG() | Perform bit-wise negation on an ASCII character |
| FT_BYTENOT() | Perform bit-wise NOT on an ASCII character (byte) |
| FT_BYTEOR() | Perform bit-wise OR on two ASCII characters (bytes) |
| FT_BYTEXOR() | Perform bit-wise XOR on two ASCII characters (bytes) |
| FT_FINDITH() | Find the "ith" occurrence of a substring within a string |
| FT_ISBIT() | Test the status of an individual bit |
| FT_ISBITON() | Determine the state of individual bits in a number |
| FT_METAPH() | Convert a character string to MetaPhone format |
| FT_NOOCCUR() | Find the number of times one string occurs in another |
| FT_PCHR() | Convert printer control codes |
| GLOB() | Проверка на соответствие строки регулярному выражению. |
| HASHNAME() | Возвращает строку, из которой был получен хэш-код. |
| HASHSTR() | Возвращает хэш-код строки. |
| LIKE() | Проверка на соответствие строки простой маске. |
| SEARCH() | Поиск подстроки в строке по регулярному выражению. |
| STR2VAR() | Конвертировать uucode строку в исходные данные. |
| VAR2STR() | Конвертировать данные в uucode строку. |
ADDSLASHES(<sString>) --> <sResString>
ADDSLASHES() возвращает строку с символами обратный слэш (\).
ADDSLASHES() возвращает строку <sResString> с обратными слэш перед символами, нуждающимися в экранировании, например в запросах к БД. Это такие символы, как одиночная кавычка ('), двойная кавычка ("), обратный слэш (\) и NUL (нулевой символ).
Не зависит от платформ
ALLTRIM(<символьное выражение>) --> строка символов
ALLTRIM() возвращает строку символов с удаленными пробелами в начале и в конце строки.
ALLTRIM() - функция работы с символьными строками, которая удаляет ведущие и завершающие пробелы из строки. Она выполняет действие сразу двух функций - LTRIM() и RTRIM(), которые удаляют из строки ведущие и заключающие пробелы соответственно. Функции ALLTRIM(), LTRIM() и RTRIM() являются противоположными по действию функциям PADC(), PADR() и PADL(), которые центрируют строки, выравнивают их справа или слева, добавляя в них пробелы.
BETWEEN(<TargetData>, <FirstData>, <SecondData>) --> TRUE || FALSE
Возвращает TRUE если <TargetData> располагается между <FirstData> и <SecondData> включительно.
BETWEEN() сравнивает исходное значение <TargetData> с <FirstData> и <SecondData>. Если <TargetData> находится в границах между <FirstData> и <SecondData>, BETWEEN() возвращает TRUE.
Все сравниваемые значения должны принадлежать какому-либо одному типу (строка, число, дата, ...).
Не зависит от платформ
CSCOUNT(<сChar>, <sString>) --> <nCount>
Возвращает количество символов <cChar> в строке <sString>.
CSCOUNT() возвращает количество символов <cChar> в строке <sString>.
Не зависит от платформ
DSTRTON(<sString>) --> <nValue>
Возвращает числовое значение, сконвертированное из строки с "double" представлением.
DSTRTON() преобразует строку <sString> в число и возвращает его.
Не зависит от платформ
FSTRTON(<sString>) --> <nValue>
Возвращает числовое значение, сконвертированное из строки с "float" представлением.
FSTRTON() преобразует строку <sString> в число и возвращает его.
Не зависит от платформ
FT_AT2( <cSearch>, <cTarget> [, <nOccurs> [, <lCaseSens> ] ] ) -> nPos
The position of the nth occurrence of a substring
This function will find the nth occurrence of a substring within a string.
FT_BITCLR( <cByte>, <nBitPos> ) -> cByte
Returns new byte, with designated bit cleared (reset). If parameters are faulty, returns NIL.
In effect, ANDs argument byte with a byte that has all bits set except the target bit. If bit is already clear (0), it remains clear. Note: Calls FT_ISBIT() which is also in this Library.
This function is presented to illustrate that bit-wise operations are possible with Clipper code. For greater speed, write .C or .ASM versions and use the Clipper Extend system.
FT_BITSET( <cByte>, <nBitPos> ) -> cByte
Returns new byte, with designated bit set. If parameters are faulty, returns NIL.
In effect, ORs argument byte with a byte that has only the target bit set. If bit is already set, it remains set. Note: Calls FT_ISBIT() which is also in this Library.
This function is presented to illustrate that bit-wise operations are possible with Clipper code. For greater speed, write .C or .ASM versions and use the Clipper Extend system.
FT_BYTEAND( <cByte1>, <cByte2> ) -> cByte
Returns resulting byte, in CHR() form. If parameters are faulty, returns NIL.
Can be used for any bit-wise masking operation. In effect, this is a bit-by-bit AND operation. Equivalent to AND assembler instruction.
This function is presented to illustrate that bit-wise operations are possible with Clipper code. For greater speed, write .C or .ASM versions and use the Clipper Extend system.
FT_BYTENEG( <cByte> ) -> cNewByte
Returns resulting byte, in CHR() form. If parameters are faulty, returns NIL.
Can be used for bit-wise byte manipulation. In effect, this is a bit-by-bit NEG (two's complement) operation. Equivalent to NEG assembler instruction.
This function is presented to illustrate that bit-wise operations are possible with Clipper code. For greater speed, write .C or .ASM versions and use the Clipper Extend system.
FT_BYTENOT( <cByte> ) -> cNewByte
Returns resulting byte, in CHR() form. If parameters are faulty, returns NIL.
Can be used for bitwise byte manipulation. In effect, this is a bit-by-bit NOT (one's complement) operation. Equivalent to the NOT assembler instruction.
This function is presented to illustrate that bit-wise operations are possible with Clipper code. For greater speed, write .C or .ASM versions and use the Clipper Extend system.
FT_BYTEOR( <cByte1>, <cByte2> ) -> cNewByte
Returns resulting byte, in CHR() form. If parameters are faulty, returns NIL.
Can be used for bit-wise byte manipulation. In effect, this is a bit-by-bit OR operation. Equivalent to OR assembler instruction.
This function is presented to illustrate that bit-wise operations are possible with Clipper code. For greater speed, write .C or .ASM versions and use the Clipper Extend system.
FT_BYTEXOR( <cByte1>, <cByte2> ) -> cNewByte
Returns resulting byte, in CHR() form. If parameters are faulty, returns NIL.
Can be used for bit-wise byte manipulation. In effect, this is a bit-by-bit XOR operation. Equivalent to XOR assembler instruction.
This function is presented to illustrate that bit-wise operations are possible with Clipper code. For greater speed, write .C or .ASM versions and use the Clipper Extend system.
FT_FINDITH( <cCheckFor>, <cCheckIn>, <nWhichOccurrence> ; [, <lIgnoreCase> ] ) -> <nStringPosition>
The position in the string cCheckIn of the ith occurrence of cCheckFor.
This function finds the position in a string of the "ith" time another string appears in it.
FT_ISBIT( <cByte>, <nBitPos> ) -> lResult
.T. if designated bit is set (1), .F. if not set (0), NIL if invalid parameters.
Tests for status of any selected bit in the byte passed as a parameter. Byte must be presented in CHR() form, as a literal constant, or as the one-byte character result of an expression.
This function is presented to illustrate that bit-wise operations are possible with Clipper code. For greater speed, write .C or .ASM versions and use the Clipper Extend system.
FT_ISBITON( <nNumber>, <nBit> ) -> lResult
.T. if the specified bit was on., .F. if off.
This function is useful when dealing with binary integers. It will come in very handy if you use the FT_INT86() function, because the CPU flags are returned as a series of bits. Using this function, you can determine the state of each CPU flag.
FT_METAPH( <cName> [, <nSize> ] ) -> cMetaPhone
A phonetically spelled character string
This function is a character function use to index and search for sound-alike or phonetic matches. It is an alternative to the SOUNDEX() function, and addresses some basic pronunciation rules, by looking at surrounding letters to determine how parts of the string are pronounced. FT_METAPH() will group sound-alikes together, and forgive shortcomings in spelling ability.
FT_NOOCCUR( <cCheckFor>, <cCheckIn> ; [, <lIgnoreCase> ] ) -> <nOccurrences>
The number of times <cCheckFor> appears in <cCheckIn>
This function finds the number of times a string occurs in a second string.
FT_PCHR( <cString> ) -> <cPrinterFormat>
A character string of printer control codes.
This function is useful for allowing the user to enter printer control codes in text (enclosed in double quotes), numeric, hexadecimal, or Epson commands preceded by a slash and returns the printer control code equivalent.
NOTES"
- Combinations of text, numbers, hex, and commands must be separated by commas ("A",27,&1B,/RESET). - Text must be enclosed in double quotes ("x"). - Hexadecimal must be preceded by an ampersand (&1B). - Epson commands, listed below, must be preceded by a forward slash (/RESET).
Epson commands: (slash commands are specific to the Epson)
Job Control:
/RESET or /INIT Reset or initialize the printer /BELL or /BEEP Cause the printer's speaker to beep (not HS) /CAN Clear print buffers (not MX) /SLOW Set low speed mode (not CR, HS, MX) /FAST Cancel low speed mode (not CR, HS, MX) /ONE Select Unidirectional mode /TWO Select Directional mode /ON Activate printer /OFF Turn off printer
/FF or /EJECT Form Feed
Page Control:
/1/6 Set 6 lines per inch /1/8 Set 8 lines per inch /SKIP Set Skip perforation ON /SKIPOFF Set Skip perforation OFF
Font Selection and Manipulation:
/ITALIC Select italic char. set (only FX86, EX, LX, no LQ-1500, SX) /GRAPHIC Select graphic char. set (only FX86, EX, LX, no LQ-1500, SX) /ROMAN Choose Roman font /SANS Choose Sans Serif font /DRAFT Choose draft /NLQ Choose near letter quality /PICA Choose 10 chars per inch /ELITE Choose 12 chars per inch /COND or /SI Choose 15 chars per inch /EMPH Turn emphasize on /EMPHOFF Turn emphasize off /SPANISH Select spanish international char set /USA Select USA international char set
GLOB(<sString>, <sReg>, [<lIgnoreCase>]) --> TRUE || FALSE
Возвращает TRUE, если строка соответствует регулярному выражению.
GLOB() возвращает TRUE, если строка соответствует регулярному выражению.
Выражение <sReg> это простое регулярное выражение, принятое в DOS.
Не зависит от платформ
HASHNAME(<nHashCode>) --> <sStr>
Возвращает строку, из которой был сгенерирован хэш-код.
HASHNAME() возвращает исходную строку, из которой был получен хэш-код <nHashCode>.
HASHSTR(<sStr>) --> <nHashCode>
Возвращает числовое значение - хэш-код, сконвертированное из строки.
HASHSTR() вычисляет хэш-код для строки <sStr> и возвращает его в виде числа. Хэш-код имеет уникальное значение в пределах от 1000000 до MAX_LONG.
LIKE(<sMask>, <sString>) --> TRUE || FALSE
Возвращает TRUE, если строка соответствует маске.
LIKE() возвращает TRUE, если строка соответствует маске.
Строка <sMask> может содержать специальные символы: <?>, <*>, <.>
Не зависит от платформ
SEARCH(<sPattern>, <sString>, [@aReg], [<nFrom>], [<nRange>]) --> TRUE || FALSE
Возвращает TRUE в случае успешного поиска.
SEARCH() ищет подстроку в строке <sString> по регулярному выражению <sPattern> начиная с позиции <nFrom> и с учетом значения <nRange>. Результат поиска будет записан в <aReg>, если этот параметр передан в функцию.
<nRange> это значение сдвигов, при которых проверяется совпадение относительно <nFrom>. Если <nRange>==0 - проверяется только позиция <nFrom>; если <nRange>==1 - проверяются позиции <nFrom> и <nFrom>+1; если <nRange>==-1 - проверяются позиции <nFrom> и <nFrom>-1.
Каждый элемент <aReg> это массив из 3-х элементов: 1-й элемент - начальная позиция найденной подстроки; 2-й элемент - конечная позиция подстроки; 3-й - длина найденной подстроки.
STR2VAR(<sUucodeStr>) --> <vData>
Возвращает исходные данные, соответствующие uucode строке <sUucodeStr>.
STR2VAR() производит обратное преобразование uucode строки <sUucodeStr> в исходные данные и возвращает их. Функция обратна функции VAR2STR()
Не зависит от платформ
VAR2STR(<vData>) --> <sUucodeStr>
Возвращает uucode строку <sUucodeStr>.
VAR2STR() возвращает исходную строку <vData> в uucode строку <sUucodeStr> и возвращает ее.
Не зависит от платформ
| Пред. | Начало | След. |
| INFO | Уровень выше | NUMERIC |