−TRAILING: различия между версиями
Перейти к навигации
Перейти к поиску
AtH (обсуждение | вклад) Нет описания правки |
AtH (обсуждение | вклад) Нет описания правки |
||
Строка 29: | Строка 29: | ||
== −TRAILING в fig-FORTH Release 1 glossary, май 1979 (англ.) == | == −TRAILING в fig-FORTH Release 1 glossary, май 1979 (англ.) == | ||
-TRAILING addr n1 --- addr n2 | -TRAILING addr n1 --- addr n2 | ||
Adjusts the character count n1 of a text string beginning address to | Adjusts the character count n1 of a text string beginning address to | ||
suppress the output of trailing blanks. i.e. the characters at | suppress the output of trailing blanks. i.e. the characters at |
Версия от 23:08, 9 сентября 2015
−TRAILING — стандартное слово Каллисто.
Отсечь конечные пробелы.
−TRAILING в стандарте ANS Forth
17.6.1.0170 -TRAILING "dash-trailing" STRING ( c-addr u1 -- c-addr u2 ) Если u1 больше чем нуль, u2 равно u1 минус число пробелов в конце символьной строки, определенной c-addr u1. Если u1 нуль или вся строка состоит из пробелов, u2 нулевой.
−TRAILING в предыдущем стандарте Forth-83 (англ.)
-TRAILING addr +n1 -- addr +n2 79 "dash-trailing" The character count +n1 of a text string beginning at addr is adjusted to exclude trailing spaces. If +n1 is zero, then +n2 is also zero. If the entire string consists of spaces, then +n2 is zero.
−TRAILING в стандарте Forth-79 (англ.)
-TRAILING addr n1 -- addr n2 148 "dash-trailing" Adjust the character count n1 of a text string beginning at addr to exclude trailing blanks, i.e., the characters at addr+n2 to addr+n1-1 are blanks. An error condition exists if n1 is negative.
−TRAILING в fig-FORTH Release 1 glossary, май 1979 (англ.)
-TRAILING addr n1 --- addr n2 Adjusts the character count n1 of a text string beginning address to suppress the output of trailing blanks. i.e. the characters at addr+n1 to addr+n2 are blanks.
Ссылки
- Слово −TRAILING (dash-trailing) в стандарте ANS Forth (англ.)
- Слово −TRAILING (dash-trailing) в черновике Forth 200x (англ.)
У этой статьи нет иллюстраций. Вы можете помочь проекту, добавив их. |
Это заготовка статьи. Вы можете помочь проекту, дополнив её. |