mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:37:45 +00:00
LibPDF: Pre-initialize common FlyStrings in CommonNames.h
This commit is contained in:
parent
cf3eb27108
commit
78f3bad7e6
8 changed files with 148 additions and 64 deletions
64
Userland/Libraries/LibPDF/CommonNames.h
Normal file
64
Userland/Libraries/LibPDF/CommonNames.h
Normal file
|
@ -0,0 +1,64 @@
|
|||
/*
|
||||
* Copyright (c) 2021, Matthew Olsson <mattco@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <AK/FlyString.h>
|
||||
|
||||
#define ENUMERATE_COMMON_NAMES(V) \
|
||||
V(ASCII85Decode) \
|
||||
V(ASCIIHexDecode) \
|
||||
V(BaseFont) \
|
||||
V(C) \
|
||||
V(CCITTFaxDecode) \
|
||||
V(Contents) \
|
||||
V(Count) \
|
||||
V(CropBox) \
|
||||
V(Crypt) \
|
||||
V(DCTDecode) \
|
||||
V(Dest) \
|
||||
V(F) \
|
||||
V(Filter) \
|
||||
V(First) \
|
||||
V(Fit) \
|
||||
V(FitB) \
|
||||
V(FitBH) \
|
||||
V(FitBV) \
|
||||
V(FitH) \
|
||||
V(FitR) \
|
||||
V(FitV) \
|
||||
V(FlateDecode) \
|
||||
V(Font) \
|
||||
V(JBIG2Decode) \
|
||||
V(JPXDecode) \
|
||||
V(Kids) \
|
||||
V(LZWDecode) \
|
||||
V(Last) \
|
||||
V(Length) \
|
||||
V(MediaBox) \
|
||||
V(Next) \
|
||||
V(Outlines) \
|
||||
V(Pages) \
|
||||
V(Parent) \
|
||||
V(Resources) \
|
||||
V(Root) \
|
||||
V(Rotate) \
|
||||
V(RunLengthDecode) \
|
||||
V(Title) \
|
||||
V(Type) \
|
||||
V(UserUnit) \
|
||||
V(XYZ)
|
||||
|
||||
namespace PDF {
|
||||
|
||||
class CommonNames {
|
||||
public:
|
||||
#define ENUMERATE(name) static FlyString name;
|
||||
ENUMERATE_COMMON_NAMES(ENUMERATE)
|
||||
#undef ENUMERATE
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue