umd/external/protobuf-2.6/src/google/protobuf/compiler/javamicro/javamicro_primitive_field.cc
bool IsVariableLenType(JavaType type) {
  switch (type) {
    case JAVATYPE_INT    : return false;
    case JAVATYPE_LONG   : return false;
    case JAVATYPE_FLOAT  : return false;
    case JAVATYPE_DOUBLE : return false;
    case JAVATYPE_BOOLEAN: return false;
    case JAVATYPE_STRING : return true;
    case JAVATYPE_BYTES  : return true;
    case JAVATYPE_ENUM   : return false;
    case JAVATYPE_MESSAGE: return true;

    // No default because we want the compiler to complain if any new
    // JavaTypes are added.
  }

  GOOGLE_LOG(FATAL) << "Can't get here.";
  return false;
}
// Return true if the type is a that has variable length
// for instance String's.
Return true if the type is a that has variable length
for instance String's.
Return true if the type is a that has variable length for instance String ' s .
bool IsVariableLenType(JavaType type) {
  switch (type) {
    case JAVATYPE_INT    : return false;
    case JAVATYPE_LONG   : return false;
    case JAVATYPE_FLOAT  : return false;
    case JAVATYPE_DOUBLE : return false;
    case JAVATYPE_BOOLEAN: return false;
    case JAVATYPE_STRING : return true;
    case JAVATYPE_BYTES  : return true;
    case JAVATYPE_ENUM   : return false;
    case JAVATYPE_MESSAGE: return true;
  }
  GOOGLE_LOG(FATAL) << "Can't get here.";
  return false;
}
bool IsVariableLenType ( JavaType type ) { switch ( type ) { case JAVATYPE_INT : return false ; case JAVATYPE_LONG : return false ; case JAVATYPE_FLOAT : return false ; case JAVATYPE_DOUBLE : return false ; case JAVATYPE_BOOLEAN : return false ; case JAVATYPE_STRING : return true ; case JAVATYPE_BYTES : return true ; case JAVATYPE_ENUM : return false ; case JAVATYPE_MESSAGE : return true ; } GOOGLE_LOG ( FATAL ) << " " ; return false ; }
Return true if the type is a that has variable length
for instance String's.
Return true if the type is a that has variable length for instance String ' s .
// No default because we want the compiler to complain if any new // JavaTypes are added.