−TRAILING: различия между версиями
Перейти к навигации
Перейти к поиску
AtH (обсуждение | вклад) Нет описания правки |
AtH (обсуждение | вклад) Нет описания правки |
||
Строка 18: | Строка 18: | ||
then +n2 is also zero. If the entire string consists of | then +n2 is also zero. If the entire string consists of | ||
spaces, then +n2 is zero. | 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. | |||
Версия от 14:19, 7 сентября 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 (dash-trailing) в стандарте ANS Forth (англ.)
- Слово −TRAILING (dash-trailing) в черновике Forth 200x (англ.)
У этой статьи нет иллюстраций. Вы можете помочь проекту, добавив их. |
Это заготовка статьи. Вы можете помочь проекту, дополнив её. |