Skip to content

Instantly share code, notes, and snippets.

View hxhb's full-sized avatar

lipengzha hxhb

View GitHub Profile
std::string replace_substring(const std::string& file,const std::string& replace_src,const std::string& replace_target)
{
std::string resault("");
std::string::size_type begin_index=0;
std::string::size_type pos_index=file.find(replace_src,begin_index);
while(pos_index != std::string::npos)
{
void create_recursion_dir(const string& basepath,const string& rela_path)
{
// cout<<path<<endl;
std::string recursion_path=basepath;
std::string::size_type begin_index=0;
std::string::size_type pos_index=rela_path.find("\\",begin_index);
if(rela_path.find(":")!=std::string::npos){
std::string::size_type tempcolon = rela_path.find(":");
begin_index=tempcolon+1;
#include <iostream>
#include <cstdio>
using namespace std;
namespace Hacker
{
template<typename Tag, typename Tag::MemType M>
struct PrivateMemberStealer
{
// define friend funtion GetPrivate,return class member pointer
friend typename Tag::MemType GetPrivate(Tag) { return M; }
// Copyright 1998-2018 Epic Games, Inc. All Rights Reserved.
#include "CoreMinimal.h"
#include "Misc/CommandLine.h"
#include "Misc/App.h"
#include "Misc/OutputDeviceError.h"
#include "LaunchEngineLoop.h"
#include "PhysicsPublic.h"
#include "HAL/ExceptionHandling.h"
#include "Modules/ModuleManager.h"
@hxhb
hxhb / ue4docset.py
Last active March 24, 2022 15:07
ue4docset
#!/usr/local/bin/python
import sys, os, getopt, signal, time, re, sqlite3
import distutils.core
import xml.etree.cElementTree as ET
from bs4 import BeautifulSoup, NavigableString, Tag
# The categories that can be found in the ClassHierarchy/index.html file.
maincategories = {
"Class": [
@hxhb
hxhb / cpp
Created July 2, 2018 08:47
UE-Gen-Cpp-Code-From-Bp-Asset
// TestFuncLib_pf1448227310.h
#pragma once
#include "Blueprint/BlueprintSupport.h"
#include "Runtime/Engine/Classes/Kismet/BlueprintFunctionLibrary.h"
class AActor;
class UActorComponent;
class UClass;
class UObject;
#include "TestFuncLib__pf1448227310.generated.h"
UCLASS(config=Engine, meta=(ReplaceConverted="/Game/NewFolder/TestFuncLib.TestFuncLib_C", OverrideNativeName="TestFuncLib_C"))
@hxhb
hxhb / main.i
Last active June 4, 2017 11:05
[compiler] #preprocessor
# 1 "main.c"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "main.c"
# 1 "C:/Program Files/BuildPath/MinGW6.2/x86_64-w64-mingw32/include/stdio.h" 1 3
# 9 "C:/Program Files/BuildPath/MinGW6.2/x86_64-w64-mingw32/include/stdio.h" 3
# 1 "C:/Program Files/BuildPath/MinGW6.2/x86_64-w64-mingw32/include/crtdefs.h" 1 3
# 10 "C:/Program Files/BuildPath/MinGW6.2/x86_64-w64-mingw32/include/crtdefs.h" 3
# 1 "C:/Program Files/BuildPath/MinGW6.2/x86_64-w64-mingw32/include/_mingw.h" 1 3
# 12 "C:/Program Files/BuildPath/MinGW6.2/x86_64-w64-mingw32/include/_mingw.h" 3