FString::Find("" , IgnoreCase, FromStart) renvoie 0 en UE5 et INDEX_NONE en 4.27 : Contains(x, "") devenu vrai.
Test 3120 cas (transcription 4.27) : 0 ecart ; diff independant 385/385 ; compilation et cuisson 0 avertissement.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
25 lines
883 B
C++
25 lines
883 B
C++
// Portage UE 5.5 - lot L7i (CX-B12). Test de ULPStringCompat::FindUE4 / Contains / FindSubstring / Split.
|
|
//
|
|
// Compare, sur une grille de cas limites (chaines vides, casse, sens, position de depart) :
|
|
// - une transcription litterale de FString::Find de UE 4.27 (String.cpp 4.27 l. 180-227, avec
|
|
// TCString::Stristr 4.27 et wcsstr pour FCString::Strstr sous Windows) ;
|
|
// - ULPStringCompat (doit lui etre identique) ;
|
|
// - le moteur 5.5 (les ecarts sont listes, ils justifient le correctif).
|
|
//
|
|
// Usage : UnrealEditor-Cmd.exe <projet> -run=LPTestStringCompat
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "Commandlets/Commandlet.h"
|
|
#include "LPTestStringCompatCommandlet.generated.h"
|
|
|
|
UCLASS()
|
|
class ULPTestStringCompatCommandlet : public UCommandlet
|
|
{
|
|
GENERATED_BODY()
|
|
|
|
public:
|
|
ULPTestStringCompatCommandlet();
|
|
virtual int32 Main(const FString& Params) override;
|
|
};
|