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>
28 lines
1 KiB
C++
28 lines
1 KiB
C++
// Portage UE 5.5 - lot L7i (CX-B12). Voir Source/LifePlay/LPStringCompat.h.
|
|
//
|
|
// Rebranche chaque appel a UKismetStringLibrary::Contains, FindSubstring et Split sur la fonction
|
|
// homonyme de ULPStringCompat (memes broches, comportement 4.27 pour une sous-chaine vide), au meme
|
|
// emplacement. Liaisons et valeurs par defaut sont reportees broche par broche, par nom.
|
|
//
|
|
// Controle integre (repris de LPFixNavRandomPoint, CX-B11) : l'etat de chaque broche (liaisons,
|
|
// valeur par defaut) est compare avant et apres. Tout ecart, broche sans equivalent, cible self
|
|
// reliee ou noeud impur : le noeud est laisse en l'etat et son Blueprint n'est pas sauvegarde.
|
|
//
|
|
// Usage :
|
|
// UnrealEditor-Cmd.exe <projet> -run=LPFixStringSearch [-DryRun]
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "Commandlets/Commandlet.h"
|
|
#include "LPFixStringSearchCommandlet.generated.h"
|
|
|
|
UCLASS()
|
|
class ULPFixStringSearchCommandlet : public UCommandlet
|
|
{
|
|
GENERATED_BODY()
|
|
|
|
public:
|
|
ULPFixStringSearchCommandlet();
|
|
virtual int32 Main(const FString& Params) override;
|
|
};
|