Lines Matching refs:String
226 * truncated if the string is smaller than the buffer. However, "other"
234 * If the original source was a string, we must truncate the buffer,
275 * DESCRIPTION: Copy a String object to another String object
298 /* We know that SourceDesc is a string by now */
300 Buffer = ACPI_CAST_PTR (UINT8, SourceDesc->String.Pointer);
301 Length = SourceDesc->String.Length;
304 * Replace existing string value if it will fit and the string
307 if ((Length < TargetDesc->String.Length) &&
311 * String will fit in existing non-static buffer.
312 * Clear old string and copy in the new one
314 memset (TargetDesc->String.Pointer, 0,
315 (ACPI_SIZE) TargetDesc->String.Length + 1);
316 memcpy (TargetDesc->String.Pointer, Buffer, Length);
324 if (TargetDesc->String.Pointer &&
329 ACPI_FREE (TargetDesc->String.Pointer);
332 TargetDesc->String.Pointer =
335 if (!TargetDesc->String.Pointer)
341 memcpy (TargetDesc->String.Pointer, Buffer, Length);
346 TargetDesc->String.Length = Length;