The length of the destString argument is the lesser of the maxLen argument or

The length of the deststring argument is the lesser

This preview shows page 255 - 258 out of 334 pages.

The length of the destString argument is the lesser of the maxLen argument or the length of the sourceString argument. Format Clib.strncat( destString, sourceString, maxLen ) Table 153 describes the arguments for the Clib Append String method. Example The following example uses the Clib Append String method: Table 153. Arguments for the Clib Append String Method Argument Description sourceString The string from which this method adds characters. destString The string to which this method adds characters. maxLen The maximum number of characters to add.
Image of page 255
Siebel eScript Language Reference Version 8.1, Rev. A C Language Library Reference Clib String Methods 256 var string1 = "I love to "; var string2 = "ride hang-gliders and motor scooters."; Clib.strncat(string1, string2, 17); TheApplication().RaiseErrorText(string1); This example returns the following string: "I love to ride hang-gliders" Related Topics For more information, see “Clib Copy String Method” on page 257 . Clib Compare Strings Method The Clib Compare Strings method performs a comparison between two strings, one byte at a time. It returns one of the following values: If the strings are identical, then it returns the following value: 0 If the ASCII code of the first unmatched character in the string1 argument is: Less than that of the first unmatched character in the string2 argument, then it returns a negative number. Greater than that of the first unmatched character in the string2 argument, then it returns a positive number. It stops the comparison if one of the following situations occurs: It encounters a mismatch between strings. It encounters a terminating null byte. Format Clib.stricmp( string1, string2 ) Clib.strcmpi( string1, string2 ) Clib.strncmp(s tring1, string2, maxLen ) Clib.strncmpi(s tring1, string2, maxLen ) Clib.strnicmp(s tring1, string2, maxLen ) You can use one of the following: Search that is case-sensitive. You use Clib.strncmp Search that is not case-sensitive. You use Clib.stricmp or Clib.strcmpi. In a comparison that is not case-sensitive, A and a are the same. The Clib.strncmp, Clib.strncmpi, and Clib.strnicmp methods stop the comparison when one of the following situations occurs:
Image of page 256
C Language Library Reference Clib String Methods Siebel eScript Language Reference Version 8.1, Rev. A 257 It has compared the number of bytes that you specify in the maxLen argument. It encounters a terminating null byte. Table 154 describes the arguments for the Clib Compare Strings method. Clib Convert String to Lowercase Method The Clib Convert String to Lowercase method converts a string to lowercase. It starts at position 0 of the str argument and ends immediately before the terminating null byte. It returns the value of the str argument all in lowercase. Format Clib.strlwr( str ) Table 155 describes the arguments for the Clib Convert String to Lowercase method.
Image of page 257
Image of page 258

You've reached the end of your free preview.

Want to read all 334 pages?

  • Summer '16
  • Oracle
  • Type system, Siebel, Siebel eScript

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Stuck? We have tutors online 24/7 who can help you get unstuck.
A+ icon
Ask Expert Tutors You can ask You can ask ( soon) You can ask (will expire )
Answers in as fast as 15 minutes
A+ icon
Ask Expert Tutors