text
stringlengths
1
24.5M
// // Copyright (C) 2016 Google, Inc. // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // // Redistributions of source code must retain the above copyright // notice, this list of c...
// // Copyright (C) 2002-2005 3Dlabs Inc. Ltd. // Copyright (C) 2013-2016 LunarG, Inc. // Copyright (C) 2015-2018 Google, Inc. // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // // R...
// // Copyright (C) 2016 Google, Inc. // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // // Redistributions of source code must retain the above copyright // notice, this list of c...
// Copyright (c) 2015-2016 The Khronos Group Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable ...
// // Copyright (C) 2014-2015 LunarG, Inc. // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // // Redistributions of source code must retain the above copyright // notice, this list...
// // Copyright (C) 2014-2015 LunarG, Inc. // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // // Redistributions of source code must retain the above copyright // notice, this list...
// // Copyright (C) 2014-2015 LunarG, Inc. // Copyright (C) 2022-2024 Arm Limited. // Modifications Copyright (C) 2020 Advanced Micro Devices, Inc. All rights reserved. // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the fo...
// // Copyright (C) 2014-2015 LunarG, Inc. // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // // Redistributions of source code must retain the above copyright // notice, this list...
/* ** Copyright (c) 2014-2016 The Khronos Group Inc. ** ** Permission is hereby granted, free of charge, to any person obtaining a copy ** of this software and/or associated documentation files (the "Materials"), ** to deal in the Materials without restriction, including without limitation ** the rights to use, copy, m...
/* ** Copyright (c) 2022 ARM Limited ** ** Permission is hereby granted, free of charge, to any person obtaining a copy ** of this software and/or associated documentation files (the "Materials"), ** to deal in the Materials without restriction, including without limitation ** the rights to use, copy, modify, merge, pu...
/* ** Copyright (c) 2014-2016 The Khronos Group Inc. ** ** Permission is hereby granted, free of charge, to any person obtaining a copy ** of this software and/or associated documentation files (the "Materials"), ** to deal in the Materials without restriction, including without limitation ** the rights to use, copy, m...
/* ** Copyright (c) 2014-2020 The Khronos Group Inc. ** Copyright (C) 2022-2024 Arm Limited. ** Modifications Copyright (C) 2020 Advanced Micro Devices, Inc. All rights reserved. ** ** Permission is hereby granted, free of charge, to any person obtaining a copy ** of this software and/or associated documentation files ...
/* ** Copyright (c) 2014-2017 The Khronos Group Inc. ** ** Permission is hereby granted, free of charge, to any person obtaining a copy ** of this software and/or associated documentation files (the "Materials"), ** to deal in the Materials without restriction, including without limitation ** the rights to use, copy, m...
/* ** Copyright (c) 2021 The Khronos Group Inc. ** ** Permission is hereby granted, free of charge, to any person obtaining a copy ** of this software and/or associated documentation files (the "Materials"), ** to deal in the Materials without restriction, including without limitation ** the rights to use, copy, modify...
/* ** Copyright (c) 2014-2016 The Khronos Group Inc. ** ** Permission is hereby granted, free of charge, to any person obtaining a copy ** of this software and/or associated documentation files (the "Materials"), ** to deal in the Materials without restriction, including without limitation ** the rights to use, copy, m...
// // Copyright (C) 2014-2016 LunarG, Inc. // Copyright (C) 2015-2020 Google, Inc. // Copyright (C) 2017, 2022-2024 Arm Limited. // Modifications Copyright (C) 2020 Advanced Micro Devices, Inc. All rights reserved. // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // mo...
// // Copyright (C) 2014 LunarG, Inc. // Copyright (C) 2015-2018 Google, Inc. // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // // Redistributions of source code must retain the abov...
// Copyright (c) 2015-2016 The Khronos Group Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable ...
// // Copyright (C) 2016 Google, Inc. // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // // Redistributions of source code must retain the above copyright // notice, this list of c...
// // Copyright (C) 2016 Google, Inc. // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // // Redistributions of source code must retain the above copyright // notice, this list of c...
// // Copyright (C) 2016 Google, Inc. // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // // Redistributions of source code must retain the above copyright // notice, this list of c...
// Copyright (c) 2020 The Khronos Group Inc. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and/or associated documentation files (the // "Materials"), to deal in the Materials without restriction, including // without limitation the rights to use, copy, modify, m...
// Copyright (c) 2018 The Khronos Group Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and/or associated documentation files (the "Materials"), // to deal in the Materials without restriction, including without limitation // the rights to use, copy, modify, m...
// Copyright (c) 2014-2024 The Khronos Group Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and/or associated documentation files (the "Materials"), // to deal in the Materials without restriction, including without limitation // the rights to use, copy, modi...
// // Copyright (C) 2014-2015 LunarG, Inc. // Copyright (C) 2015-2018 Google, Inc. // Modifications Copyright (C) 2020 Advanced Micro Devices, Inc. All rights reserved. // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the fo...
// // Copyright (C) 2014-2015 LunarG, Inc. // Copyright (C) 2015-2020 Google, Inc. // Copyright (C) 2017 ARM Limited. // Modifications Copyright (C) 2020 Advanced Micro Devices, Inc. All rights reserved. // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification,...
// // Copyright (C) 2014 LunarG, Inc. // Copyright (C) 2015-2018 Google, Inc. // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // // Redistributions of source code must retain the abov...
// // Copyright (C) 2018 Google, Inc. // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // // Redistributions of source code must retain the above copyright // notice, this list of c...
// // Copyright (C) 2015 LunarG, Inc. // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // // Redistributions of source code must retain the above copyright // notice, this list of c...
// // Copyright (C) 2015 LunarG, Inc. // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // // Redistributions of source code must retain the above copyright // notice, this list of c...
// // Copyright (C) 2014-2016 LunarG, Inc. // Copyright (C) 2018-2020 Google, Inc. // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // // Redistributions of source code must retain the...
// // Copyright (C) 2014-2016 LunarG, Inc. // Copyright (C) 2018 Google, Inc. // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: // // Redistributions of source code must retain the abov...
/* SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later */ /* Copyright 2010, SIL International, All rights reserved. */ #pragma once #include "graphite2/Types.h" #define GR2_VERSION_MAJOR 1 #define GR2_VERSION_MINOR 3 #define GR2_VERSION_BUGFIX 14 #ifdef __cplusplus extern "C" { #en...
/* SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later */ /* Copyright 2010, SIL International, All rights reserved. */ #pragma once #include <graphite2/Types.h> #include <graphite2/Font.h> #include <stdio.h> #ifdef __cplusplus extern "C" { #endif /** deprecated mechanism that doesn't do...
/* SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later */ /* Copyright 2010, SIL International, All rights reserved. */ #pragma once #include "graphite2/Types.h" #include "graphite2/Font.h" #ifdef __cplusplus extern "C" { #endif enum gr_break_weight { gr_breakNone = 0, /* after b...
/* SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later */ /* Copyright 2010, SIL International, All rights reserved. */ #pragma once #include <stddef.h> typedef unsigned char gr_uint8; typedef gr_uint8 gr_byte; typedef signed char gr_int8; typedef unsigned short gr_uint16; t...
// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later // Copyright 2010, SIL International, All rights reserved. // This call threaded interpreter implmentation for machine.h // Author: Tim Eves // Build either this interpreter or the direct_machine implementation. // The call threaded i...
// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later // Copyright 2010, SIL International, All rights reserved. #include "inc/Main.h" #include "inc/CmapCache.h" #include "inc/Face.h" #include "inc/TtfTypes.h" #include "inc/TtfUtil.h" using namespace graphite2; const void * bmp_subtab...
// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later // Copyright 2010, SIL International, All rights reserved. // This class represents loaded graphite stack machine code. It performs // basic sanity checks, on the incoming code to prevent more obvious problems // from crashing graphit...
// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later // Copyright 2010, SIL International, All rights reserved. #include <algorithm> #include <limits> #include <cmath> #include <string> #include <functional> #include "inc/Collider.h" #include "inc/Segment.h" #include "inc/Slot.h" #includ...
// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later // Copyright 2015, SIL International, All rights reserved. #include <cassert> #include "inc/Decompressor.h" #include "inc/Compression.h" using namespace lz4; namespace { inline u32 read_literal(u8 const * &s, u8 const * const e, u3...
// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later // Copyright 2010, SIL International, All rights reserved. // This direct threaded interpreter implmentation for machine.h // Author: Tim Eves // Build either this interpreter or the call_machine implementation. // The direct threaded...
// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later // Copyright 2010, SIL International, All rights reserved. #include <cstring> #include "graphite2/Segment.h" #include "inc/CmapCache.h" #include "inc/debug.h" #include "inc/Decompressor.h" #include "inc/Endian.h" #include "inc/Face.h" ...
// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later // Copyright 2010, SIL International, All rights reserved. #include <cstring> #include "inc/Main.h" #include "inc/bits.h" #include "inc/Endian.h" #include "inc/FeatureMap.h" #include "inc/FeatureVal.h" #include "graphite2/Font.h" #inc...
// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later // Copyright 2012, SIL International, All rights reserved. #include <cstring> #include "inc/FileFace.h" #ifndef GRAPHITE2_NFILEFACE using namespace graphite2; FileFace::FileFace(const char *filename) : _file(fopen(filename, "rb")),...
// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later // Copyright 2010, SIL International, All rights reserved. #include "inc/Face.h" #include "inc/Font.h" #include "inc/GlyphCache.h" using namespace graphite2; Font::Font(float ppm, const Face & f, const void * appFontHandle, const gr_...
// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later // Copyright 2012, SIL International, All rights reserved. #include "graphite2/Font.h" #include "inc/Main.h" #include "inc/Face.h" //for the tags #include "inc/GlyphCache.h" #include "inc/GlyphFace.h" #include "inc/Endian.h" #incl...
// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later // Copyright 2010, SIL International, All rights reserved. #include "inc/GlyphFace.h" using namespace graphite2; int32 GlyphFace::getMetric(uint8 metric) const { switch (metrics(metric)) { case kgmetLsb : retur...
// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later // Copyright 2010, SIL International, All rights reserved. #include <cassert> #include "graphite2/Segment.h" #include "inc/CharInfo.h" extern "C" { unsigned int gr_cinfo_unicode_char(const gr_char_info* p/*not NULL*/) { assert(p)...
// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later // Copyright 2010, SIL International, All rights reserved. #include "graphite2/Font.h" #include "inc/Face.h" #include "inc/FileFace.h" #include "inc/GlyphCache.h" #include "inc/CmapCache.h" #include "inc/Silf.h" #include "inc/json.h" ...
// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later // Copyright 2010, SIL International, All rights reserved. #include "graphite2/Font.h" #include "inc/Face.h" #include "inc/FeatureMap.h" #include "inc/FeatureVal.h" #include "inc/NameTable.h" using namespace graphite2; extern "C" { ...
// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later // Copyright 2010, SIL International, All rights reserved. #include "graphite2/Font.h" #include "inc/Font.h" using namespace graphite2; extern "C" { void gr_engine_version(int *nMajor, int *nMinor, int *nBugFix) { if (nMajor) *...
// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later // Copyright 2010, SIL International, All rights reserved. #include <cstdio> #include "graphite2/Log.h" #include "inc/debug.h" #include "inc/CharInfo.h" #include "inc/Slot.h" #include "inc/Segment.h" #include "inc/json.h" #include "in...
// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later // Copyright 2010, SIL International, All rights reserved. #include "graphite2/Segment.h" #include "inc/UtfCodec.h" #include "inc/Segment.h" using namespace graphite2; namespace { gr_segment* makeAndInitialize(const Font *font, co...
// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later // Copyright 2010, SIL International, All rights reserved. #include "graphite2/Segment.h" #include "inc/Segment.h" #include "inc/Slot.h" #include "inc/Font.h" extern "C" { const gr_slot* gr_slot_next_in_segment(const gr_slot* p/*no...
// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later // Copyright 2010, SIL International, All rights reserved. #include <algorithm> #include <cmath> #include <limits> #include "inc/Intervals.h" #include "inc/Segment.h" #include "inc/Slot.h" #include "inc/debug.h" #include "inc/bits.h" ...
// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later // Copyright 2011, SIL International, All rights reserved. // JSON debug logging // Author: Tim Eves #if !defined GRAPHITE2_NTRACING #include <cstdio> #include <limits> #include "inc/json.h" #if defined(_MSC_VER) #define FORMAT_INTM...
// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later // Copyright 2012, SIL International, All rights reserved. #include "inc/Segment.h" #include "graphite2/Font.h" #include "inc/debug.h" #include "inc/CharInfo.h" #include "inc/Slot.h" #include "inc/Main.h" #include <cmath> using names...
// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later // Copyright 2010, SIL International, All rights reserved. #include "inc/Main.h" #include "inc/Endian.h" #include "inc/NameTable.h" #include "inc/UtfCodec.h" using namespace graphite2; NameTable::NameTable(const void* data, size_t l...
// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later // Copyright 2010, SIL International, All rights reserved. #include "inc/Main.h" #include "inc/debug.h" #include "inc/Endian.h" #include "inc/Pass.h" #include <cstring> #include <cstdlib> #include <cassert> #include <cmath> #include "i...
// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later // Copyright 2010, SIL International, All rights reserved. #include "inc/Position.h" #include <cmath> using namespace graphite2; bool Rect::hitTest(Rect &other) { if (bl.x > other.tr.x) return false; if (tr.x < other.bl.x) re...
// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later // Copyright 2010, SIL International, All rights reserved. #include "inc/UtfCodec.h" #include <cstring> #include <cstdlib> #include "inc/bits.h" #include "inc/Segment.h" #include "graphite2/Font.h" #include "inc/CharInfo.h" #include "...
// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later // Copyright 2010, SIL International, All rights reserved. #include <cstdlib> #include "graphite2/Segment.h" #include "inc/debug.h" #include "inc/Endian.h" #include "inc/Silf.h" #include "inc/Segment.h" #include "inc/Rule.h" #include "...
// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later // Copyright 2010, SIL International, All rights reserved. #include "inc/Segment.h" #include "inc/Slot.h" #include "inc/Silf.h" #include "inc/CharInfo.h" #include "inc/Rule.h" #include "inc/Collider.h" using namespace graphite2; Slo...
// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later // Copyright 2011, SIL International, All rights reserved. #include <cassert> #include "inc/Sparse.h" #include "inc/bits.h" using namespace graphite2; const sparse::chunk sparse::empty_chunk = {0,0}; sparse::~sparse() throw() { ...
// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later // Copyright 2010, SIL International, All rights reserved. /* Responsibility: Alan Ward Last reviewed: Not yet. Description Implements the methods for TtfUtil class. This file should remain portable to any C++ environment by o...
// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later // Copyright 2010, SIL International, All rights reserved. #include "inc/UtfCodec.h" //using namespace graphite2; namespace graphite2 { } using namespace graphite2; const int8 _utf_codec<8>::sz_lut[16] = { 1,1,1,1,1,1,1,1, ...
// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later // Copyright 2012, SIL International, All rights reserved. #pragma once namespace graphite2 { #if defined GRAPHITE2_BUILTINS && (defined __GNUC__ || defined __clang__) template<typename T> inline unsigned int bit_set_count(T v) { ...
// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later // Copyright 2010, SIL International, All rights reserved. #pragma once #include "inc/Main.h" namespace graphite2 { class CharInfo { public: CharInfo() : m_char(0), m_before(-1), m_after(-1), m_base(0), m_featureid(0), m_break(...
// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later // Copyright 2010, SIL International, All rights reserved. #pragma once #include "inc/Main.h" #include "inc/Face.h" namespace graphite2 { class Face; class Cmap { public: virtual ~Cmap() throw() {} virtual uint16 operator...
// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later // Copyright 2010, SIL International, All rights reserved. // This class represents loaded graphite stack machine code. It performs // basic sanity checks, on the incoming code to prevent more obvious problems // from crashing graphit...
// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later // Copyright 2010, SIL International, All rights reserved. #pragma once #include "inc/List.h" #include "inc/Position.h" #include "inc/Intervals.h" #include "inc/debug.h" namespace graphite2 { class json; class Slot; class Segment; ...
// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later // Copyright 2015, SIL International, All rights reserved. #pragma once #include <cassert> #include <cstddef> #include <cstring> namespace { #if defined(_MSC_VER) typedef unsigned __int8 u8; typedef unsigned __int16 u16; typedef un...
// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later // Copyright 2011, SIL International, All rights reserved. // debug.h // // Created on: 22 Dec 2011 // Author: tim #pragma once #if !defined GRAPHITE2_NTRACING #include <utility> #include "inc/json.h" #include "inc/Position.h...
// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later // Copyright 2015, SIL International, All rights reserved. #pragma once #include <cstddef> namespace lz4 { // decompress an LZ4 block // Parameters: // @in - Input buffer containing an LZ4 block. // @in_size ...
// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later // Copyright 2011, SIL International, All rights reserved. /* Description: A set of fast template based decoders for decoding values of any C integer type up to long int size laid out with most significant byte first or least ...
// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later // Copyright 2013, SIL International, All rights reserved. #pragma once // numbers are explicitly assigned for future proofing namespace graphite2 { class Error { public: Error() : _e(0) {}; operator bool() { return (_e != 0...
// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later // Copyright 2010, SIL International, All rights reserved. #pragma once #include <cstdio> #include "graphite2/Font.h" #include "inc/Main.h" #include "inc/FeatureMap.h" #include "inc/TtfUtil.h" #include "inc/Silf.h" #include "inc/Err...
// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later // Copyright 2010, SIL International, All rights reserved. #pragma once #include "inc/Main.h" #include "inc/FeatureVal.h" namespace graphite2 { // Forward declarations for implmentation types class FeatureMap; class Face; class Fea...
// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later // Copyright 2010, SIL International, All rights reserved. #pragma once #include <cstring> #include <cassert> #include "inc/Main.h" #include "inc/List.h" namespace graphite2 { class FeatureRef; class FeatureMap; class FeatureVal : p...
// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later // Copyright 2012, SIL International, All rights reserved. #pragma once //#include "inc/FeatureMap.h" //#include "inc/GlyphsCache.h" //#include "inc/Silf.h" #ifndef GRAPHITE2_NFILEFACE #include <cstdio> #include <cassert> #include ...
// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later // Copyright 2010, SIL International, All rights reserved. #pragma once #include <cassert> #include "graphite2/Font.h" #include "inc/Main.h" #include "inc/Face.h" namespace graphite2 { #define INVALID_ADVANCE -1e38f // can't be ...
// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later // Copyright 2012, SIL International, All rights reserved. #pragma once #include "graphite2/Font.h" #include "inc/Main.h" #include "inc/Position.h" #include "inc/GlyphFace.h" namespace graphite2 { class Face; class FeatureVal; clas...
// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later // Copyright 2010, SIL International, All rights reserved. #pragma once #include "inc/Main.h" #include "inc/Position.h" #include "inc/Sparse.h" namespace graphite2 { enum metrics { kgmetLsb = 0, kgmetRsb, kgmetBbTop, kgmetBb...
// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later // Copyright 2010, SIL International, All rights reserved. #pragma once #include <utility> #include "inc/Main.h" #include "inc/List.h" #include "inc/json.h" #include "inc/Position.h" // An IntervalSet represents the possible movemen...
// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later // Copyright 2011, SIL International, All rights reserved. // JSON pretty printer for graphite font debug output logging. // Created on: 15 Dec 2011 // Author: Tim Eves #pragma once #include "inc/Main.h" #include <cassert> #inclu...
// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later // Copyright 2010, SIL International, All rights reserved. // designed to have a limited subset of the std::vector api #pragma once #include <cstddef> #include <cassert> #include <cstring> #include <cstdlib> #include <new> #include ...
// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later // Copyright 2010, SIL International, All rights reserved. #pragma once #include <cstring> #include <cassert> #include "inc/Main.h" namespace graphite2 { struct IsoLangEntry { unsigned short mnLang; char maLangStr[4]; c...
// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later // Copyright 2010, SIL International, All rights reserved. // This general interpreter interface. // Author: Tim Eves // Build one of direct_machine.cpp or call_machine.cpp to implement this // interface. #pragma once #include <cstri...
// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later // Copyright 2010, SIL International, All rights reserved. #pragma once #include <cstdlib> #include "graphite2/Types.h" #ifdef GRAPHITE2_CUSTOM_HEADER #include GRAPHITE2_CUSTOM_HEADER #endif namespace graphite2 { typedef gr_uint8 ...
// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later // Copyright 2010, SIL International, All rights reserved. #pragma once #include <graphite2/Segment.h> #include "inc/TtfTypes.h" #include "inc/locale2lcid.h" namespace graphite2 { class NameTable { NameTable(const NameTable &); ...
// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later // Copyright 2010, SIL International, All rights reserved. #pragma once // This file will be pulled into and integrated into a machine implmentation // DO NOT build directly and under no circumstances ever #include headers in // here o...
// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later // Copyright 2010, SIL International, All rights reserved. // This file will be pulled into and integrated into a machine implmentation // DO NOT build directly #pragma once #define do2(n) do_(n) ,do_(n) #define NILOP 0U // types ...
// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later // Copyright 2010, SIL International, All rights reserved. #pragma once #include <cstdlib> #include "inc/Code.h" namespace graphite2 { class Segment; class Face; class Silf; struct Rule; struct RuleEntry; struct State; class FiniteS...
// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later // Copyright 2010, SIL International, All rights reserved. #pragma once namespace graphite2 { class Position { public: Position() : x(0), y(0) { } Position(const float inx, const float iny) : x(inx), y(iny) {} Position op...
// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later // Copyright 2011, SIL International, All rights reserved. #pragma once #include "inc/Code.h" #include "inc/Slot.h" namespace graphite2 { struct Rule { const vm::Machine::Code * constraint, * action; unsigned s...
// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later // Copyright 2010, SIL International, All rights reserved. #pragma once #include "inc/Main.h" #include <cassert> #include "inc/CharInfo.h" #include "inc/Face.h" #include "inc/FeatureVal.h" #include "inc/GlyphCache.h" #include "inc/G...
// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later // Copyright 2010, SIL International, All rights reserved. #pragma once #include "graphite2/Font.h" #include "inc/Main.h" #include "inc/Pass.h" namespace graphite2 { class Face; class Segment; class FeatureVal; class VMScratch; clas...
// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later // Copyright 2010, SIL International, All rights reserved. #pragma once #include "graphite2/Types.h" #include "graphite2/Segment.h" #include "inc/Main.h" #include "inc/Font.h" #include "inc/Position.h" namespace graphite2 { typedef ...
// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later // Copyright 2011, SIL International, All rights reserved. #pragma once #include <iterator> #include <utility> #include "inc/Main.h" namespace graphite2 { // A read-only packed fast sparse array of uint16 with uint16 keys. // Like ...