#ifdef UNSAFE_BUFFERS_BUILD
#pragma allow_unsafe_buffers
#endif
#include "third_party/blink/renderer/platform/text/character_property_data.h"
#include <stdio.h>
#include <unicode/brkiter.h>
#include <unicode/locid.h>
#include <unicode/ucptrie.h>
#include <unicode/udata.h>
#include <unicode/ulocdata.h>
#include <unicode/umutablecptrie.h>
#include <unicode/uniset.h>
#include <unicode/unistr.h>
#include <cassert>
#include <cstring>
#include <filesystem>
#include <fstream>
#include <iterator>
#include <memory>
#include <vector>
#include "base/check_op.h"
#include "base/containers/heap_array.h"
#include "base/containers/span.h"
#include "third_party/blink/renderer/platform/text/character_property.h"
#include "third_party/blink/renderer/platform/text/han_kerning_char_type.h"
#include "third_party/blink/renderer/platform/wtf/text/character_names.h"
namespace blink {
namespace {
#define CHECK_U_ERROR(error, name) …
void CheckIcuDataResources() { … }
void InitializeIcu(const char* exec_path) { … }
class CharacterPropertyValues { … };
static void GenerateUTrieSerialized(FILE* fp,
int32_t size,
base::span<uint8_t> array) { … }
static void GenerateCharacterPropertyData(FILE* fp) { … }
class LineBreakData { … };
void InvokeGenerator(int index,
int argc,
char** argv,
void (*generator)(FILE*)) { … }
}
}
int main(int argc, char** argv) { … }