What happened to 'struppercase'??



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 31/10/2002 at 04:57, xxxxxxxx wrote:

    User Information:
    Cinema 4D Version:   8.012 
    Platform:      Mac OSX  ; 
    Language(s) :   C.O.F.F.E.E  ;   XPRESSO  ;

    ---------
    In V8 COFFEE doesn't seem to know 'struppercase' which I use for the automatic name search in some of my plugins to keep the name search not case sensitive. Is it reincluded in the official release (I have only my early bird yet.) or will it be in a future release? Is there an alternative?
    Well, and thinking about it, how can I include those 'link boxes' I may use with the user data in my dialog layouts?



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 31/10/2002 at 10:42, xxxxxxxx wrote:

    Quote: Originally posted by Fabian on 31  October 2002
    >
    > * * *
    >
    > In V8 COFFEE doesn't seem to know 'struppercase' which I use for the automatic name search in some of my plugins to keep the name search not case sensitive. Is it reincluded in the official release (I have only my early bird yet.) or will it be in a future release? Is there an alternative?
    I cannot find this in the old documentation. Perhaps it was a private function. I believe it had this interface: (The same as String::ToUpper() in C++.)

        
        
        struppercase(str)  
        {  
          var i;  
          for (i = 0; i < sizeof(str); ++i)  
          {  
            if (str[i] >= 97 && str[i] <= 122)  
            {  
              str[i] -= 32;   
            }  
          }  
          return str;  
        }
        
        
        
        
        main(doc,op)  
        {  
          var str = "hello";  
          println(str + " => " + struppercase(str));  
        }
    

    > Well, and thinking about it, how can I include those 'link boxes' I may use with the user data in my dialog layouts?
    Could you be a bit more specific? None of the new user interface elements, including the attributes manager, can be used by C.O.F.F.E.E. code in 8.012.



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 31/10/2002 at 13:24, xxxxxxxx wrote:

    Hi Mikael,
    thanks for the quick reply. I'll try that tomorrow. I Think I got the 'struppercase' thing from one of your replies when I tried to implement an automatic name search in the first place. I don't know if it ever was officially part of the COFFEE sdk but it worked just fine since version 6.

    None of the new user interface elements, including the attributes manager, can be used by C.O.F.F.E.E. code in 8.012.

    Well, that's a pity. Does that mean, I can't add data to tags that appear in the attributes manager?

    Thanks again!


Log in to reply