Skip to Content
Amiga Assembly Library v41.21 — Motorola 68020 shared library for Commodore Amiga

StringToLower

Synopsis

StringToLower(locale, string, len) A0 A1 D0

C Prototype

void StringToLower(struct Locale *locale, STRPTR string, LONG len);

Description

Converts an entire ASCII string to lowercase, in accordance with the localization system.

Inputs

  • locale — Pointer to a Locale structure, or NULL for the default Locale.
  • string — Address of the string to convert. It must be null-terminated if you want to pass len as NULL.
  • len — Number of characters to convert. If NULL, the entire string will be converted.

Result

None. The string is converted in place.

See Also

Implementation

The original 68020 assembly implementation:

; (26-Nov-1994) --- StringToLower() _LVOStringToLower movem.l d2/a4-a6,-(sp) move.l a0,a4 move.l ab_Locale(a6),a5 move.l ab_LocaleBase(a6),a6 move.l d0,d2 bne.s LSkLen moveq #-1,d2 LCalLen tst.b (a0)+ dbeq d2,LCalLen neg.l d2 LSkLen subq.l #1,d2 LTLop move.b (a4),d0 move.l a5,a0 jsr _LVOConvToLower(a6) move.b d0,(a4)+ dbeq d2,LTLop LSU_End movem.l (sp)+,d2/a4-a6 rts
Last updated on