Lines Matching defs:string
286 // Note: don't include any spaces in the format string below. This
764 // The C string contains the label as-is, with no escaping, etc.
786 // The C string is in conventional DNS syntax:
866 // MakeDomainLabelFromLiteralString makes a single domain label from a single literal C string (with no escaping).
868 // If unable to convert the whole string to a legal domain label (i.e. because length is more than 63 bytes) then
869 // MakeDomainLabelFromLiteralString makes a legal domain label from the first 63 bytes of the string and returns mDNSfalse.
881 // MakeDomainNameFromDNSNameString makes a native DNS-format domainname from a C string.
882 // The C string is in conventional DNS syntax:
891 return(AppendDNSNameString(name, cstr)); // And then add this string to it
917 *ptr = 0; // Null-terminate the string
938 *ptr++ = 0; // Null-terminate the string
1078 { errormsg = "Illegal domain \"local.arpa.\" Use \"local.\" (or empty string)"; goto fail; }
1228 mDNSexport mDNSu32 TruncateUTF8ToLength(mDNSu8 *string, mDNSu32 length, mDNSu32 max)
1232 mDNSu8 c1 = string[max]; // First byte after cut point
1233 mDNSu8 c2 = (max+1 < length) ? string[max+1] : (mDNSu8)0xB0; // Second byte after cut point
1244 c1 = string[--length];
1246 // Having truncated characters off the end of our string, also cut off any residual white space
1247 while (length > 0 && string[length-1] <= ' ') length--;
2145 // Put a string of dot-separated labels as length-prefixed labels
4217 if (!F.havePrecision) // C string
4227 // have to confine ourselves to working only backwards in the string.
4245 case 1: i = (unsigned char) *s++; break; // Pascal string