(1)Added test class (2)Use separated findSegment method

This commit is contained in:
Takeshi Yokemura
2021-08-15 10:31:23 +09:00
parent ad947fcfda
commit 846133ac39
5 changed files with 116 additions and 116 deletions

View File

@ -13,6 +13,15 @@
#include "FrameSequence.h"
#include "FrameSequenceParseErrors.h"
struct SegmentIndexes {
static const int NONE = -1;
int releaseBlockIndex = NONE;
int repeatStartIndex = NONE;
int repeatEndIndex = NONE;
ParseError error;
};
struct FrameSequenceParser
{
/*
@ -23,15 +32,6 @@ struct FrameSequenceParser
/*
Semantically private (leave them open for unit testing)
*/
struct SegmentIndexes {
const int NONE = -1;
int releaseBlockIndex = NONE;
int repeatStartIndex = NONE;
int repeatEndIndex = NONE;
ParseError error;
};
std::vector<int> parseSlope (const String& input,
int minValue,
int maxValue,