LifePlay-Revival/Source/LifePlayEditorTools/LPFixStringSearchCommandlet.h
edujiro5972 8015f182b9 L7i (CX-B12) : Contains/Split/FindSubstring avec motif vide au comportement 4.27 (385 noeuds, 28 Blueprints) ; ERR-005
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>
2026-10-01 19:24:20 +02:00

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;
};