Sha256: 36561fc3d18dd6ef56dac687c6c68f2361614b4119f9ab40e988e51b0bf90d85
Contents?: true
Size: 402 Bytes
Versions: 3
Compression:
Stored size: 402 Bytes
Contents
#include "validate_id.h" #include "ruby.h" #include <stdbool.h> #include <string.h> #include <stddef.h> #include "salesforce_id_ext.h" #include "charmap.h" // rb_sId MUST be a string bool is_id_valid(VALUE rb_sId) { VALUE id = rb_sId; if (RSTRING_LEN(id) == SALESFORCE_ID_SENSITIVE_LENGTH) return true; if (RSTRING_LEN(id) == SALESFORCE_ID_INSENSITIVE_LENGTH) return true; return false; }
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
salesforce_id-1.2.0 | ext/salesforce_id/validate_id.c |
salesforce_id-1.1.0 | ext/salesforce_id/validate_id.c |
salesforce_id-1.0.0 | ext/salesforce_id/validate_id.c |