UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
UE::Core::Private::FTimecodeParser Class Reference

Public Member Functions

 FTimecodeParser ()
 
TOptional< FTimecodeEvaluate (const FStringView InString) const
 

Static Public Member Functions

static FTimecodeParserGet ()
 

Public Attributes

const TArray< TCHAR, TInlineAllocator< 3 > > AllSeparators
 
const TArray< TCHAR, TInlineAllocator< 3 > > SubFrameSeparators
 
const TArray< TCHAR, TInlineAllocator< 3 > > DropFrameSeparators
 
TArray< const TArray< TCHAR, TInlineAllocator< 3 > > *, TInlineAllocator< 4 > > ValueSeparators
 

Detailed Description

Parses a string representation of a timecode.

Supported SMPTE drop frame (DF) and non-drop frame (NDF) formats variations:

  • NDF: HH:MM:SS:FF
  • DF: HH:MM:SS;FF or HH:MM:SS.FF or HH;MM;SS;FF or HH.MM.SS.FF.

The 2 digits per number is not enforced. It is possible to parse high frame numbers (above 60), such as for audio timecodes. Full SMPTE compliance is not ensured by the parser (i.e. greater than 24h, negative time and any number of frames per second).

Sub-frame variation: Supports the sub-frame variation where the frame number is a decimal number: HH:MM:SS:FF.ZZ.

Side effect of supporting sub-frame is that this parser can't unambiguously parse partial timecodes. For instance, "00:00.00" is ambiguous because it is undetermined if the last value is frame or sub-frame.

Constructor & Destructor Documentation

◆ FTimecodeParser()

UE::Core::Private::FTimecodeParser::FTimecodeParser ( )
inline

Member Function Documentation

◆ Evaluate()

TOptional< FTimecode > UE::Core::Private::FTimecodeParser::Evaluate ( const FStringView  InString) const
inline

◆ Get()

static FTimecodeParser & UE::Core::Private::FTimecodeParser::Get ( )
inlinestatic

Member Data Documentation

◆ AllSeparators

const TArray<TCHAR, TInlineAllocator<3> > UE::Core::Private::FTimecodeParser::AllSeparators

◆ DropFrameSeparators

const TArray<TCHAR, TInlineAllocator<3> > UE::Core::Private::FTimecodeParser::DropFrameSeparators

◆ SubFrameSeparators

const TArray<TCHAR, TInlineAllocator<3> > UE::Core::Private::FTimecodeParser::SubFrameSeparators

◆ ValueSeparators

TArray<const TArray<TCHAR, TInlineAllocator<3> >*, TInlineAllocator<4> > UE::Core::Private::FTimecodeParser::ValueSeparators

The documentation for this class was generated from the following file: