2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
8 #include "icon_intern.h"
9 #include <proto/utility.h>
11 /*****************************************************************************
14 #include <proto/icon.h>
16 AROS_LH2(BOOL
, MatchToolValue
,
19 AROS_LHA(UBYTE
*, typeString
, A0
),
20 AROS_LHA(UBYTE
*, value
, A1
),
23 struct Library
*, IconBase
, 17, Icon
)
26 Checks if the given tooltype has the supplied value.
29 typeString - string containing the tooltype.
30 value - the value to match for.
33 TRUE if match, else FALSE.
47 *****************************************************************************/
54 /* Check if value has a bar in it */
66 /* Are they alike ? */
67 value_len
= strlen (value
);
69 if (!Strnicmp (typeString
, value
, value_len
))
71 /* Check that we have matched the *whole* word in typeString with value */
72 c
= *(typeString
+ value_len
);
74 if (c
== '|' || c
== 0)
79 /* Goto next entry in typeString */
80 while (c
= *typeString
, !((c
== '|') || (c
== 0)))
83 /* If we have a "|", skip it */
84 if (*typeString
== '|')
90 } /* MatchToolValue */