public class CUtil extends Object
| Constructor and Description |
|---|
CUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
cTypeName(PrimitiveType primitiveType)
Map the name of a
PrimitiveType to a C11 primitive type name. |
static String |
formatByteOrderEncoding(ByteOrder byteOrder,
PrimitiveType primitiveType)
Return the C99 formatted byte order encoding string to use for a given byte order and primitiveType
|
static String |
formatName(String value)
Format a String as a struct name.
|
static String |
formatPropertyName(String value)
Format a String as a property name.
|
static String |
formatScopedName(CharSequence[] scope,
String value)
Format a String as a struct name prepended with a scope.
|
public static String cTypeName(PrimitiveType primitiveType)
PrimitiveType to a C11 primitive type name.primitiveType - to map.public static String formatPropertyName(String value)
value - to be formatted.public static String formatName(String value)
value - to be formatted.public static String formatScopedName(CharSequence[] scope, String value)
scope - to be prepended.value - to be formatted.public static String formatByteOrderEncoding(ByteOrder byteOrder, PrimitiveType primitiveType)
Copyright © 2013-2024 Real Logic Limited. All Rights Reserved.