mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
changing {} style to match majority of previous style
This commit is contained in:
parent
da6cdf014b
commit
961d929f4d
320 changed files with 5502 additions and 10485 deletions
|
@ -8,8 +8,7 @@
|
|||
#include <string.h>
|
||||
#include "utf.h"
|
||||
|
||||
int utf8_encode(int32_t codepoint, char *buffer, size_t *size)
|
||||
{
|
||||
int utf8_encode(int32_t codepoint, char *buffer, size_t *size) {
|
||||
if (codepoint < 0)
|
||||
return -1;
|
||||
else if (codepoint < 0x80) {
|
||||
|
@ -36,8 +35,7 @@ int utf8_encode(int32_t codepoint, char *buffer, size_t *size)
|
|||
return 0;
|
||||
}
|
||||
|
||||
size_t utf8_check_first(char byte)
|
||||
{
|
||||
size_t utf8_check_first(char byte) {
|
||||
unsigned char u = (unsigned char)byte;
|
||||
|
||||
if (u < 0x80)
|
||||
|
@ -68,8 +66,7 @@ size_t utf8_check_first(char byte)
|
|||
}
|
||||
}
|
||||
|
||||
size_t utf8_check_full(const char *buffer, size_t size, int32_t *codepoint)
|
||||
{
|
||||
size_t utf8_check_full(const char *buffer, size_t size, int32_t *codepoint) {
|
||||
size_t i;
|
||||
int32_t value = 0;
|
||||
unsigned char u = (unsigned char)buffer[0];
|
||||
|
@ -117,8 +114,7 @@ size_t utf8_check_full(const char *buffer, size_t size, int32_t *codepoint)
|
|||
return 1;
|
||||
}
|
||||
|
||||
const char *utf8_iterate(const char *buffer, size_t bufsize, int32_t *codepoint)
|
||||
{
|
||||
const char *utf8_iterate(const char *buffer, size_t bufsize, int32_t *codepoint) {
|
||||
size_t count;
|
||||
int32_t value;
|
||||
|
||||
|
@ -142,8 +138,7 @@ const char *utf8_iterate(const char *buffer, size_t bufsize, int32_t *codepoint)
|
|||
return buffer + count;
|
||||
}
|
||||
|
||||
int utf8_check_string(const char *string, size_t length)
|
||||
{
|
||||
int utf8_check_string(const char *string, size_t length) {
|
||||
size_t i;
|
||||
|
||||
for (i = 0; i < length; i++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue