bolt/bootstrap/cxx/deps/icu/source/test/intltest/lstmbetst.h
Sam Vervaeck 285f33e93c Add 'bootstrap/cxx/' from commit '7c1a929e9a3d3abb1e2113f531588e059ad5be8c'
git-subtree-dir: bootstrap/cxx
git-subtree-mainline: b732e418cb
git-subtree-split: 7c1a929e9a
2024-01-15 14:04:51 +01:00

52 lines
1.2 KiB
C++

// © 2021 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html
#ifndef LSTMBETEST_H
#define LSTMBETEST_H
#include "unicode/utypes.h"
#if !UCONFIG_NO_BREAK_ITERATION
#include <memory>
#include "intltest.h"
#include "unicode/uscript.h"
struct TestParams;
U_NAMESPACE_BEGIN
class LanguageBreakEngine;
U_NAMESPACE_END
/**
* Test the LSTMBreakEngine class giving different rules
*/
class LSTMBETest: public IntlTest {
public:
LSTMBETest();
virtual ~LSTMBETest();
void runIndexedTest( int32_t index, UBool exec, const char* &name, char* par = NULL ) override;
void TestThaiGraphclust();
void TestThaiCodepoints();
void TestBurmeseGraphclust();
void TestThaiGraphclustWithLargeMemory();
void TestThaiCodepointsWithLargeMemory();
private:
const LanguageBreakEngine* createEngineFromTestData(const char* model, UScriptCode script, UErrorCode& status);
void runTestFromFile(const char* filename);
void runTestWithLargeMemory(const char* model, UScriptCode script);
// Test parameters, from the test framework and test invocation.
const char* fTestParams;
};
#endif /* #if !UCONFIG_NO_BREAK_ITERATION */
#endif