drc

package
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	// contains filtered or unexported fields
}

File описывает DRC(Delphi Resource String)-файл

func Load

func Load(name string, encoding string) (*File, error)

Load загружает (и разбирает) drc-файл с диска encoding - кодировка drc-файла ("", либо имя кодировки из http://www.w3.org/TR/encoding)

func (*File) GetID

func (f *File) GetID(key string) (int, bool)

GetID возвращает id ресурса по имени

func (*File) GetKey

func (f *File) GetKey(id int) (string, bool)

GetKey возвращает текст ресурса по id

func (*File) GetStr

func (f *File) GetStr(key string) (string, bool)

GetStr возвращает текст ресурса по имени

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL